diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-26 07:04:37 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-26 07:04:37 +0000 |
commit | e3b515c53f4e3d77dd09c43009f3b0725f0949eb (patch) | |
tree | b2629d77c1da572d796a3d97fae101f7dea7300f /protocols/Skype/src/skype_chat.h | |
parent | bd1c30c57ac057a09565a1cbd0af39812207a832 (diff) |
Some improvements and cleanup in skype
git-svn-id: http://svn.miranda-ng.org/main/trunk@5137 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_chat.h')
-rw-r--r-- | protocols/Skype/src/skype_chat.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_chat.h b/protocols/Skype/src/skype_chat.h index 29e27e8885..c639f2942f 100644 --- a/protocols/Skype/src/skype_chat.h +++ b/protocols/Skype/src/skype_chat.h @@ -126,6 +126,8 @@ class ChatRoom private:
wchar_t *cid;
wchar_t *name;
+
+ CConversation::Ref conversation;
HANDLE hContact;
@@ -150,7 +152,6 @@ private: public:
ChatMember *me;
ChatMember *sys;
- CConversation::Ref conversation;
static wchar_t *Roles[];
@@ -159,18 +160,24 @@ public: HANDLE GetContactHandle() const;
- static void Create(const StringList &invitedMembers, CSkypeProto *ppro, const ChatRoomParam *param);
+ void SetTopic(const wchar_t *topic);
+ wchar_t *GetUri();
+ void ShowWindow();
+ void Invite(const StringList &contacts);
void Start(const ConversationRef &conversation, bool showWindow = false);
+ //void Join(const wchar_t *joinBlob, bool showWindow = false);
+
+ void SendMessage(const wchar_t *text);
void LeaveChat();
+ void LeaveChatAndDelete();
void SendEvent(const wchar_t *sid, int eventType, DWORD timestamp = time(NULL), DWORD flags = GCEF_ADDTOLOG, DWORD itemData = 0, const wchar_t *status = NULL, const wchar_t *message = NULL);
bool IsMe(const wchar_t *sid) const;
bool IsSys(const wchar_t *sid) const;
- //
ChatMember *FindChatMember(const wchar_t *sid);
void AddMember(const ChatMember &item, const ChatMember &author, DWORD timestamp = time(NULL));
@@ -181,6 +188,9 @@ public: void UpdateMember(const wchar_t *sid, const wchar_t *nick, int role, int status, DWORD timestamp = time(NULL));
+ //void GiveMember(const wchar_t *sid);
+ void AddApplicant(const ChatMember *sid);
+
void KickMember(const wchar_t *sid, const wchar_t *author, DWORD timestamp = time(NULL));
void RemoveMember(const wchar_t *sid, DWORD timestamp = time(NULL));
@@ -189,5 +199,6 @@ public: void OnParticipantChanged(const ParticipantRef &participant, int prop);
- static ChatRoom *FindChatRoom(const wchar_t *cid);
-};
\ No newline at end of file + static void Create(const ChatRoomParam *param, CSkypeProto *ppro);
+ static void Join(const wchar_t *joinBlob, CSkypeProto *ppro);
+};
|