summaryrefslogtreecommitdiff
path: root/src/pincodemanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pincodemanager.h')
-rw-r--r--src/pincodemanager.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/src/pincodemanager.h b/src/pincodemanager.h
index 58af704ed..bf3d2e8fc 100644
--- a/src/pincodemanager.h
+++ b/src/pincodemanager.h
@@ -23,8 +23,15 @@
#include "enums/simpletypes/beingid.h"
+#include "enums/gui/pincodestate.h"
+
+#include <string>
+
#include "localconsts.h"
+class PincodeDialog;
+class Window;
+
class PincodeManager final
{
public:
@@ -36,13 +43,9 @@ class PincodeManager final
void init();
- void pinOk();
-
- void askPin();
+ void updateState();
- void createNewPin();
-
- void changePin();
+ void pinOk();
void wrongPin();
@@ -52,9 +55,19 @@ class PincodeManager final
void setAccountId(const BeingId id)
{ mAccountId = id; }
+ void setState(const PincodeState state)
+ { mState = state; }
+
+ void clearDialog(const PincodeDialog *const PincodeDialog);
+
+ void setNewPincode(const std::string &pincode);
+
protected:
+ std::string mNewPincode;
uint32_t mSeed;
BeingId mAccountId;
+ Window *mDialog;
+ PincodeState mState;
};
extern PincodeManager pincodeManager;