diff options
Diffstat (limited to 'protocols/CloudFile/src/oauth.h')
-rw-r--r-- | protocols/CloudFile/src/oauth.h | 23 |
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 |