summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit/skypekit.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-04-24 06:50:50 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-04-24 06:50:50 +0000
commit3a83f75a76d4b8f27b5abf476e9d3e5a4cb7e673 (patch)
treef9d32fdb6b7d85e04a69f5c78776973494754e18 /protocols/Skype/src/skypekit/skypekit.h
parent603f91c42bd35dfc51388d8abdc1b70a54644812 (diff)
- compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit/skypekit.h')
-rw-r--r--protocols/Skype/src/skypekit/skypekit.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/protocols/Skype/src/skypekit/skypekit.h b/protocols/Skype/src/skypekit/skypekit.h
new file mode 100644
index 0000000000..faac4f3d65
--- /dev/null
+++ b/protocols/Skype/src/skypekit/skypekit.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include "common.h"
+
+#include "group.h"
+#include "search.h"
+#include "account.h"
+#include "contact.h"
+#include "message.h"
+#include "transfer.h"
+#include "participant.h"
+#include "conversation.h"
+
+class CSkype : public Skype
+{
+public:
+ typedef void (CSkypeProto::* OnMessaged)(CConversation::Ref conversation, CMessage::Ref message);
+
+ CAccount* newAccount(int oid);
+ CContactGroup* newContactGroup(int oid);
+ CConversation* newConversation(int oid);
+ CContactSearch* newContactSearch(int oid);
+ CParticipant* newParticipant(int oid);
+ CContact* newContact(int oid);
+ CMessage* newMessage(int oid);
+ CTransfer* newTransfer(int oid);
+
+ CSkype(int num_threads = 1);
+
+ void SetOnMessageCallback(OnMessaged callback, CSkypeProto* proto);
+
+private:
+ CSkypeProto* proto;
+ OnMessaged onMessagedCallback;
+
+ void OnMessage(
+ const MessageRef & message,
+ const bool & changesInboxTimestamp,
+ const MessageRef & supersedesHistoryMessage,
+ const ConversationRef & conversation);
+}; \ No newline at end of file