summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-19 11:30:59 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-19 11:30:59 +0000
commita597717faf025d280206a03b582057b45c4b6f9f (patch)
tree31fb8fbe332e88e848f36c9663f9fd024c19738a /protocols/Skype/src/skype_proto.h
parentdda548686c0f8b0d0bf03315120132013ffa1bb0 (diff)
- second approach of group chat support
git-svn-id: http://svn.miranda-ng.org/main/trunk@2766 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index 6d849abf35..ba35c31fa5 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -63,15 +63,15 @@ const SettingItem setting[]={
struct InviteChatParam
{
- TCHAR *id;
+ char *id;
HANDLE hContact;
CSkypeProto *ppro;
- InviteChatParam(const TCHAR *id, HANDLE hContact, CSkypeProto *ppro)
- : id(mir_tstrdup(id)), hContact(hContact), ppro(ppro) {}
+ InviteChatParam(const char *id, HANDLE hContact, CSkypeProto *ppro)
+ : id(::mir_strdup(id)), hContact(hContact), ppro(ppro) {}
~InviteChatParam()
- { mir_free(id); }
+ { ::mir_free(id); }
};
struct CSkypeProto : public PROTO_INTERFACE, public MZeroedObject
@@ -197,10 +197,18 @@ protected:
void ChatValidateContact(HANDLE hItem, HWND hwndList);
void ChatPrepare(HANDLE hItem, HWND hwndList);
- void FillChatList(HANDLE hItem, HWND hwndList, SEStringList &chatTargets);
+ void GetInviteContacts(HANDLE hItem, HWND hwndList, SEStringList &inviteContacts);
- void RegisterChat();
- void StartChat(SEStringList &chatTargets);
+ void InitChat();
+ void StartChat(HANDLE hContact, SEStringList &invitedContacts);
+ void ChatEvent(const char *chatID, const char *sid, int evt, const char* msg);
+ void ChatLeave(const char *chatID);
+
+ INT_PTR __cdecl OnJoinChat(WPARAM wParam, LPARAM);
+ INT_PTR __cdecl OnLeaveChat(WPARAM wParam, LPARAM);
+
+ int __cdecl OnGCMenuHook(WPARAM, LPARAM lParam);
+ int __cdecl OnGCEventHook(WPARAM, LPARAM lParam);
// contacts
void UpdateContactAboutText(HANDLE hContact, CContact::Ref contact);