AusweisApp2
StateGetTcToken.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "AbstractState.h"
10 #include "context/AuthContext.h"
12 
13 #include <QNetworkReply>
14 #include <QSharedPointer>
15 
16 class test_StateGetTcToken;
17 
18 namespace governikus
19 {
20 
22  : public AbstractState
23  , public GenericContextContainer<AuthContext>
24 {
25  Q_OBJECT
26  friend class StateBuilder;
27  friend class ::test_StateGetTcToken;
28 
29  QSharedPointer<QNetworkReply> mReply;
30 
31  void parseTcToken();
32  void sendRequest(const QUrl& pUrl);
33  bool isValidRedirectUrl(const QUrl& pUrl);
34  void run() override;
35 
36  explicit StateGetTcToken(const QSharedPointer<WorkflowContext>& pContext);
37 
38  private Q_SLOTS:
39  void onNetworkReply();
40  void onSslHandshakeDone();
41  void onSslErrors(const QList<QSslError>& pErrors);
42 
43  public:
44  void onExit(QEvent* pEvent) override;
45 };
46 
47 } // namespace governikus
Definition: AbstractState.h:20
Definition: GenericContextContainer.h:20
Definition: StateBuilder.h:18
Definition: StateGetTcToken.h:24
void onExit(QEvent *pEvent) override
Definition: StateGetTcToken.cpp:102
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15