diff options
author | aunsane <aunsane@gmail.com> | 2017-12-21 16:08:58 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-12-21 16:09:15 +0300 |
commit | 70c13e5c4475aedd296c51e68070e85096eb4f39 (patch) | |
tree | 83ed7d0e4bf25d25babfd7fdfe741e9e457f6c6d /protocols/Tox/src/tox_profile.h | |
parent | f4184ffdc42c7a1753a77ea8087f5f16635ac942 (diff) |
Tox: improved profile encription management
Diffstat (limited to 'protocols/Tox/src/tox_profile.h')
-rw-r--r-- | protocols/Tox/src/tox_profile.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/protocols/Tox/src/tox_profile.h b/protocols/Tox/src/tox_profile.h index 446a4b7c03..4aedae071f 100644 --- a/protocols/Tox/src/tox_profile.h +++ b/protocols/Tox/src/tox_profile.h @@ -7,7 +7,6 @@ class CToxEnterPasswordDlg : public CToxDlgBase {
private:
CCtrlEdit m_password;
- CCtrlCheck m_savePermanently;
CCtrlButton m_ok;
@@ -18,8 +17,27 @@ protected: public:
CToxEnterPasswordDlg(CToxProto *proto);
+};
+
+/* CREATE PASSWORD */
+
+class CToxCreatePasswordDlg : public CToxDlgBase
+{
+private:
+ CCtrlEdit m_newPassword;
+ CCtrlEdit m_confirmPassword;
+
+ CCtrlBase m_passwordValidation;
- wchar_t* GetPassword();
+ CCtrlButton m_ok;
+
+protected:
+ void OnInitDialog();
+ void Password_OnChange(CCtrlBase*);
+ void OnOk(CCtrlButton*);
+
+public:
+ CToxCreatePasswordDlg(CToxProto *proto);
};
/* CHANGE PASSWORD */
@@ -33,6 +51,7 @@ private: CCtrlEdit m_confirmPassword;
CCtrlBase m_passwordValidation;
+
CCtrlButton m_ok;
protected:
@@ -42,8 +61,6 @@ protected: public:
CToxChangePasswordDlg(CToxProto *proto);
-
- wchar_t* GetPassword();
};
#endif //_TOX_PROFILE_H_
\ No newline at end of file |