From 931a7dc1ac0dbc7e6c1083583ced915e572f5b47 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Mar 2019 12:32:44 +0300 Subject: all protocols (even virtual ones) moved to the Protocols folder --- protocols/CloudFile/src/oauth.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 protocols/CloudFile/src/oauth.h (limited to 'protocols/CloudFile/src/oauth.h') diff --git a/protocols/CloudFile/src/oauth.h b/protocols/CloudFile/src/oauth.h new file mode 100644 index 0000000000..2b32ecbd9b --- /dev/null +++ b/protocols/CloudFile/src/oauth.h @@ -0,0 +1,23 @@ +#ifndef _OAUTH_H_ +#define _OAUTH_H_ + +class COAuthDlg : public CDlgBase +{ + CCloudService *m_service; + CCloudService::MyThreadFunc m_requestAccessTokenThread; + + CCtrlHyperlink m_authorize; + CCtrlEdit m_code; + CCtrlButton m_ok; + +protected: + bool OnInitDialog() override; + + void Code_OnChange(CCtrlBase*); + void Ok_OnClick(CCtrlButton*); + +public: + COAuthDlg(CCloudService *service, const char *authUrl, CCloudService::MyThreadFunc requestAccessTokenThread); +}; + +#endif //_OAUTH_H_ \ No newline at end of file -- cgit v1.2.3