summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/cloud_file.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-04-11 23:37:53 +0300
committeraunsane <aunsane@gmail.com>2018-04-11 23:38:18 +0300
commit98c8a49c029397c7e5b81e19292681f24a533e0e (patch)
treeace75eb705f679ed1e69742dcef85d1b2242f578 /plugins/CloudFile/src/cloud_file.cpp
parent21fe9b80ff4030f76f68a90726bc29e49627414c (diff)
CloudFile: Add "grant acess" link to CloudFile accounts (fixed #1260)
Diffstat (limited to 'plugins/CloudFile/src/cloud_file.cpp')
-rw-r--r--plugins/CloudFile/src/cloud_file.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/cloud_file.cpp b/plugins/CloudFile/src/cloud_file.cpp
index 6d92528f8a..0c2f048cd8 100644
--- a/plugins/CloudFile/src/cloud_file.cpp
+++ b/plugins/CloudFile/src/cloud_file.cpp
@@ -11,6 +11,8 @@ CCloudService::CCloudService(const char *protoName, const wchar_t *userName)
nlu.szSettingsModule = (char*)protoName;
nlu.szDescriptiveName.w = (wchar_t*)userName;
m_hConnection = Netlib_RegisterUser(&nlu);
+
+ CreateProtoService(PS_CREATEACCMGRUI, &CCloudService::OnAccountManagerInit);
}
CCloudService::~CCloudService()
@@ -100,6 +102,14 @@ int CCloudService::OnEvent(PROTOEVENTTYPE iEventType, WPARAM, LPARAM)
return 1;
}
+INT_PTR CCloudService::OnAccountManagerInit(WPARAM, LPARAM lParam)
+{
+ CAccountManagerDlg *page = new CAccountManagerDlg(this);
+ page->SetParent((HWND)lParam);
+ page->Show();
+ return (INT_PTR)page->GetHwnd();
+}
+
std::string CCloudService::PreparePath(const char *path)
{
std::string newPath = path;