From 00c866aaa0b79c354f9c71ca5d61f57daeec6e6a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 10 Jul 2013 20:01:20 +0000 Subject: protocol DB helpers for Skype git-svn-id: http://svn.miranda-ng.org/main/trunk@5313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_account.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Skype/src/skype_account.cpp') 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); -- cgit v1.2.3