summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/oauth.h
blob: cbc4b3855e83712f27b1e177d9bdd52c7c38257e (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 _OAUTH_H_
#define _OAUTH_H_

class COAuthDlg : public CDlgBase
{
private:
	CCloudService *m_service;
	const char *m_authUrl;
	pThreadFuncOwner m_requestAccessTokenThread;

	CCtrlButton m_authorize;
	CCtrlEdit m_code;
	CCtrlButton m_ok;

protected:
	void OnInitDialog() override;

	void Auth_OnClick(CCtrlButton*);
	void Code_OnChange(CCtrlBase*);
	void Ok_OnClick(CCtrlButton*);

public:
	COAuthDlg(CCloudService *service, const char *authUrl, pThreadFuncOwner requestAccessTokenThread);
};

#endif //_OAUTH_H_