summaryrefslogtreecommitdiff
path: root/protocols/CloudFile/src/oauth.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-02 12:32:44 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-02 12:32:55 +0300
commit931a7dc1ac0dbc7e6c1083583ced915e572f5b47 (patch)
tree9fe9a6448d44030e26aa7107ce16044ed413e0d0 /protocols/CloudFile/src/oauth.h
parentdd7d9954042254e66e3bbbec7195c6be8b1a0663 (diff)
all protocols (even virtual ones) moved to the Protocols folder
Diffstat (limited to 'protocols/CloudFile/src/oauth.h')
-rw-r--r--protocols/CloudFile/src/oauth.h23
1 files changed, 23 insertions, 0 deletions
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