summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-09 17:58:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-09 17:58:37 +0000
commita71cdc522c320ad0c18317e8f0a2127f8eddecf7 (patch)
tree539e6555874fbf73b6a576180730216a3d2e3fe1 /protocols/VKontakte/src/vk_proto.h
parent80fdf5cd7f151aff37a87c5e1e0ca9ec1a4bbf27 (diff)
VK: version of chats that reads a nicklist & message history
git-svn-id: http://svn.miranda-ng.org/main/trunk@7570 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 32f597d939..1cff543e4f 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -33,19 +33,22 @@ struct AsyncHttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
struct CVkChatUser
{
- int userid;
- ptrT tszTitle, tszImage;
+ CVkChatUser(int _id) : m_uid(_id) {}
+
+ int m_uid;
+ ptrT m_tszTitle, m_tszImage;
};
-struct CVkChatInfo
+struct CVkChatInfo : public MZeroedObject
{
CVkChatInfo(int _id) :
m_users(10, NumericKeySortT),
m_chatid(_id)
{}
- int m_chatid;
- ptrT m_tszTitle;
+ int m_chatid, m_admin_id;
+ bool m_bHistoryRead;
+ ptrT m_tszTitle, m_tszId;
HANDLE m_hContact;
OBJLIST<CVkChatUser> m_users;
};
@@ -223,5 +226,9 @@ private:
static INT_PTR CALLBACK OptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
OBJLIST<CVkChatInfo> m_chats;
- void AppendChat(int id, JSONNODE *pNode);
+ CVkChatInfo* AppendChat(int id, JSONNODE *pNode);
+ void RetrieveChatInfo(CVkChatInfo*);
+ void OnReceiveChatInfo(NETLIBHTTPREQUEST*, AsyncHttpRequest*);
+
+ CMString GetAttachmentDescr(JSONNODE*);
};