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.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()