diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2019-01-24 08:44:05 +0100 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2019-01-24 08:44:05 +0100 |
commit | 66adb44f6773c4dbbb8b1309a7ccb6088ae019ee (patch) | |
tree | ac343bd674e1ef276bc42af432d2f01d94e48b1a /pdf-over-gui/src/main/java | |
parent | 95acd1bdf8afc413713b27c61d18bafbc88c241c (diff) | |
download | pdf-over-66adb44f6773c4dbbb8b1309a7ccb6088ae019ee.tar.gz pdf-over-66adb44f6773c4dbbb8b1309a7ccb6088ae019ee.tar.bz2 pdf-over-66adb44f6773c4dbbb8b1309a7ccb6088ae019ee.zip |
user is now notified to open the signature app
Diffstat (limited to 'pdf-over-gui/src/main/java')
3 files changed, 30 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java index e739e7dd..5c5494b5 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/MobileBKUConnector.java @@ -94,8 +94,10 @@ public class MobileBKUConnector implements BkuSlConnector { if (responseData.contains("page_undecided")) { //$NON-NLS-1$
// handle polling
+ this.state.showOpenAppMessage();
handler.handlePolling(responseData);
+
} else {
// Now we have received some data lets check it:
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java index 3745879d..4cf84223 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/bku/mobile/MobileBKUHandler.java @@ -352,5 +352,8 @@ public abstract class MobileBKUHandler { return responseData;
}
+ /**
+ * @param responseData
+ */
public abstract void handlePolling(String responseData);
}
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java index cbb0af41..98dfaad5 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java @@ -39,6 +39,7 @@ import at.asit.pdfover.gui.composites.MobileBKUEnterTANComposite; import at.asit.pdfover.gui.composites.MobileBKUFingerprintComposite;
import at.asit.pdfover.gui.composites.MobileBKUQRComposite;
import at.asit.pdfover.gui.composites.WaitingComposite;
+import at.asit.pdfover.gui.composites.WaitingForAppComposite;
import at.asit.pdfover.gui.controls.Dialog.BUTTONS;
import at.asit.pdfover.gui.controls.ErrorDialog;
import at.asit.pdfover.gui.utils.Messages;
@@ -96,7 +97,19 @@ public class MobileBKUState extends State { MobileBKUFingerprintComposite mobileBKUFingerprintComposite = null;
WaitingComposite waitingComposite = null;
+
+ WaitingForAppComposite waitingForAppComposite = null;
+
+
+ WaitingForAppComposite getWaitingForAppComposite() {
+ if (this.waitingForAppComposite == null) {
+ this.waitingForAppComposite = getStateMachine().getGUIProvider()
+ .createComposite(WaitingForAppComposite.class, SWT.RESIZE, this);
+ }
+ return this.waitingForAppComposite;
+ }
+
WaitingComposite getWaitingComposite() {
if (this.waitingComposite == null) {
this.waitingComposite = getStateMachine().getGUIProvider()
@@ -419,7 +432,18 @@ public class MobileBKUState extends State { });
}
-
+ /**
+ * This composite notifies the user to open the signature-app
+ */
+ public void showOpenAppMessage() {
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ getStateMachine().getGUIProvider().display(MobileBKUState.this.getWaitingForAppComposite());
+ }
+ });
+ }
+
/**
* when fingerprint or faceid is selected in the app
* this information is shown
|