diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-27 15:01:58 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-27 15:01:58 +0000 |
commit | e94400defc928de82baf36b364316c03f706f537 (patch) | |
tree | 8b31e5070466eb41e2d907c8f898a401849d0546 /protocols/Skype | |
parent | 380f8c00917e29f68935adf7739312c5886b01f1 (diff) |
- removed own info updating
git-svn-id: http://svn.miranda-ng.org/main/trunk@2095 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r-- | protocols/Skype/src/skype_profile.cpp | 27 | ||||
-rw-r--r-- | protocols/Skype/src/skype_proto.cpp | 8 |
2 files changed, 7 insertions, 28 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp index 17fcf4630f..f4e989686f 100644 --- a/protocols/Skype/src/skype_profile.cpp +++ b/protocols/Skype/src/skype_profile.cpp @@ -12,24 +12,7 @@ void CSkypeProto::UpdateOwnAvatar() if (data.size() > 0)
{
- wchar_t *path = this->GetAvatarFilePath(this->GetSettingString("sid"));
- FILE* fp = _wfopen(path, L"wb");
- if (fp)
- {
- fwrite(data.data(), sizeof(char), data.size(), fp);
- fclose(fp);
-
- this->SetSettingDword("AvatarTS", newTS);
-
- PROTO_AVATAR_INFORMATIONW pai = {0};
- pai.cbSize = sizeof(pai);
- pai.format = PA_FORMAT_JPEG;
- pai.hContact = NULL; //???
- wcscpy(pai.filename, path);
-
- this->SendBroadcast(ACKTYPE_AVATAR, ACKRESULT_SUCCESS, (HANDLE)&pai, 0);
- }
- delete path;
+ // todo: add own avatar loading'n'registration
}
}
}
@@ -311,10 +294,10 @@ void CSkypeProto::OnAccountChanged(int prop) {
case CAccount::P_AVATAR_IMAGE:
case CAccount::P_AVATAR_TIMESTAMP:
- //this->UpdateOwnAvatar();
+ this->UpdateOwnAvatar();
break;
case CAccount::P_BIRTHDAY:
- //this->UpdateOwnBirthday();
+ this->UpdateOwnBirthday();
break;
case CAccount::P_CITY:
this->UpdateOwnCity();
@@ -365,8 +348,4 @@ void CSkypeProto::OnAccountChanged(int prop) void __cdecl CSkypeProto::LoadOwnInfo(void*)
{
this->UpdateOwnProfile();
-
- //this->account.fetch();
- //this->account->SetOnAccountChangedCallback(
- //(CAccount::OnAccountChanged)&CSkypeProto::OnAccountChanged, this);
}
\ No newline at end of file diff --git a/protocols/Skype/src/skype_proto.cpp b/protocols/Skype/src/skype_proto.cpp index 7f6b778633..d66a054e96 100644 --- a/protocols/Skype/src/skype_proto.cpp +++ b/protocols/Skype/src/skype_proto.cpp @@ -377,12 +377,12 @@ void __cdecl CSkypeProto::SignInAsync(void*) this->ForkThread(&CSkypeProto::LoadContactList, this);
//this->LoadContactList(this);
- this->account.fetch();
+ /*this->account.fetch();
this->account->SetOnAccountChangedCallback(
- (CAccount::OnAccountChanged)&CSkypeProto::OnAccountChanged, this);
+ (CAccount::OnAccountChanged)&CSkypeProto::OnAccountChanged, this);*/
- //this->ForkThread(&CSkypeProto::LoadOwnInfo, this);
- this->LoadOwnInfo(this);
+ this->ForkThread(&CSkypeProto::LoadOwnInfo, this);
+ //this->LoadOwnInfo(this);
}
//ReleaseMutex(this->signin_lock);
|