From 940231dc5a484b03a278900e1880aa083472b601 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 9 Apr 2013 19:43:20 +0000 Subject: compilation fix git-svn-id: http://svn.miranda-ng.org/main/trunk@4402 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_contacts.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Skype/src/skype_contacts.cpp') diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp index 2387a38fa2..acfa6a56e6 100644 --- a/protocols/Skype/src/skype_contacts.cpp +++ b/protocols/Skype/src/skype_contacts.cpp @@ -189,7 +189,7 @@ HANDLE CSkypeProto::GetContactBySid(const char *sid) { if (this->IsProtoContact(hContact) && !this->IsChatRoom(hContact)) { - char *contactSid = ::DBGetString(hContact, this->m_szModuleName, "sid"); + char *contactSid = ::db_get_sa(hContact, this->m_szModuleName, "sid"); if (contactSid && ::strcmp(sid, contactSid) == 0) return hContact; } @@ -227,8 +227,8 @@ HANDLE CSkypeProto::AddContactBySid(const char* sid, const char* nick, DWORD fla hContact = (HANDLE)::CallService(MS_DB_CONTACT_ADD, 0, 0); ::CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)this->m_szModuleName); - ::DBWriteContactSettingString(hContact, this->m_szModuleName, "sid", sid); - ::DBWriteContactSettingString(hContact, this->m_szModuleName, "Nick", nick); + ::db_set_s(hContact, this->m_szModuleName, "sid", sid); + ::db_set_s(hContact, this->m_szModuleName, "Nick", nick); CContact::Ref contact; if (this->skype->GetContact(sid, contact)) @@ -253,21 +253,21 @@ HANDLE CSkypeProto::AddContactBySid(const char* sid, const char* nick, DWORD fla else { this->SetSettingByte(hContact, "Auth", 1); - ::DBDeleteContactSetting(hContact, this->m_szModuleName, "IsSkypeOut"); + ::db_unset(hContact, this->m_szModuleName, "IsSkypeOut"); this->UpdateProfile(contact.fetch(), hContact); if (flags & PALF_TEMPORARY) { - ::DBWriteContactSettingByte(hContact, "CList", "NotOnList", 1); - ::DBWriteContactSettingByte(hContact, "CList", "Hidden", 1); + ::db_set_b(hContact, "CList", "NotOnList", 1); + ::db_set_b(hContact, "CList", "Hidden", 1); } } } else { if ( !(flags & PALF_TEMPORARY)) - ::DBDeleteContactSetting(hContact, "CList", "NotOnList"); + ::db_unset(hContact, "CList", "NotOnList"); } return hContact; -- cgit v1.2.3