From 803e7b0b5e7c84a814601141fcb7634516eefa30 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 21 Apr 2018 12:51:54 +0300 Subject: EV_PROTO_DBSETTINGSCHANGED - old useless stub removed --- protocols/Gadu-Gadu/src/gg_proto.cpp | 5 ++--- protocols/Gadu-Gadu/src/gg_proto.h | 41 +++++++++++++++++++++--------------- 2 files changed, 26 insertions(+), 20 deletions(-) (limited to 'protocols/Gadu-Gadu') diff --git a/protocols/Gadu-Gadu/src/gg_proto.cpp b/protocols/Gadu-Gadu/src/gg_proto.cpp index 7072330d25..3851e4ce7a 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.cpp +++ b/protocols/Gadu-Gadu/src/gg_proto.cpp @@ -61,6 +61,8 @@ GaduProto::GaduProto(const char *pszProtoName, const wchar_t *tszUserName) : CreateProtoService(PS_LEAVECHAT, &GaduProto::leavechat); + HookProtoEvent(ME_DB_CONTACT_SETTINGCHANGED, &GaduProto::dbsettingchanged); + // Offline contacts and clear logon time setalloffline(); setDword(GG_KEY_LOGONTIME, 0); @@ -738,9 +740,6 @@ int GaduProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam) case EV_PROTO_ONCONTACTDELETED: return contactdeleted(wParam, lParam); - - case EV_PROTO_DBSETTINGSCHANGED: - return dbsettingchanged(wParam, lParam); } return TRUE; diff --git a/protocols/Gadu-Gadu/src/gg_proto.h b/protocols/Gadu-Gadu/src/gg_proto.h index dbec00c7ac..8445e52499 100644 --- a/protocols/Gadu-Gadu/src/gg_proto.h +++ b/protocols/Gadu-Gadu/src/gg_proto.h @@ -61,20 +61,29 @@ struct GaduProto : public PROTO void OnShutdown() override; ////////////////////////////////////////////////////////////////////////////////////// - // Services + // Services INT_PTR __cdecl blockuser(WPARAM wParam, LPARAM lParam); INT_PTR __cdecl getmyawaymsg(WPARAM wParam, LPARAM lParam); INT_PTR __cdecl get_acc_mgr_gui(WPARAM wParam, LPARAM lParam); INT_PTR __cdecl leavechat(WPARAM wParam, LPARAM lParam); - void __cdecl sendackthread(void *); - void __cdecl searchthread(void *); - void __cdecl cmdgetinfothread(void *hContact); - void __cdecl getawaymsgthread(void *hContact); - void __cdecl dccmainthread(void *); - void __cdecl ftfailthread(void *param); - void __cdecl remindpasswordthread(void *param); + ////////////////////////////////////////////////////////////////////////////////////// + // Threads + + void __cdecl mainthread(void *empty); + void __cdecl sendackthread(void *); + void __cdecl searchthread(void *); + void __cdecl cmdgetinfothread(void *hContact); + void __cdecl getawaymsgthread(void *hContact); + void __cdecl dccmainthread(void *); + void __cdecl ftfailthread(void *param); + void __cdecl remindpasswordthread(void *param); + + ////////////////////////////////////////////////////////////////////////////////////// + // Events + + int __cdecl dbsettingchanged(WPARAM wParam, LPARAM lParam); ////////////////////////////////////////////////////////////////////////////////////// @@ -98,14 +107,12 @@ struct GaduProto : public PROTO void setalloffline(); void disconnect(); MCONTACT getcontact(uin_t uin, int create, int inlist, wchar_t *nick); - void __cdecl mainthread(void *empty); int isonline(); int refreshstatus(int status); void broadcastnewstatus(int newStatus); void cleanuplastplugin(DWORD version); int contactdeleted(WPARAM wParam, LPARAM lParam); - int dbsettingchanged(WPARAM wParam, LPARAM lParam); void notifyall(); void changecontactstatus(uin_t uin, int status, const wchar_t *idescr, int time, uint32_t remote_ip, uint16_t remote_port, uint32_t version); wchar_t *getstatusmsg(int status); @@ -124,16 +131,16 @@ struct GaduProto : public PROTO void setAvatar(const wchar_t *szFilename); bool getAvatarFileInfo(uin_t uin, char **avatarurl, char **avatarts); - INT_PTR __cdecl getavatarcaps(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl getavatarinfo(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl getmyavatar(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl setmyavatar(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl getavatarcaps(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl getavatarinfo(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl getmyavatar(WPARAM wParam, LPARAM lParam); + INT_PTR __cdecl setmyavatar(WPARAM wParam, LPARAM lParam); void initavatarrequestthread(); - void __cdecl avatarrequestthread(void*); - void __cdecl getOwnAvatarThread(void*); - void __cdecl setavatarthread(void*); + void __cdecl avatarrequestthread(void*); + void __cdecl getOwnAvatarThread(void*); + void __cdecl setavatarthread(void*); /* File transfer functions */ HANDLE dccfileallow(HANDLE hTransfer, const wchar_t* szPath); -- cgit v1.2.3