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 /include | |
parent | 9300399ed59f4d82f5e62f5ef43b752da4dd0735 (diff) |
no more PROTO_INTERFACE::OnEvent
Diffstat (limited to 'include')
-rw-r--r-- | include/m_protoint.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/include/m_protoint.h b/include/m_protoint.h index 251308aea9..f7d9d15968 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -32,15 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_utils.h>
/////////////////////////////////////////////////////////////////////////////////////////
-// data types
-
-typedef enum
-{
- EV_PROTO_ONERASE,
-}
- PROTOEVENTTYPE;
-
-/////////////////////////////////////////////////////////////////////////////////////////
// protocol helpers
struct PROTO_INTERFACE;
@@ -218,16 +209,26 @@ public: virtual int UserIsTyping(MCONTACT hContact, int type);
- virtual int OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam);
-
//////////////////////////////////////////////////////////////////////////////////////
// events
- virtual void OnBuildProtoMenu(void);
- virtual void OnContactDeleted(MCONTACT);
- virtual void OnModulesLoaded(void); // the analog of ME_SYSTEM_MODULESLOADED for an account
- virtual void OnShutdown(void); // same for ME_SYSTEM_SHUTDOWN
- virtual bool IsReadyToExit(void); // same for ME_SYSTEM_OKTOEXIT
+ // builds the account's protocol menu
+ virtual void OnBuildProtoMenu(void);
+
+ // called when an account's contact is deleted
+ virtual void OnContactDeleted(MCONTACT);
+
+ // called when an account gets physically removed from the database
+ virtual void OnErase();
+
+ // the analog of ME_SYSTEM_MODULESLOADED for an account
+ virtual void OnModulesLoaded(void);
+
+ // same for ME_SYSTEM_SHUTDOWN
+ virtual void OnShutdown(void);
+
+ // same for ME_SYSTEM_OKTOEXIT
+ virtual bool IsReadyToExit(void);
};
/////////////////////////////////////////////////////////////////////////////////////////
|