diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-16 18:29:26 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-16 18:29:26 +0000 |
commit | 5c365012d42bd08fce526394372d396caa6ea04c (patch) | |
tree | 0d8d813f2abd859eaf5e5dc4513212b85230c52a /protocols/SkypeWeb/src | |
parent | bd0be19faa5b02185b1e8d63c9c756c5b0e46308 (diff) |
SkypeWeb: Chats support part 2.3.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12868 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r-- | protocols/SkypeWeb/src/skype_chatrooms.cpp | 9 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 3 |
2 files changed, 11 insertions, 1 deletions
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);
|