From 5c365012d42bd08fce526394372d396caa6ea04c Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 16 Apr 2015 18:29:26 +0000 Subject: SkypeWeb: Chats support part 2.3. git-svn-id: http://svn.miranda-ng.org/main/trunk@12868 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 9 +++++++++ protocols/SkypeWeb/src/skype_proto.h | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 88a9f45b11..ac262389f0 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -138,6 +138,8 @@ void CSkypeProto::StartChatRoom(MCONTACT hChatRoom, bool showWindow) CallServiceSync(MS_GC_EVENT, NULL, (LPARAM)&gceg); } + PushRequest(new GetChatInfoRequest(ptrA(getStringA("registrationToken")), ptrA(mir_t2a(tszChatID)), ptrA(getStringA("Server"))), &CSkypeProto::OnGetChatInfo); + } int CSkypeProto::OnGroupChatMenuHook(WPARAM, LPARAM lParam) @@ -277,4 +279,11 @@ void CSkypeProto::OnChatEvent(JSONNODE *node) { } +} + +void CSkypeProto::OnGetChatInfo(const NETLIBHTTPREQUEST *response) +{ + if (response == NULL || response->pData == NULL) + return; + JSONROOT root(response->pData); } \ No newline at end of file diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index e4664d453c..51d00df246 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -203,7 +203,6 @@ private: void OnPrivateMessageEvent(JSONNODE *node); - // sync void OnGetServerHistory(const NETLIBHTTPREQUEST *response); void SyncHistory(); @@ -221,6 +220,8 @@ private: void StartChatRoom(MCONTACT hChatRoom, bool showWindow = false); + void OnGetChatInfo(const NETLIBHTTPREQUEST *response); + INT_PTR __cdecl OnJoinChatRoom(WPARAM hContact, LPARAM); INT_PTR __cdecl OnLeaveChatRoom(WPARAM hContact, LPARAM); -- cgit v1.2.3