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 /protocols/Tox/src | |
parent | 9300399ed59f4d82f5e62f5ef43b752da4dd0735 (diff) |
no more PROTO_INTERFACE::OnEvent
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_profile.cpp | 3 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 10 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 3 |
3 files changed, 2 insertions, 14 deletions
diff --git a/protocols/Tox/src/tox_profile.cpp b/protocols/Tox/src/tox_profile.cpp index 4458e0e6c7..76744445e5 100644 --- a/protocols/Tox/src/tox_profile.cpp +++ b/protocols/Tox/src/tox_profile.cpp @@ -142,11 +142,10 @@ void CToxProto::SaveToxProfile(Tox *tox) mir_free(data);
}
-int CToxProto::OnDeleteToxProfile()
+void CToxProto::OnErase()
{
ptrW profilePath(GetToxProfilePath());
_wunlink(profilePath);
- return 0;
}
INT_PTR CToxProto::OnCopyToxID(WPARAM, LPARAM)
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index c8c66012a1..0ae5b521ec 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -224,13 +224,3 @@ int CToxProto::UserIsTyping(MCONTACT hContact, int type) {
return OnUserIsTyping(hContact, type);
}
-
-int CToxProto::OnEvent(PROTOEVENTTYPE iEventType, WPARAM, LPARAM)
-{
- switch (iEventType) {
- case EV_PROTO_ONERASE:
- return OnDeleteToxProfile();
- }
-
- return 1;
-}
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index e29fceaa14..9e1ce07d97 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -46,9 +46,9 @@ public: int UserIsTyping(MCONTACT hContact, int type) override;
- int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam) override;
void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
+ void OnErase() override;
void OnModulesLoaded() override;
// icons
@@ -82,7 +82,6 @@ private: bool LoadToxProfile(Tox_Options *options);
void SaveToxProfile(Tox *tox);
- int OnDeleteToxProfile();
INT_PTR __cdecl OnCopyToxID(WPARAM, LPARAM);
INT_PTR __cdecl OnCreatePassword(WPARAM, LPARAM);
|