summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_db_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:18:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-15 21:18:48 +0000
commit7ebaebba8520e457bf374ca245f52332fbb008be (patch)
tree55cf960e4981d9413befb1bf275a3fd067bf2534 /protocols/JabberG/src/jabber_db_utils.h
parent8353de363fc22940685b334cbb38c0378e9c1b71 (diff)
bye-bye old coding style in Jabber
git-svn-id: http://svn.miranda-ng.org/main/trunk@2322 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_db_utils.h')
-rw-r--r--protocols/JabberG/src/jabber_db_utils.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/protocols/JabberG/src/jabber_db_utils.h b/protocols/JabberG/src/jabber_db_utils.h
index ae9a6c9781..4b09bac744 100644
--- a/protocols/JabberG/src/jabber_db_utils.h
+++ b/protocols/JabberG/src/jabber_db_utils.h
@@ -1,15 +1,15 @@
/*
Jabber Protocol Plugin for Miranda IM
-Copyright ( C ) 2002-04 Santithorn Bunchua
-Copyright ( C ) 2005-12 George Hazan
-Copyright ( C ) 2007-09 Maxim Mluhov
-Copyright ( C ) 2007-09 Victor Pavlychko
+Copyright (C) 2002-04 Santithorn Bunchua
+Copyright (C) 2005-12 George Hazan
+Copyright (C) 2007-09 Maxim Mluhov
+Copyright (C) 2007-09 Victor Pavlychko
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
-of the License, or ( at your option ) any later version.
+of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -42,11 +42,11 @@ struct CMDBTraits<1>
enum { DBTypeId = DBVT_BYTE };
static __forceinline DBType Get(char *szModule, char *szSetting, DBType value)
{
- return DBGetContactSettingByte(NULL, szModule, szSetting, value);
+ return db_get_b(NULL, szModule, szSetting, value);
}
static __forceinline void Set(char *szModule, char *szSetting, DBType value)
{
- DBWriteContactSettingByte(NULL, szModule, szSetting, value);
+ db_set_b(NULL, szModule, szSetting, value);
}
};
@@ -57,11 +57,11 @@ struct CMDBTraits<2>
enum { DBTypeId = DBVT_WORD };
static __forceinline DBType Get(char *szModule, char *szSetting, DBType value)
{
- return DBGetContactSettingWord(NULL, szModule, szSetting, value);
+ return db_get_w(NULL, szModule, szSetting, value);
}
static __forceinline void Set(char *szModule, char *szSetting, DBType value)
{
- DBWriteContactSettingWord(NULL, szModule, szSetting, value);
+ db_set_w(NULL, szModule, szSetting, value);
}
};
@@ -76,11 +76,11 @@ struct CMDBTraits<4>
}
static __forceinline DBType Get(char *szModule, char *szSetting, DBType value)
{
- return DBGetContactSettingDword(NULL, szModule, szSetting, value);
+ return db_get_dw(NULL, szModule, szSetting, value);
}
static __forceinline void Set(char *szModule, char *szSetting, DBType value)
{
- DBWriteContactSettingDword(NULL, szModule, szSetting, value);
+ db_set_dw(NULL, szModule, szSetting, value);
}
};
@@ -142,7 +142,7 @@ public:
{
CMString result;
DBVARIANT dbv;
- if (!DBGetContactSettingTString(NULL, m_proto->m_szModuleName, m_szSetting, &dbv))
+ if ( !DBGetContactSettingTString(NULL, m_proto->m_szModuleName, m_szSetting, &dbv))
{
result = dbv.ptszVal;
DBFreeVariant(&dbv);
@@ -151,7 +151,7 @@ public:
}
__forceinline Type operator= (Type value)
{
- DBWriteContactSettingTString(NULL, m_proto->m_szModuleName, m_szSetting, value);
+ db_set_ts(NULL, m_proto->m_szModuleName, m_szSetting, value);
return value;
}