summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_subclassing.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-12-16 19:08:08 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-12-16 19:08:08 +0000
commit375155f8dcd69863f1b9a220c5f890596844e99d (patch)
tree7e2a2662539ac8f6175e71096ffe6607ed5bf2af /protocols/Skype/src/skype_subclassing.h
parent94bb72aca84414a28e556e5fe406eb3bd8cf8567 (diff)
- reworked message receiving/sending (by another instance)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2756 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.h')
-rw-r--r--protocols/Skype/src/skype_subclassing.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/protocols/Skype/src/skype_subclassing.h b/protocols/Skype/src/skype_subclassing.h
index 0840c57dc3..2624ba3f76 100644
--- a/protocols/Skype/src/skype_subclassing.h
+++ b/protocols/Skype/src/skype_subclassing.h
@@ -125,8 +125,7 @@ private:
class CSkype : public Skype
{
public:
- typedef void (CSkypeProto::* OnMessageReceived)(CMessage::Ref message);
- typedef void (CSkypeProto::* OnConversationAdded)(CConversation::Ref conversation);
+ typedef void (CSkypeProto::* OnMessaged)(CConversation::Ref conversation, CMessage::Ref message);
CAccount* newAccount(int oid);
CContactGroup* newContactGroup(int oid);
@@ -139,22 +138,15 @@ public:
CSkype(int num_threads = 1);
- void SetOnMessageReceivedCallback(OnMessageReceived callback, CSkypeProto* proto);
- void SetOnConversationAddedCallback(OnConversationAdded callback, CSkypeProto* proto);
+ void SetOnMessageCallback(OnMessaged callback, CSkypeProto* proto);
private:
- CSkypeProto* proto;
- OnMessageReceived onMessageReceivedCallback;
- OnConversationAdded onConversationAddedCallback;
+ CSkypeProto* proto;
+ OnMessaged onMessagedCallback;
void OnMessage(
const MessageRef & message,
const bool & changesInboxTimestamp,
const MessageRef & supersedesHistoryMessage,
const ConversationRef & conversation);
-
- void OnConversationListChange(
- const ConversationRef &conversation,
- const Conversation::LIST_TYPE &type,
- const bool &added);
}; \ No newline at end of file