summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_account.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:01:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-10 20:01:20 +0000
commit00c866aaa0b79c354f9c71ca5d61f57daeec6e6a (patch)
tree0c17ecc96c52562dbf31454a1908e726be2b5c85 /protocols/Skype/src/skype_account.cpp
parent343ed18d264ae1b90eda3c64ffb066035997489f (diff)
protocol DB helpers for Skype
git-svn-id: http://svn.miranda-ng.org/main/trunk@5313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_account.cpp')
-rw-r--r--protocols/Skype/src/skype_account.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index 8834318596..a7a9401191 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -137,18 +137,18 @@ void CSkypeProto::LogOut()
void CSkypeProto::SetAccountSettings()
{
- int port = ::db_get_w(NULL, this->m_szModuleName, "Port", rand() % 10000 + 10000);
+ int port = this->getWord("Port", rand() % 10000 + 10000);
this->Log(L"Setting port number to %d", port);
this->SetInt(SETUPKEY_PORT, port);
- bool useAlternativePorts = ::db_get_b(NULL, this->m_szModuleName, "UseAlternativePorts", 1) > 0;
+ bool useAlternativePorts = this->getByte("UseAlternativePorts", 1) > 0;
if (useAlternativePorts)
this->Log(L"Setting listening of alternative ports (80, 443)");
this->SetInt(SETUPKEY_DISABLE_PORT80, (int)!useAlternativePorts);
// Create default group for new contacts
DBVARIANT dbv = {0};
- if ( !::db_get_ts(NULL, m_szModuleName, SKYPE_SETTINGS_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
+ if ( !getTString(SKYPE_SETTINGS_DEF_GROUP, &dbv) && lstrlen(dbv.ptszVal) > 0)
{
this->Log(L"Setting default group for new contacts");
::CallService(MS_CLIST_GROUPCREATE, 0, (LPARAM)dbv.ptszVal);