summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_contacts.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-05-05 08:38:57 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-05-05 08:38:57 +0000
commit1229cee3091839af4dd181e28b55e4823079007e (patch)
tree7afa602a61bdc81de9135b5642ec11c5ee4ea229 /protocols/Skype/src/skype_contacts.cpp
parent1b39cc1afb501ea3973affcf864b8485e81251ff (diff)
- reworked invitation to chat
- fixed chat contact's statuses - added "Spawn conversation" button in contact dialog - StringList now based on stl git-svn-id: http://svn.miranda-ng.org/main/trunk@4586 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r--protocols/Skype/src/skype_contacts.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp
index 0f805c2326..fbbb4c00bc 100644
--- a/protocols/Skype/src/skype_contacts.cpp
+++ b/protocols/Skype/src/skype_contacts.cpp
@@ -29,7 +29,7 @@ void CSkypeProto::UpdateContactStatus(HANDLE hContact, CContact::Ref contact)
{
CContact::AVAILABILITY availability;
contact->GetPropAvailability(availability);
- ::db_set_w(hContact, this->m_szModuleName, SKYPE_SETTINGS_STATUS, this->SkypeToMirandaStatus(availability));
+ ::db_set_w(hContact, this->m_szModuleName, SKYPE_SETTINGS_STATUS, CSkypeProto::SkypeToMirandaStatus(availability));
if (availability == CContact::SKYPEOUT)
{
@@ -166,8 +166,8 @@ HANDLE CSkypeProto::GetContactBySid(const wchar_t *sid)
{
if (this->IsProtoContact(hContact) && !this->IsChatRoom(hContact))
{
- mir_ptr<wchar_t> contactSid(::db_get_wsa(hContact, this->m_szModuleName, SKYPE_SETTINGS_LOGIN));
- if (contactSid && ::wcsicmp(sid, contactSid) == 0)
+ std::wstring contactSid = ::db_get_wsa(hContact, this->m_szModuleName, SKYPE_SETTINGS_LOGIN);
+ if (contactSid.compare(sid) == 0)
return hContact;
}
@@ -296,18 +296,19 @@ void __cdecl CSkypeProto::LoadContactList(void* data)
void __cdecl CSkypeProto::LoadChatList(void*)
{
CConversation::Refs conversations;
- g_skype->GetConversationList(conversations);
+ g_skype->GetConversationList(conversations);
+
for (uint i = 0; i < conversations.size(); i++)
{
+ auto conversation = conversations[i];
+
CConversation::TYPE type;
- conversations[i]->GetPropType(type);
+ conversation->GetPropType(type);
CConversation::MY_STATUS status;
- conversations[i]->GetPropMyStatus(status);
+ conversation->GetPropMyStatus(status);
if (type == CConversation::CONFERENCE && status == CConversation::CONSUMER)
{
- auto conversation = conversations[i];
-
this->AddChatRoom(conversation);
this->JoinToChat(conversation, false);
}