summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_profile.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-12-20 22:15:46 +0300
committeraunsane <aunsane@gmail.com>2017-12-20 22:17:00 +0300
commitc8548c468436fc3a2fccc00be9f48e6b7f0a1df2 (patch)
tree0d6cd519060f7783a0820d66462b037fd2a5c182 /protocols/Tox/src/tox_profile.h
parentbe36bd4b6641ebe418724aad1d867236794ffaa1 (diff)
Tox: added ability to encrypt profile
Diffstat (limited to 'protocols/Tox/src/tox_profile.h')
-rw-r--r--protocols/Tox/src/tox_profile.h33
1 files changed, 30 insertions, 3 deletions
diff --git a/protocols/Tox/src/tox_profile.h b/protocols/Tox/src/tox_profile.h
index 6a0b31f1f5..446a4b7c03 100644
--- a/protocols/Tox/src/tox_profile.h
+++ b/protocols/Tox/src/tox_profile.h
@@ -1,7 +1,9 @@
#ifndef _TOX_PROFILE_H_
#define _TOX_PROFILE_H_
-class CToxPasswordEditor : public CToxDlgBase
+/* ENTER PASSWORD */
+
+class CToxEnterPasswordDlg : public CToxDlgBase
{
private:
CCtrlEdit m_password;
@@ -10,11 +12,36 @@ private:
CCtrlButton m_ok;
protected:
- void OnChange(CCtrlBase*);
+ void OnInitDialog();
+ void Password_OnChange(CCtrlBase*);
+ void OnOk(CCtrlButton*);
+
+public:
+ CToxEnterPasswordDlg(CToxProto *proto);
+
+ wchar_t* GetPassword();
+};
+
+/* CHANGE PASSWORD */
+
+class CToxChangePasswordDlg : public CToxDlgBase
+{
+private:
+ CCtrlEdit m_oldPassword;
+
+ CCtrlEdit m_newPassword;
+ CCtrlEdit m_confirmPassword;
+
+ CCtrlBase m_passwordValidation;
+ CCtrlButton m_ok;
+
+protected:
+ void OnInitDialog();
+ void Password_OnChange(CCtrlBase*);
void OnOk(CCtrlButton*);
public:
- CToxPasswordEditor(CToxProto *proto);
+ CToxChangePasswordDlg(CToxProto *proto);
wchar_t* GetPassword();
};