diff options
Diffstat (limited to 'include/newpluginapi.h')
-rw-r--r-- | include/newpluginapi.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index dccefbe944..d7c0370dd2 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -274,6 +274,15 @@ public: return db_get_s(hContact, m_szModuleName, name, result);
}
+ __forceinline INT_PTR getUString(const char *name, DBVARIANT *result)
+ {
+ return db_get_utf(0, m_szModuleName, name, result);
+ }
+ __forceinline INT_PTR getUString(MCONTACT hContact, const char *name, DBVARIANT *result)
+ {
+ return db_get_utf(hContact, m_szModuleName, name, result);
+ }
+
__forceinline INT_PTR getWString(const char *name, DBVARIANT *result)
{
return db_get_ws(0, m_szModuleName, name, result);
@@ -301,6 +310,15 @@ public: return db_get_sa(hContact, m_szModuleName, name);
}
+ __forceinline char* getUStringA(const char *name)
+ {
+ return db_get_utfa(0, m_szModuleName, name);
+ }
+ __forceinline char* getUStringA(MCONTACT hContact, const char *name)
+ {
+ return db_get_utfa(hContact, m_szModuleName, name);
+ }
+
__forceinline wchar_t* getWStringA(const char *name)
{
return db_get_wsa(0, m_szModuleName, name);
@@ -355,6 +373,15 @@ public: db_set_s(hContact, m_szModuleName, name, value);
}
+ __forceinline void setUString(const char *name, const char* value)
+ {
+ db_set_utf(0, m_szModuleName, name, value);
+ }
+ __forceinline void setUString(MCONTACT hContact, const char *name, const char* value)
+ {
+ db_set_utf(hContact, m_szModuleName, name, value);
+ }
+
__forceinline void setWString(const char *name, const wchar_t* value)
{
db_set_ws(0, m_szModuleName, name, value);
|