summaryrefslogtreecommitdiff
path: root/protocols/Slack/src/slack_dialogs.h
blob: cd7f78226df258158e95838de70b6fd3a06c517e (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
#ifndef _SLACK_DIALOGS_H_
#define _SLACK_DIALOGS_H_

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

private:
	char m_authCode[40];

	CCtrlHyperlink m_authorize;
	CCtrlEdit m_code;
	CCtrlButton m_ok;

protected:
	void OnInitDialog();
	void OnOk(CCtrlButton*);
	void OnClose();

public:
	CSlackOAuth(CSlackProto *proto);

	const char *GetAuthCode();
};

#endif //_SLACK_DIALOGS_H_