summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_subclassing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r--protocols/Skype/src/skype_subclassing.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_subclassing.cpp b/protocols/Skype/src/skype_subclassing.cpp
index 5fbf7819d8..4d10e982c9 100644
--- a/protocols/Skype/src/skype_subclassing.cpp
+++ b/protocols/Skype/src/skype_subclassing.cpp
@@ -306,10 +306,24 @@ CAccount::CAccount(unsigned int oid, SERootObject* root) : Account(oid, root)
void CAccount::SetOnAccountChangedCallback(OnAccountChanged callback, CSkypeProto* proto)
{
+ this->skype = (CSkype *)root;
+
this->proto = proto;
this->callback = callback;
}
+bool CAccount::SetAvatar(SEBinary avatar, Skype::VALIDATERESULT &result)
+{
+ int fbl;
+ if (!this->skype->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)
{
if (this->proto)
@@ -464,6 +478,19 @@ void CConversation::OnMessage(const MessageRef & message)
(proto->*messageReceivedCallback)(message->ref());
}
+void CConversation::OnChange(int prop)
+{
+ if (prop == Conversation::P_LOCAL_LIVESTATUS)
+ {
+ Conversation::LOCAL_LIVESTATUS liveStatus;
+ this->GetPropLocalLivestatus(liveStatus);
+ if (liveStatus == Conversation::RINGING_FOR_ME)
+ {
+
+ }
+ }
+}
+
CConversation::Ref CConversation::FindBySid(CSkype *skype, SEString sid)
{
SEStringList participants;