summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_options.h
blob: e0eeda70a331fb9c70f9b9d5fde8cb4f35266711 (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
#ifndef _SLACK_OPTIONS_H_
#define _SLACK_OPTIONS_H_

class CSlackOptionsMain : public CProtoDlgBase<CSlackProto>
{
	typedef CProtoDlgBase<CSlackProto> CSuper;

private:
	CCtrlEdit m_team;
	CCtrlEdit m_email;
	CCtrlEdit m_password;
	CCtrlEdit m_group;

protected:
	void OnInitDialog();
	void OnApply();

public:
	CSlackOptionsMain(CSlackProto *proto, int idDialog);

	static CDlgBase *CreateAccountManagerPage(void *param, HWND owner)
	{
		CSlackOptionsMain *page = new CSlackOptionsMain((CSlackProto*)param, IDD_ACCOUNT_MANAGER);
		page->SetParent(owner);
		page->Show();
		return page;
	}

	static CDlgBase *CreateOptionsPage(void *param) { return new CSlackOptionsMain((CSlackProto*)param, IDD_OPTIONS_MAIN); }
};

#endif //_SLACK_OPTIONS_H_