diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-04-20 10:14:05 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-04-20 10:14:05 +0000 |
commit | 5560fccb85a89bb668a79eed3d4cd0e668278331 (patch) | |
tree | a8c5949d9cc473c51af2712bb79c306f4a531932 /protocols/Skype/src/skype_subclassing.cpp | |
parent | 5a5ffa5cc195669c48827e4cf9d948dfb3272e47 (diff) |
- temporary commit. may contain non-working code
git-svn-id: http://svn.miranda-ng.org/main/trunk@4480 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_subclassing.cpp')
-rw-r--r-- | protocols/Skype/src/skype_subclassing.cpp | 27 |
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;
|