From 81ce57622c3166830b23eae534dacc6b008c659d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 28 Mar 2018 16:34:30 +0300 Subject: common protocol instance management code went into template --- protocols/Tox/src/tox_proto.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'protocols/Tox/src/tox_proto.h') diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 8a4fd782cd..ac71b30686 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -48,10 +48,6 @@ public: virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam); - // accounts - static CToxProto* InitAccount(const char *protoName, const wchar_t *userName); - static int UninitAccount(CToxProto *proto); - // icons static void InitIcons(); @@ -116,11 +112,6 @@ private: void __cdecl PollingThread(void*); // accounts - static LIST Accounts; - static int CompareAccounts(const CToxProto *p1, const CToxProto *p2); - - static CToxProto* GetContactAccount(MCONTACT hContact); - int __cdecl OnAccountLoaded(WPARAM, LPARAM); int __cdecl OnAccountRenamed(WPARAM, LPARAM); @@ -256,4 +247,11 @@ private: MEVENT AddEventToDb(MCONTACT hContact, WORD type, DWORD timestamp, DWORD flags, PBYTE pBlob, size_t cbBlob); }; +struct CMPlugin : public ACCPROTOPLUGIN +{ + CMPlugin() : + ACCPROTOPLUGIN("TOX") + {} +}; + #endif //_TOX_PROTO_H_ \ No newline at end of file -- cgit v1.2.3