diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-02 12:32:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-02 12:32:55 +0300 |
commit | 931a7dc1ac0dbc7e6c1083583ced915e572f5b47 (patch) | |
tree | 9fe9a6448d44030e26aa7107ce16044ed413e0d0 /plugins/CloudFile/src/oauth.cpp | |
parent | dd7d9954042254e66e3bbbec7195c6be8b1a0663 (diff) |
all protocols (even virtual ones) moved to the Protocols folder
Diffstat (limited to 'plugins/CloudFile/src/oauth.cpp')
-rw-r--r-- | plugins/CloudFile/src/oauth.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/plugins/CloudFile/src/oauth.cpp b/plugins/CloudFile/src/oauth.cpp deleted file mode 100644 index e62629fcd8..0000000000 --- a/plugins/CloudFile/src/oauth.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "stdafx.h" - -COAuthDlg::COAuthDlg(CCloudService *service, const char *authUrl, CCloudService::MyThreadFunc requestAccessTokenThread) - : CDlgBase(g_plugin, IDD_OAUTH), m_service(service), - m_requestAccessTokenThread(requestAccessTokenThread), - m_authorize(this, IDC_OAUTH_AUTHORIZE, authUrl), - m_code(this, IDC_OAUTH_CODE), m_ok(this, IDOK) -{ - m_autoClose = CLOSE_ON_CANCEL; - m_code.OnChange = Callback(this, &COAuthDlg::Code_OnChange); - m_ok.OnClick = Callback(this, &COAuthDlg::Ok_OnClick); -} - -bool COAuthDlg::OnInitDialog() -{ - CCtrlLabel &ctrl = *(CCtrlLabel*)FindControl(IDC_AUTH_TEXT); - ptrW format(ctrl.GetText()); - wchar_t text[MAX_PATH]; - mir_snwprintf(text, (const wchar_t*)format, m_service->GetUserName()); - ctrl.SetText(text); - return true; -} - -void COAuthDlg::Code_OnChange(CCtrlBase*) -{ - ptrA requestToken(m_code.GetTextA()); - m_ok.Enable(mir_strlen(requestToken) != 0); -} - -void COAuthDlg::Ok_OnClick(CCtrlButton*) -{ - m_service->ForkThread(m_requestAccessTokenThread, m_hwnd); -}
\ No newline at end of file |