AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
StepGui.h
gehe zur Dokumentation dieser Datei
1 
5 #pragma once
6 
7 #include "generic/ButtonState.h"
8 
9 #include <QScopedPointer>
10 #include <QSharedPointer>
11 #include <QWidget>
12 
13 namespace governikus
14 {
15 
16 class WorkflowContext;
17 
18 
20  : public QObject
21 {
22  Q_OBJECT
23 
24  public:
26 
27  Q_SIGNALS:
28  void setForwardButtonState(ButtonState pState, const QString& pText);
29  void setCancelButtonState(ButtonState pState);
30 };
31 
32 
33 class StepGui
34  : public QObject
35 {
36  Q_OBJECT
37 
38  public:
39  StepGui(const QSharedPointer<WorkflowContext>& pContext);
40  virtual ~StepGui();
41 
43  {
44  return mDelegate.data();
45  }
46 
47 
48  virtual void activate()
49  {
50  }
51 
52 
53  virtual void deactivate()
54  {
55  }
56 
57 
58  virtual void forwardStep();
59 
60  protected:
61  void setForwardButtonState(ButtonState pState, const QString& pText = QString())
62  {
63  Q_EMIT mDelegate->setForwardButtonState(pState, pText);
64  }
65 
66 
68  {
69  Q_EMIT mDelegate->setCancelButtonState(pState);
70  }
71 
72 
73  protected:
74  QScopedPointer<StepGuiDelegate> mDelegate;
75 
76  Q_SIGNALS:
77  //void fireErrorMessage(QString pTitle, QString pMessage, QVector<ReaderInfo> pReaderInfos, bool closeErrorMessage = false);
78  void fireUiFinished();
79  void fireCancelled();
80 
81 };
82 
83 } /* namespace governikus */
StepGui(const QSharedPointer< WorkflowContext > &pContext)
Definition: StepGui.cpp:17
void setForwardButtonState(ButtonState pState, const QString &pText=QString())
Definition: StepGui.h:61
virtual void deactivate()
Definition: StepGui.h:53
Definition: StepGui.h:19
QScopedPointer< StepGuiDelegate > mDelegate
Definition: StepGui.h:74
void setForwardButtonState(ButtonState pState, const QString &pText)
Definition: StepGui.h:33
StepGuiDelegate * getStepGuiDelegate() const
Definition: StepGui.h:42
ButtonState
Definition: ButtonState.h:12
virtual void forwardStep()
Definition: StepGui.cpp:29
void setCancelButtonState(ButtonState pState)
Definition: StepGui.h:67
void setCancelButtonState(ButtonState pState)
virtual void activate()
Definition: StepGui.h:48
StepGuiDelegate()
Definition: StepGui.cpp:11
virtual ~StepGui()
Definition: StepGui.cpp:24