AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
WorkflowModel.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
10 
11 #include <QObject>
12 #include <QSharedPointer>
13 #include <QString>
14 
15 namespace governikus
16 {
17 
18 class WorkflowContext;
19 
21  : public QObject
22 {
23  Q_OBJECT
24  Q_PROPERTY(QString currentState READ getCurrentState NOTIFY fireCurrentStateChanged)
25  Q_PROPERTY(QString resultString READ getResultString NOTIFY fireResultChanged)
26  Q_PROPERTY(bool error READ isError NOTIFY fireResultChanged)
27  Q_PROPERTY(QString readerPlugInType READ getReaderPlugInType WRITE setReaderPlugInType NOTIFY fireReaderPlugInTypeChanged)
29 
30  private:
31  QSharedPointer<WorkflowContext> mContext;
32 
33  void setReaderPlugInType(const ReaderManagerPlugInType pReaderPlugInType);
34 
35  public:
36  WorkflowModel(QObject* pParent = nullptr);
37  virtual ~WorkflowModel();
38 
39  void resetContext(const QSharedPointer<WorkflowContext>& pContext = QSharedPointer<WorkflowContext>());
40 
41  QString getCurrentState() const;
42  virtual QString getResultString() const;
43  bool isError() const;
44 
45  QString getReaderPlugInType() const;
46  void setReaderPlugInType(const QString& pReaderPlugInType);
47 
48  bool isBasicReader();
49 
50  Q_INVOKABLE void startWorkflow();
51  Q_INVOKABLE void cancelWorkflow();
52  Q_INVOKABLE void cancelWorkflowOnPinBlocked();
53  Q_INVOKABLE void continueWorkflow();
54  Q_INVOKABLE void setInitialPluginType();
55 
56  Q_SIGNALS:
57  void fireStartWorkflow();
58  void fireCurrentStateChanged(const QString& pState);
59  void fireResultChanged();
62 };
63 
64 
65 } /* namespace governikus */
Q_INVOKABLE void continueWorkflow()
Definition: WorkflowModel.cpp:93
QString readerPlugInType
Definition: WorkflowModel.h:27
Q_INVOKABLE void cancelWorkflowOnPinBlocked()
Definition: WorkflowModel.cpp:117
Q_INVOKABLE void cancelWorkflow()
Definition: WorkflowModel.cpp:108
void fireCurrentStateChanged(const QString &pState)
bool error
Definition: WorkflowModel.h:26
Q_INVOKABLE void startWorkflow()
Definition: WorkflowModel.cpp:102
QString getReaderPlugInType() const
Definition: WorkflowModel.cpp:62
void resetContext(const QSharedPointer< WorkflowContext > &pContext=QSharedPointer< WorkflowContext >())
Definition: WorkflowModel.cpp:26
Definition: WorkflowContext.h:19
QString currentState
Definition: WorkflowModel.h:24
QString resultString
Definition: WorkflowModel.h:25
bool isError() const
Definition: WorkflowModel.cpp:56
QString getCurrentState() const
Definition: WorkflowModel.cpp:44
Q_INVOKABLE void setInitialPluginType()
Definition: WorkflowModel.cpp:138
virtual QString getResultString() const
Definition: WorkflowModel.cpp:50
Definition: WorkflowModel.h:20