diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-22 14:49:00 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-22 14:49:00 +0300 |
commit | fcae50377289915682e56fcbd49297d76da38b51 (patch) | |
tree | 1aceb0a6cb033b6be709401a42cc13eea6b4c928 /plugins | |
parent | 9300399ed59f4d82f5e62f5ef43b752da4dd0735 (diff) |
no more PROTO_INTERFACE::OnEvent
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CloudFile/src/cloud_file.cpp | 15 | ||||
-rw-r--r-- | plugins/CloudFile/src/cloud_file.h | 2 |
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; |