diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:01:20 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 20:01:20 +0000 |
commit | 00c866aaa0b79c354f9c71ca5d61f57daeec6e6a (patch) | |
tree | 0c17ecc96c52562dbf31454a1908e726be2b5c85 /protocols/Skype/src/skype_menus.cpp | |
parent | 343ed18d264ae1b90eda3c64ffb066035997489f (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_menus.cpp')
-rw-r--r-- | protocols/Skype/src/skype_menus.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_menus.cpp b/protocols/Skype/src/skype_menus.cpp index e9d5846fd6..d1b46c376d 100644 --- a/protocols/Skype/src/skype_menus.cpp +++ b/protocols/Skype/src/skype_menus.cpp @@ -24,8 +24,8 @@ int CSkypeProto::OnPrebuildContactMenu(WPARAM wParam, LPARAM) {
bool ctrlPressed = (::GetKeyState(VK_CONTROL) & 0x8000) != 0;
- bool authNeed = ::db_get_b(hContact, this->m_szModuleName, "Auth", 0) > 0;
- bool grantNeed = ::db_get_b(hContact, this->m_szModuleName, "Grant", 0) > 0;
+ bool authNeed = this->getByte(hContact, "Auth", 0) > 0;
+ bool grantNeed = this->getByte(hContact, "Grant", 0) > 0;
::Menu_ShowItem(CSkypeProto::contactMenuItems[CMI_AUTH_REQUEST], ctrlPressed || authNeed);
::Menu_ShowItem(CSkypeProto::contactMenuItems[CMI_AUTH_GRANT], ctrlPressed || grantNeed);
@@ -84,8 +84,8 @@ int CSkypeProto::GrantAuth(WPARAM wParam, LPARAM lParam) {
if (contact->SetBuddyStatus(true))
{
- ::db_unset(hContact, this->m_szModuleName, "Auth");
- ::db_unset(hContact, this->m_szModuleName, "Grant");
+ this->delSetting(hContact, "Auth");
+ this->delSetting(hContact, "Grant");
}
}
@@ -100,7 +100,7 @@ int CSkypeProto::RevokeAuth(WPARAM wParam, LPARAM lParam) if (this->GetContact(sid, contact))
{
if (contact->SetBuddyStatus(false))
- ::db_set_b(hContact, this->m_szModuleName, "Grant", 1);
+ this->setByte(hContact, "Grant", 1);
this->contactList.remove_val(contact);
}
|