diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-28 23:20:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-28 23:20:50 +0000 |
commit | ebbf4ad769d99f07c6d5184d9fe4323e7eaf0246 (patch) | |
tree | 23edc80f39815511a97dc5c111564422b3a570da /protocols/WhatsApp/src/proto.h | |
parent | 998a7c4af898008db19fa3870c1df97d28b33eec (diff) |
avatars are back
git-svn-id: http://svn.miranda-ng.org/main/trunk@11943 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.h')
-rw-r--r-- | protocols/WhatsApp/src/proto.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/protocols/WhatsApp/src/proto.h b/protocols/WhatsApp/src/proto.h index a55d357e3f..25f145be59 100644 --- a/protocols/WhatsApp/src/proto.h +++ b/protocols/WhatsApp/src/proto.h @@ -74,12 +74,12 @@ public: INT_PTR __cdecl OnJoinChat(WPARAM, LPARAM);
INT_PTR __cdecl OnLeaveChat(WPARAM, LPARAM);
INT_PTR __cdecl OnCreateGroup(WPARAM, LPARAM);
- int __cdecl OnOptionsInit(WPARAM, LPARAM);
- int __cdecl OnModulesLoaded(WPARAM, LPARAM);
//////////////////////////////////////////////////////////////////////////////////////
// Events
+ int __cdecl OnOptionsInit(WPARAM, LPARAM);
+ int __cdecl OnModulesLoaded(WPARAM, LPARAM);
int __cdecl OnBuildStatusMenu(WPARAM, LPARAM);
int __cdecl OnChatOutgoing(WPARAM, LPARAM);
int __cdecl OnPrebuildContactMenu(WPARAM, LPARAM);
@@ -143,10 +143,18 @@ private: LONG m_iSerial;
- std::tstring GetAvatarFolder();
void ToggleStatusMenuItems(BOOL bEnable);
//////////////////////////////////////////////////////////////////////////////////////
+ // Avatars
+
+ std::tstring GetAvatarFileName(MCONTACT);
+ std::tstring m_tszAvatarFolder;
+
+ INT_PTR __cdecl GetAvatarInfo(WPARAM, LPARAM);
+ INT_PTR __cdecl GetAvatarCaps(WPARAM, LPARAM);
+
+ //////////////////////////////////////////////////////////////////////////////////////
// Handles, Locks
HGENMENU m_hMenuRoot;
@@ -156,8 +164,6 @@ private: HANDLE log_lock_;
HANDLE update_loop_lock_;
- std::tstring def_avatar_folder_;
-
WASocketConnection *conn;
WAConnection *m_pConnection;
Mutex connMutex;
@@ -188,8 +194,7 @@ protected: virtual void onDirty(const std::map<string, string>& paramHashtable) { }
virtual void onDirtyResponse(int paramHashtable) { }
virtual void onRelayRequest(const std::string ¶mString1, int paramInt, const std::string ¶mString2) { }
- virtual void onSendGetPictureIds(std::map<string, string>* ids);
- virtual void onSendGetPicture(const std::string &jid, const std::vector<unsigned char>& data, const std::string &oldId, const std::string &newId);
+ virtual void onSendGetPicture(const std::string &jid, const std::vector<unsigned char>& data, const std::string &id);
virtual void onPictureChanged(const std::string &from, const std::string &author, bool set);
virtual void onDeleteAccount(bool result) { }
|