From fcae50377289915682e56fcbd49297d76da38b51 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Apr 2018 14:49:00 +0300 Subject: no more PROTO_INTERFACE::OnEvent --- include/m_protoint.h | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'include') 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 @@ -31,15 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include -///////////////////////////////////////////////////////////////////////////////////////// -// data types - -typedef enum -{ - EV_PROTO_ONERASE, -} - PROTOEVENTTYPE; - ///////////////////////////////////////////////////////////////////////////////////////// // protocol helpers @@ -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); }; ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3