summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_profile.h
blob: 446a4b7c03e2866a4b286503bc474ff862b2cb86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef _TOX_PROFILE_H_
#define _TOX_PROFILE_H_

/* ENTER PASSWORD */

class CToxEnterPasswordDlg : public CToxDlgBase
{
private:
	CCtrlEdit m_password;
	CCtrlCheck m_savePermanently;

	CCtrlButton m_ok;

protected:
	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:
	CToxChangePasswordDlg(CToxProto *proto);

	wchar_t* GetPassword();
};

#endif //_TOX_PROFILE_H_