summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skypekit')
-rw-r--r--protocols/Skype/src/skypekit/account.cpp32
-rw-r--r--protocols/Skype/src/skypekit/account.h20
-rw-r--r--protocols/Skype/src/skypekit/common.h8
-rw-r--r--protocols/Skype/src/skypekit/contact.cpp65
-rw-r--r--protocols/Skype/src/skypekit/contact.h21
-rw-r--r--protocols/Skype/src/skypekit/conversation.cpp20
-rw-r--r--protocols/Skype/src/skypekit/conversation.h23
-rw-r--r--protocols/Skype/src/skypekit/group.cpp13
-rw-r--r--protocols/Skype/src/skypekit/group.h19
-rw-r--r--protocols/Skype/src/skypekit/message.cpp7
-rw-r--r--protocols/Skype/src/skypekit/message.h12
-rw-r--r--protocols/Skype/src/skypekit/participant.cpp27
-rw-r--r--protocols/Skype/src/skypekit/participant.h25
-rw-r--r--protocols/Skype/src/skypekit/search.cpp36
-rw-r--r--protocols/Skype/src/skypekit/search.h29
-rw-r--r--protocols/Skype/src/skypekit/transfer.cpp13
-rw-r--r--protocols/Skype/src/skypekit/transfer.h17
17 files changed, 0 insertions, 387 deletions
diff --git a/protocols/Skype/src/skypekit/account.cpp b/protocols/Skype/src/skypekit/account.cpp
deleted file mode 100644
index 8ec02e08e8..0000000000
--- a/protocols/Skype/src/skypekit/account.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#include "..\skype.h"
-#include "account.h"
-
-CAccount::CAccount(unsigned int oid, CSkypeProto* _ppro) :
- Account(oid, _ppro),
- ppro(_ppro)
-{
-}
-
-bool CAccount::IsOnline()
-{
- CAccount::STATUS status;
- this->GetPropStatus(status);
- return status == CAccount::LOGGED_IN;
-}
-
-bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result)
-{
- int fbl;
- if (!((Skype*)this->root)->ValidateAvatar(avatar, result, fbl) || result != Skype::VALIDATED_OK)
- return false;
-
- if (!this->SetBinProperty(Account::P_AVATAR_IMAGE, avatar))
- return false;
-
- return true;
-}
-
-void CAccount::OnChange(int prop)
-{
- ppro->OnAccountChanged(prop);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/account.h b/protocols/Skype/src/skypekit/account.h
deleted file mode 100644
index a7128598ee..0000000000
--- a/protocols/Skype/src/skypekit/account.h
+++ /dev/null
@@ -1,20 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class CAccount : public Account
-{
-public:
- typedef DRef<CAccount, Account> Ref;
- typedef DRefs<CAccount, Account> Refs;
-
- CAccount(unsigned int oid, CSkypeProto*);
-
- bool IsOnline();
- bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result);
-
-private:
- CSkypeProto* ppro;
-
- void OnChange(int prop);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/common.h b/protocols/Skype/src/skypekit/common.h
deleted file mode 100644
index de00501ba3..0000000000
--- a/protocols/Skype/src/skypekit/common.h
+++ /dev/null
@@ -1,8 +0,0 @@
-#pragma once
-
-#undef OCSP_REQUEST
-#undef OCSP_RESPONSE
-
-#include <skype-embedded_2.h>
-
-struct CSkypeProto; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/contact.cpp b/protocols/Skype/src/skypekit/contact.cpp
deleted file mode 100644
index c7a1a3247d..0000000000
--- a/protocols/Skype/src/skypekit/contact.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-#include "..\skype.h"
-#include "contact.h"
-
-CContact::CContact(unsigned int oid, CSkypeProto* _ppro) :
- Contact(oid, _ppro),
- proto(_ppro)
-{
-}
-
-SEString CContact::GetSid()
-{
- SEString result;
- CContact::AVAILABILITY availability;
- this->GetPropAvailability(availability);
- if (availability == Contact::SKYPEOUT || availability == Contact::BLOCKED_SKYPEOUT)
- this->GetPropPstnnumber(result);
- else
- this->GetPropSkypename(result);
- return result;
-}
-
-SEString CContact::GetNick()
-{
- SEString result;
- CContact::AVAILABILITY availability;
- this->GetPropAvailability(availability);
- if (availability == CContact::SKYPEOUT)
- this->GetPropPstnnumber(result);
- else
- {
- SEString sid;
- this->GetIdentity(sid);
-
- this->GetPropDisplayname(result);
- if (this->proto && this->proto->login)
- {
- if (sid.equals(result))
- this->GetPropFullname(result);
- }
-
- if (result.size() == 0)
- result = sid;
- }
- return result;
-}
-
-bool CContact::GetFullname(SEString &firstName, SEString &lastName)
-{
- SEString fullname;
- this->GetPropFullname(fullname);
- int pos = fullname.find(" ");
- if (pos != -1)
- {
- firstName = fullname.substr(0, pos - 1);
- lastName = fullname.right((int)fullname.size() - pos - 1);
- } else
- firstName = fullname;
-
- return true;
-}
-
-void CContact::OnChange(int prop)
-{
- proto->OnContactChanged(this->ref(), prop);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/contact.h b/protocols/Skype/src/skypekit/contact.h
deleted file mode 100644
index 4a79ba723d..0000000000
--- a/protocols/Skype/src/skypekit/contact.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class CContact : public Contact
-{
-public:
- typedef DRef<CContact, Contact> Ref;
- typedef DRefs<CContact, Contact> Refs;
-
- CContact(unsigned int oid, CSkypeProto*);
-
- SEString GetSid();
- SEString GetNick();
- bool GetFullname(SEString &firstName, SEString &lastName);
-
-private:
- CSkypeProto* proto;
-
- void OnChange(int prop);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/conversation.cpp b/protocols/Skype/src/skypekit/conversation.cpp
deleted file mode 100644
index ff393c8efb..0000000000
--- a/protocols/Skype/src/skypekit/conversation.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "..\skype.h"
-#include "conversation.h"
-#include "..\skype_chat.h"
-
-CConversation::CConversation(unsigned int oid, SERootObject* root) :
- Conversation(oid, root)
-{
- this->room = NULL;
-}
-
-void CConversation::SetChatRoom(ChatRoom *room)
-{
- this->room = room;
-}
-
-void CConversation::OnChange(int prop)
-{
- if (this->room != NULL)
- this->room->OnChange(this->ref(), prop);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/conversation.h b/protocols/Skype/src/skypekit/conversation.h
deleted file mode 100644
index 3441743328..0000000000
--- a/protocols/Skype/src/skypekit/conversation.h
+++ /dev/null
@@ -1,23 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class ChatRoom;
-
-class CConversation : public Conversation
-{
-public:
- //typedef void (CSkypeProto::* OnConvoChanged)(const ConversationRef &conversation, int);
-
- typedef DRef<CConversation, Conversation> Ref;
- typedef DRefs<CConversation, Conversation> Refs;
-
- CConversation(unsigned int oid, SERootObject* root);
-
- void SetChatRoom(ChatRoom *room);
-
-private:
- ChatRoom *room;
-
- void OnChange(int prop);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/group.cpp b/protocols/Skype/src/skypekit/group.cpp
deleted file mode 100644
index a75c43d371..0000000000
--- a/protocols/Skype/src/skypekit/group.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "..\skype.h"
-#include "group.h"
-
-CContactGroup::CContactGroup(unsigned int oid, CSkypeProto* _ppro) :
- ContactGroup(oid, _ppro),
- proto(_ppro)
-{
-}
-
-void CContactGroup::OnChange(const ContactRef &contact)
-{
- proto->OnContactListChanged(contact);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/group.h b/protocols/Skype/src/skypekit/group.h
deleted file mode 100644
index 0443d203ea..0000000000
--- a/protocols/Skype/src/skypekit/group.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#pragma once
-
-#include "common.h"
-#include "contact.h"
-
-class CContactGroup : public ContactGroup
-{
-public:
- typedef void (CSkypeProto::* OnContactListChanged)(CContact::Ref contact);
-
- typedef DRef<CContactGroup, ContactGroup> Ref;
- typedef DRefs<CContactGroup, ContactGroup> Refs;
- CContactGroup(unsigned int oid, CSkypeProto*);
-
-private:
- CSkypeProto* proto;
-
- void OnChange(const ContactRef &contact);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/message.cpp b/protocols/Skype/src/skypekit/message.cpp
deleted file mode 100644
index 48afa08662..0000000000
--- a/protocols/Skype/src/skypekit/message.cpp
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "..\skype.h"
-#include "message.h"
-
-CMessage::CMessage(unsigned int oid, SERootObject* root) :
- Message(oid, root)
-{
-}
diff --git a/protocols/Skype/src/skypekit/message.h b/protocols/Skype/src/skypekit/message.h
deleted file mode 100644
index 6bf1eda497..0000000000
--- a/protocols/Skype/src/skypekit/message.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class CMessage : public Message
-{
-public:
- typedef DRef<CMessage, Message> Ref;
- typedef DRefs<CMessage, Message> Refs;
-
- CMessage(unsigned int oid, SERootObject* root);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/participant.cpp b/protocols/Skype/src/skypekit/participant.cpp
deleted file mode 100644
index 41e183821b..0000000000
--- a/protocols/Skype/src/skypekit/participant.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "..\skype.h"
-#include "participant.h"
-#include "..\skype_chat.h"
-
-CParticipant::CParticipant(unsigned int oid, SERootObject* root) :
- Participant(oid, root)
-{
- this->room = NULL;
-}
-
-//void CParticipant::SetOnChangedCallback(OnChanged callback, ChatRoom *room)
-//{
-// this->room = room;
-// this->callback = callback;
-//}
-
-void CParticipant::SetChatRoom(ChatRoom *room)
-{
- this->room = room;
-}
-
-void CParticipant::OnChange(int prop)
-{
- if (this->room != NULL)
- this->room->OnParticipantChanged(this->ref(), prop);
- //(room->*callback)(this->ref(), prop);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/participant.h b/protocols/Skype/src/skypekit/participant.h
deleted file mode 100644
index 170c14f1b7..0000000000
--- a/protocols/Skype/src/skypekit/participant.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class ChatRoom;
-
-class CParticipant : public Participant
-{
-public:
- //typedef void (ChatRoom::* OnChanged)(const ParticipantRef &participant, int);
-
- typedef DRef<CParticipant, Participant> Ref;
- typedef DRefs<CParticipant, Participant> Refs;
-
- CParticipant(unsigned int oid, SERootObject* root);
-
- //void SetOnChangedCallback(OnChanged callback, ChatRoom *room);
- void SetChatRoom(ChatRoom *room);
-
-private:
- ChatRoom *room;
- //OnChanged callback;
-
- void OnChange(int prop);
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/search.cpp b/protocols/Skype/src/skypekit/search.cpp
deleted file mode 100644
index f1b20563aa..0000000000
--- a/protocols/Skype/src/skypekit/search.cpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#include "..\skype.h"
-#include "search.h"
-
-CContactSearch::CContactSearch(unsigned int oid, CSkypeProto* _ppro) :
- ContactSearch(oid, _ppro),
- proto(_ppro)
-{
-}
-
-void CContactSearch::OnChange(int prop)
-{
- if (prop == P_CONTACT_SEARCH_STATUS)
- {
- CContactSearch::STATUS status;
- this->GetPropContactSearchStatus(status);
- if (status == FINISHED || status == FAILED)
- {
- this->isSeachFinished = true;
- if (this->proto)
- proto->OnSearchCompleted(this->hSearch);
- }
- }
-}
-
-void CContactSearch::OnNewResult(const ContactRef &contact, const uint &rankValue)
-{
- proto->OnContactFinded(contact, this->hSearch);
-}
-
-void CContactSearch::BlockWhileSearch()
-{
- this->isSeachFinished = false;
- this->isSeachFailed = false;
- while (!this->isSeachFinished && !this->isSeachFailed)
- Sleep(1);
-}
diff --git a/protocols/Skype/src/skypekit/search.h b/protocols/Skype/src/skypekit/search.h
deleted file mode 100644
index dde9a043e3..0000000000
--- a/protocols/Skype/src/skypekit/search.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma once
-
-#include "common.h"
-#include "contact.h"
-
-class CContactSearch : public ContactSearch
-{
-public:
- typedef DRef<CContactSearch, ContactSearch> Ref;
- typedef DRefs<CContactSearch, ContactSearch> Refs;
-
- bool isSeachFinished;
- bool isSeachFailed;
-
- CContactSearch(unsigned int oid, CSkypeProto* _ppro);
-
- void OnChange(int prop);
- void OnNewResult(const ContactRef &contact, const uint &rankValue);
-
- __forceinline void SetProtoInfo(HANDLE _hSearch) {
- hSearch = _hSearch;
- }
-
- void BlockWhileSearch();
-
-private:
- HANDLE hSearch;
- CSkypeProto* proto;
-}; \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/transfer.cpp b/protocols/Skype/src/skypekit/transfer.cpp
deleted file mode 100644
index 60a41bdcfe..0000000000
--- a/protocols/Skype/src/skypekit/transfer.cpp
+++ /dev/null
@@ -1,13 +0,0 @@
-#include "..\skype.h"
-#include "transfer.h"
-
-CTransfer::CTransfer(unsigned int oid, CSkypeProto* _ppro) :
- Transfer(oid, _ppro),
- proto(_ppro)
-{
-}
-
-void CTransfer::OnChange(int prop)
-{
- proto->OnTransferChanged(this->ref(), prop);
-} \ No newline at end of file
diff --git a/protocols/Skype/src/skypekit/transfer.h b/protocols/Skype/src/skypekit/transfer.h
deleted file mode 100644
index f01d48d328..0000000000
--- a/protocols/Skype/src/skypekit/transfer.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-#include "common.h"
-
-class CTransfer : public Transfer
-{
-public:
- typedef DRef<CTransfer, Transfer> Ref;
- typedef DRefs<CTransfer, Transfer> Refs;
-
- CTransfer(unsigned int oid, CSkypeProto*);
-
-private:
- CSkypeProto* proto;
-
- void OnChange(int prop);
-}; \ No newline at end of file