diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-09 19:43:20 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-04-09 19:43:20 +0000 |
commit | 940231dc5a484b03a278900e1880aa083472b601 (patch) | |
tree | 65c5935e66e1cd86be3ed1f9d5fc41272972962c /protocols/Skype/src/skype_contacts.cpp | |
parent | 8f20a72a0c38afd3a51be0af25fb5a3361ed99e7 (diff) |
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4402 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_contacts.cpp')
-rw-r--r-- | protocols/Skype/src/skype_contacts.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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;
|