-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add technology to support meID provided by lib.omw
- Loading branch information
1 parent
9484181
commit 0d563e6
Showing
36 changed files
with
1,581 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
resources/qml/Governikus/Workflow/+mobile/OmapiWorkflow.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import QtQuick 2.10 | ||
import QtQuick.Layouts 1.1 | ||
|
||
import Governikus.Global 1.0 | ||
import Governikus.TechnologyInfo 1.0 | ||
import Governikus.Type.ApplicationModel 1.0 | ||
import Governikus.Type.ReaderPlugIn 1.0 | ||
import Governikus.Type.NumberModel 1.0 | ||
|
||
|
||
Item { | ||
id: baseItem | ||
signal requestPluginType(int pReaderPlugInType) | ||
property int waitingFor: 0 | ||
clip: true | ||
|
||
ProgressIndicator { | ||
id: progressIndicator | ||
anchors.left: parent.left | ||
anchors.top: parent.top | ||
anchors.right: parent.right | ||
height: parent.height / 2 | ||
imageIconSource: "qrc:///images/icon_omapi.svg" | ||
imagePhoneSource: "qrc:///images/phone_omapi.svg" | ||
state: baseItem.waitingFor === Workflow.WaitingFor.Reader ? "off" : "one" | ||
} | ||
|
||
TechnologyInfo { | ||
id: technologyInfo | ||
|
||
anchors.left: parent.left | ||
anchors.leftMargin: Utils.dp(5) | ||
anchors.right: parent.right | ||
anchors.rightMargin: anchors.leftMargin | ||
anchors.top: progressIndicator.bottom | ||
anchors.bottom: technologySwitch.top | ||
clip: true | ||
|
||
enableButtonVisible: baseItem.waitingFor !== Workflow.WaitingFor.Reader | ||
enableButtonText: qsTr("Continue") + settingsModel.translationTrigger | ||
enableText: (enableButtonVisible ? qsTr("Please confirm the usage of your mobile eID.") : "") + settingsModel.translationTrigger | ||
onEnableClicked: workflowModel.continueWorkflow() | ||
titleText: qsTr("No mobile eID found") + settingsModel.translationTrigger | ||
subTitleText: qsTr("Please ensure that a SIM card is inserted and a suitable mobile eID is stored there.") + settingsModel.translationTrigger | ||
} | ||
|
||
TechnologySwitch { | ||
id: technologySwitch | ||
anchors.left: parent.left | ||
anchors.right: parent.right | ||
anchors.bottom: parent.bottom | ||
selectedTechnology: ReaderPlugIn.OMAPI | ||
onRequestPluginType: parent.requestPluginType(pReaderPlugInType) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
##################################################################### | ||
# The ReaderManagerPlugin for OMAPI. | ||
# | ||
# This plugin is a wrapper for the Virtual eID on a SIM card. | ||
# Supported: Android. | ||
##################################################################### | ||
|
||
ADD_PLATFORM_LIBRARY(AusweisAppCardOmapi) | ||
|
||
TARGET_LINK_LIBRARIES(AusweisAppCardOmapi Qt5::Core AusweisAppGlobal AusweisAppCard) | ||
TARGET_COMPILE_DEFINITIONS(AusweisAppCardOmapi PRIVATE QT_STATICPLUGIN) | ||
|
||
IF(ANDROID) | ||
TARGET_LINK_LIBRARIES(AusweisAppCardOmapi Qt5::AndroidExtras) | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/*! | ||
* \copyright Copyright (c) 2019 Governikus GmbH & Co. KG, Germany | ||
*/ | ||
|
||
package com.governikus.ausweisapp2.omapi; | ||
|
||
import java.io.Closeable; | ||
import java.util.List; | ||
|
||
import com.governikus.ausweisapp2.omapi.OmapiError; | ||
import com.governikus.ausweisapp2.omapi.OmapiReader; | ||
|
||
/** | ||
* | ||
*/ | ||
public interface Omapi extends Closeable // AutoClosable requires min. API level 19 | ||
{ | ||
/** | ||
* Initialize omapi layer. | ||
* This must be called if isAvailable() = false | ||
* | ||
* @return Null on success, otherwise an error. | ||
*/ | ||
OmapiError init(); | ||
|
||
/** | ||
* Check if omapi layer is available. | ||
* | ||
* @return True if omapi layer exists, otherwise false. | ||
*/ | ||
boolean isAvailable(); | ||
|
||
/** | ||
* Check if omapi layer is enabled. | ||
* | ||
* @return True if omapi layer is enabled, otherwise false. | ||
*/ | ||
boolean isEnabled(); | ||
|
||
/** | ||
* Get all enabled reader. | ||
* | ||
* @return List of reader, otherwise empty list. | ||
*/ | ||
List<OmapiReader> getReader(); | ||
|
||
/** | ||
* Closes and destroys the currently allocated implementation instance. | ||
*/ | ||
void close(); | ||
} |
Oops, something went wrong.