diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-08 15:08:27 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-08 15:08:27 +0000 |
commit | 27cac8c07ca2465c187bb90e7058a854f46b6746 (patch) | |
tree | b561f2aba5067fca7d10613161326ad7e67ce2b9 /protocols/Skype/src/skype_proto.h | |
parent | 57ddd953a88d6633ab06b6ef5ca04414338b566f (diff) |
- code restructurization
- started network log filling
git-svn-id: http://svn.miranda-ng.org/main/trunk@4598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index 1326eda358..2076d12901 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -20,23 +20,6 @@ struct _tag_iconList HANDLE Handle;
};
-struct HtmlEntity
-{
- const char *entity;
- char symbol;
-};
-
-const HtmlEntity htmlEntities[]={
- {"nbsp", ' '},
- {"amp", '&'},
- {"quot", '"'},
- {"lt", '<'},
- {"gt", '>'},
- {"apos", '\''},
- {"copy", '©'},
- // TODO: add more
-};
-
struct InviteChatParam
{
wchar_t *id;
@@ -242,8 +225,12 @@ protected: SEBinary GetAvatarBinary(wchar_t *path);
+ // events
+ void OnSkypeEvent(CConversation::Ref conversation, CMessage::Ref message);
+ void OnChatEvent(CConversation::Ref &conversation, CMessage::Ref &message);
+
// messages
- void OnMessage(CConversation::Ref conversation, CMessage::Ref message);
+ void OnMessageEvent(CConversation::Ref conversation, CMessage::Ref message);
void OnMessageSended(CConversation::Ref &conversation, CMessage::Ref &message);
void OnMessageReceived(CConversation::Ref &conversation, CMessage::Ref &message);
@@ -288,6 +275,9 @@ protected: int __cdecl OnGCMenuHook(WPARAM, LPARAM lParam);
int __cdecl OnGCEventHook(WPARAM, LPARAM lParam);
+
+ void OnChatMessageSended(CConversation::Ref &conversation, CMessage::Ref &message);
+ void OnChatMessageReceived(CConversation::Ref &conversation, CMessage::Ref &message);
// contacts
void UpdateContactAuthState(HANDLE hContact, CContact::Ref contact);
|