summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_chat.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-04-09 19:43:20 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-04-09 19:43:20 +0000
commit940231dc5a484b03a278900e1880aa083472b601 (patch)
tree65c5935e66e1cd86be3ed1f9d5fc41272972962c /protocols/Skype/src/skype_chat.cpp
parent8f20a72a0c38afd3a51be0af25fb5a3361ed99e7 (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_chat.cpp')
-rw-r--r--protocols/Skype/src/skype_chat.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp
index 8ca1abfa99..9f4979291d 100644
--- a/protocols/Skype/src/skype_chat.cpp
+++ b/protocols/Skype/src/skype_chat.cpp
@@ -22,7 +22,7 @@ char *CSkypeProto::Groups[] =
bool CSkypeProto::IsChatRoom(HANDLE hContact)
{
- return ::DBGetContactSettingByte(hContact, this->m_szModuleName, "ChatRoom", 0) > 0;
+ return ::db_get_b(hContact, this->m_szModuleName, "ChatRoom", 0) > 0;
}
HANDLE CSkypeProto::GetChatRoomByID(const char *cid)
@@ -32,7 +32,7 @@ HANDLE CSkypeProto::GetChatRoomByID(const char *cid)
{
if (this->IsProtoContact(hContact) && this->IsChatRoom(hContact))
{
- char *chatID = ::DBGetString(hContact, this->m_szModuleName, "ChatRoomID");
+ char *chatID = ::db_get_sa(hContact, this->m_szModuleName, "ChatRoomID");
if (chatID && ::strcmp(cid, chatID) == 0)
return hContact;
}
@@ -51,16 +51,16 @@ HANDLE CSkypeProto::AddChatRoomByID(const char* cid, const char* name, DWORD fla
hContact = (HANDLE)::CallService(MS_DB_CONTACT_ADD, 0, 0);
::CallService(MS_PROTO_ADDTOCONTACT, (WPARAM)hContact, (LPARAM)this->m_szModuleName);
- ::DBWriteContactSettingByte(hContact, this->m_szModuleName, "ChatRoom", 1);
- ::DBWriteContactSettingString(hContact, this->m_szModuleName, "ChatRoomID", cid);
- ::DBWriteContactSettingString(hContact, this->m_szModuleName, "Nick", name);
- ::DBWriteContactSettingWord(hContact, this->m_szModuleName, "Status", ID_STATUS_OFFLINE);
- ::DBWriteContactSettingWord(hContact, this->m_szModuleName, "ApparentMode", ID_STATUS_OFFLINE);
+ ::db_set_b(hContact, this->m_szModuleName, "ChatRoom", 1);
+ ::db_set_s(hContact, this->m_szModuleName, "ChatRoomID", cid);
+ ::db_set_s(hContact, this->m_szModuleName, "Nick", name);
+ ::db_set_w(hContact, this->m_szModuleName, "Status", ID_STATUS_OFFLINE);
+ ::db_set_w(hContact, this->m_szModuleName, "ApparentMode", ID_STATUS_OFFLINE);
- wchar_t *defaultGroup = ::DBGetStringW(NULL, "Chat", "AddToGroup");
+ wchar_t *defaultGroup = ::db_get_wsa(NULL, "Chat", "AddToGroup");
if (defaultGroup)
{
- ::DBWriteContactSettingWString(hContact, "CList", "Group", defaultGroup);
+ ::db_set_ws(hContact, "CList", "Group", defaultGroup);
}
}
@@ -127,7 +127,7 @@ void CSkypeProto::GetInviteContacts(HANDLE hItem, HWND hwndList, SEStringList &c
}
else
{
- char *sid = ::DBGetString(hItem, this->m_szModuleName, "sid");
+ char *sid = ::db_get_sa(hItem, this->m_szModuleName, "sid");
if (sid) chatTargets.append(sid);
}
}
@@ -357,7 +357,7 @@ INT_PTR __cdecl CSkypeProto::OnJoinChat(WPARAM wParam, LPARAM)
HANDLE hContact = (HANDLE)wParam;
if (hContact)
{
- this->JoinToChat(::DBGetString(hContact, this->m_szModuleName, "ChatRoomID"));
+ this->JoinToChat(::db_get_sa(hContact, this->m_szModuleName, "ChatRoomID"));
}
return 0;
@@ -368,7 +368,7 @@ INT_PTR __cdecl CSkypeProto::OnLeaveChat(WPARAM wParam, LPARAM)
HANDLE hContact = (HANDLE)wParam;
if (hContact)
{
- char *cid = ::DBGetString(hContact, this->m_szModuleName, "ChatRoomID");
+ char *cid = ::db_get_sa(hContact, this->m_szModuleName, "ChatRoomID");
this->LeaveChat(cid);
::mir_free(cid);