summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skypekit
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-26 19:41:06 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-26 19:41:06 +0000
commitbed36b071fe082d34e5961bb5105e662f17aa7c6 (patch)
tree2b83b5c433675fa81c316fb336cd0377a5953ecd /protocols/Skype/src/skypekit
parenta3422fd14b9201e7bfc6ecb28df71ed68c39c228 (diff)
- sync was returned
- fixed contacts nick updating - fixed eternal "connecting" git-svn-id: http://svn.miranda-ng.org/main/trunk@4539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit')
-rw-r--r--protocols/Skype/src/skypekit/account.cpp7
-rw-r--r--protocols/Skype/src/skypekit/account.h1
-rw-r--r--protocols/Skype/src/skypekit/conversation.cpp2
3 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Skype/src/skypekit/account.cpp b/protocols/Skype/src/skypekit/account.cpp
index 31b4c45298..fa931d179e 100644
--- a/protocols/Skype/src/skypekit/account.cpp
+++ b/protocols/Skype/src/skypekit/account.cpp
@@ -15,6 +15,13 @@ void CAccount::SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProt
this->callback = callback;
}
+bool CAccount::IsOnline()
+{
+ CAccount::STATUS status;
+ this->GetPropStatus(status);
+ return status == CAccount::LOGGED_IN;
+}
+
bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result)
{
int fbl;
diff --git a/protocols/Skype/src/skypekit/account.h b/protocols/Skype/src/skypekit/account.h
index b537019698..07ff0b929c 100644
--- a/protocols/Skype/src/skypekit/account.h
+++ b/protocols/Skype/src/skypekit/account.h
@@ -14,6 +14,7 @@ public:
CAccount(unsigned int oid, SERootObject* root);
+ bool IsOnline();
bool SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result);
void SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto);
diff --git a/protocols/Skype/src/skypekit/conversation.cpp b/protocols/Skype/src/skypekit/conversation.cpp
index c0d855150b..2b0e26ad80 100644
--- a/protocols/Skype/src/skypekit/conversation.cpp
+++ b/protocols/Skype/src/skypekit/conversation.cpp
@@ -2,6 +2,8 @@
CConversation::CConversation(unsigned int oid, SERootObject* root) : Conversation(oid, root)
{
+ this->GetParticipants(this->participants, CConversation::OTHER_CONSUMERS);
+ fetch(this->participants);
}
void CConversation::OnParticipantListChange()