summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_profile.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-11-18 14:06:20 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-11-18 14:06:20 +0000
commiteb7b026241099ac8c5d6e3b295df8cb88c1cf276 (patch)
tree6cbe2812d84c4719d759db62976d4fb2b265ae46 /protocols/Skype/src/skype_profile.cpp
parente73b0c15407c45faa15963485aa218f6820893e5 (diff)
some code for own info
git-svn-id: http://svn.miranda-ng.org/main/trunk@2353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r--protocols/Skype/src/skype_profile.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp
index a0e72d1f37..1554c47114 100644
--- a/protocols/Skype/src/skype_profile.cpp
+++ b/protocols/Skype/src/skype_profile.cpp
@@ -2,7 +2,7 @@
void CSkypeProto::UpdateOwnAvatar()
{
- uint newTS = 0;
+ /*uint newTS = 0;
this->account->GetPropAvatarTimestamp(newTS);
DWORD oldTS = this->GetSettingDword("AvatarTS");
if (newTS > oldTS)
@@ -31,7 +31,7 @@ void CSkypeProto::UpdateOwnAvatar()
}
delete path;
}
- }
+ }*/
}
void CSkypeProto::UpdateOwnBirthday()
@@ -278,6 +278,17 @@ void CSkypeProto::UpdateOwnTimezone()
this->DeleteSetting("TimeZone");
}
+void CSkypeProto::UpdateOwnAbout()
+{
+ SEString data;
+ this->account->GetPropAbout(data);
+ wchar_t* about = ::mir_utf8decodeW((const char*)data);
+ if (wcscmp(about, L"") == 0)
+ this->DeleteSetting("About");
+ else
+ this->SetSettingString("About", about);
+ ::mir_free(about);
+}
void CSkypeProto::UpdateOwnProfile()
{
uint newTS = 0;
@@ -300,6 +311,7 @@ void CSkypeProto::UpdateOwnProfile()
this->UpdateOwnState();
this->UpdateOwnStatusMessage();
this->UpdateOwnTimezone();
+ this->UpdateOwnAbout();
this->SetSettingDword("ProfileTS", newTS);
}
@@ -359,6 +371,9 @@ void CSkypeProto::OnAccountChanged(int prop)
case CAccount::P_FULLNAME:
this->UpdateOwnNickName();
break;
+ case CAccount::P_ABOUT:
+ this->UpdateOwnAbout();
+ break;
}
}