diff options
author | George Hazan <ghazan@miranda.im> | 2019-10-07 20:40:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-10-07 20:40:20 +0300 |
commit | 8d0500df234fc5b59ea7687bd5f55f19d7b8e28c (patch) | |
tree | a090b606b6e5fa25574c4836121cebae667de5cb /protocols/WhatsAppWeb/src/proto.h | |
parent | 5ffd6fe3ab6f29444c699720b9ea588b57313c27 (diff) |
WhatsAppWeb: QR code viewer
Diffstat (limited to 'protocols/WhatsAppWeb/src/proto.h')
-rw-r--r-- | protocols/WhatsAppWeb/src/proto.h | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/protocols/WhatsAppWeb/src/proto.h b/protocols/WhatsAppWeb/src/proto.h index 564a31eb2e..610313ab0e 100644 --- a/protocols/WhatsAppWeb/src/proto.h +++ b/protocols/WhatsAppWeb/src/proto.h @@ -1,3 +1,10 @@ +/* + +WhatsAppWeb plugin for Miranda NG +Copyright © 2019 George Hazan + +*/ + #if !defined(PROTO_H) #define PROTO_H @@ -15,13 +22,22 @@ struct WAChatInfo MCONTACT hContact; }; +struct WAConnection : public MZeroedObject +{ + EVP_PKEY *m_pKeys; // private & public keys +}; + class WhatsAppProto : public PROTO<WhatsAppProto> { ptrW m_tszDefaultGroup; - CMStringA m_szJid; + CMStringA m_szJid, m_szClientId; CMStringW m_tszAvatarFolder; + WAConnection *m_pConn; + + bool ShowQrCode(void); + /// Avatars ////////////////////////////////////////////////////////////////////////// CMStringW GetAvatarFileName(MCONTACT hContact); @@ -48,12 +64,12 @@ public: // PROTO_INTERFACE /////////////////////////////////////////////////////////////////// - MCONTACT __cdecl AddToList(int flags, PROTOSEARCHRESULT *psr) override; - INT_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL) override; - HANDLE __cdecl SearchBasic(const wchar_t* id) override; - int __cdecl SendMsg(MCONTACT hContact, int flags, const char* msg) override; - int __cdecl SetStatus(int iNewStatus) override; - int __cdecl UserIsTyping(MCONTACT hContact, int type) override; + MCONTACT AddToList(int flags, PROTOSEARCHRESULT *psr) override; + INT_PTR GetCaps(int type, MCONTACT hContact = NULL) override; + HANDLE SearchBasic(const wchar_t* id) override; + int SendMsg(MCONTACT hContact, int flags, const char* msg) override; + int SetStatus(int iNewStatus) override; + int UserIsTyping(MCONTACT hContact, int type) override; // Services ////////////////////////////////////////////////////////////////////////// @@ -74,6 +90,7 @@ public: void __cdecl ProcessBuddyList(void*); void __cdecl SearchAckThread(void*); + void __cdecl ServerThread(void*); // Contacts handling ///////////////////////////////////////////////////////////////// |