AusweisApp2
RandomPinDialog.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include <QDialog>
10 #include <QScopedPointer>
11 
12 namespace Ui
13 {
14 class RandomPinDialog;
15 } // namespace Ui
16 
17 namespace governikus
18 {
19 
21  : public QDialog
22 {
23  Q_OBJECT
24 
25  public:
26  RandomPinDialog(int pLength, const QString& pSelectedReader, QWidget* pParent = nullptr);
27  virtual ~RandomPinDialog() override;
28 
29  QString getPin();
30 
31  protected:
32  virtual bool eventFilter(QObject* pObject, QEvent* pEvent) override;
33  virtual void changeEvent(QEvent* pEvent) override;
34 
35  private:
36  QScopedPointer<Ui::RandomPinDialog> mUi;
37  const QString mSelectedReader;
38 
39  void initComponents();
40  void createButton();
41 
42  private Q_SLOTS:
43  void onPosButtonClicked();
44  void onCardRemoved(const QString& pReaderName);
45  void onCardInserted();
46 };
47 
48 } // namespace governikus
Definition: RandomPinDialog.h:22
RandomPinDialog(int pLength, const QString &pSelectedReader, QWidget *pParent=nullptr)
Definition: RandomPinDialog.cpp:19
virtual ~RandomPinDialog() override
Definition: RandomPinDialog.cpp:54
virtual void changeEvent(QEvent *pEvent) override
Definition: RandomPinDialog.cpp:143
QString getPin()
Definition: RandomPinDialog.cpp:94
virtual bool eventFilter(QObject *pObject, QEvent *pEvent) override
Definition: RandomPinDialog.cpp:128
Dialog to display information about the application.
Definition: AboutDialog.h:13
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15