summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/CloudFile/src/cloud_file.cpp15
-rw-r--r--plugins/CloudFile/src/cloud_file.h2
2 files changed, 6 insertions, 11 deletions
diff --git a/plugins/CloudFile/src/cloud_file.cpp b/plugins/CloudFile/src/cloud_file.cpp
index 3217716341..2c019cbd96 100644
--- a/plugins/CloudFile/src/cloud_file.cpp
+++ b/plugins/CloudFile/src/cloud_file.cpp
@@ -21,6 +21,11 @@ CCloudService::~CCloudService()
m_hConnection = nullptr;
}
+void CCloudService::OnErase()
+{
+ KillModuleMenus(m_hLangpack);
+}
+
int CCloudService::GetId() const
{
return m_hLangpack;
@@ -88,16 +93,6 @@ void CCloudService::OpenUploadDialog(MCONTACT hContact)
SetActiveWindow(it->second);
}
-int CCloudService::OnEvent(PROTOEVENTTYPE iEventType, WPARAM, LPARAM)
-{
- switch (iEventType) {
- case EV_PROTO_ONERASE:
- KillModuleMenus(m_hLangpack);
- return 0;
- }
- return 1;
-}
-
INT_PTR CCloudService::OnAccountManagerInit(WPARAM, LPARAM lParam)
{
CAccountManagerDlg *page = new CAccountManagerDlg(this);
diff --git a/plugins/CloudFile/src/cloud_file.h b/plugins/CloudFile/src/cloud_file.h
index 140102a9a2..f16d5affe4 100644
--- a/plugins/CloudFile/src/cloud_file.h
+++ b/plugins/CloudFile/src/cloud_file.h
@@ -24,6 +24,7 @@ protected:
virtual void HandleHttpError(NETLIBHTTPREQUEST *response);
virtual void HandleJsonError(JSONNode &node) = 0;
+ void OnErase() override;
void OnModulesLoaded() override;
JSONNode GetJsonResponse(NETLIBHTTPREQUEST *response);
@@ -37,7 +38,6 @@ public:
virtual ~CCloudService();
INT_PTR GetCaps(int type, MCONTACT) override;
- int OnEvent(PROTOEVENTTYPE iEventType, WPARAM, LPARAM) override;
int FileCancel(MCONTACT hContact, HANDLE hTransfer) override;
HANDLE SendFile(MCONTACT hContact, const wchar_t *msg, wchar_t **ppszFiles) override;