summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/oauth.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CloudFile/src/oauth.h')
-rw-r--r--plugins/CloudFile/src/oauth.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/oauth.h b/plugins/CloudFile/src/oauth.h
new file mode 100644
index 0000000000..434927f791
--- /dev/null
+++ b/plugins/CloudFile/src/oauth.h
@@ -0,0 +1,22 @@
+#ifndef _OAUTH_H_
+#define _OAUTH_H_
+
+class COAuthDlg : public CDlgBase
+{
+private:
+ CCloudService *m_service;
+ pThreadFuncOwner m_requestAccessTokenThread;
+
+ CCtrlHyperlink m_auth;
+ CCtrlEdit m_code;
+ CCtrlButton m_ok;
+
+protected:
+ void Code_OnChange(CCtrlBase*);
+ void Ok_OnClick(CCtrlButton*);
+
+public:
+ COAuthDlg(CCloudService *service, const char *authUrl, pThreadFuncOwner requestAccessTokenThread);
+};
+
+#endif //_OAUTH_H_ \ No newline at end of file