summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-01-10 13:17:53 +0500
committerElzorFox <elzorfox@ya.ru>2017-01-10 13:17:53 +0500
commit77cccf9d4b13d9fad437eaf6361cec016a4ce27c (patch)
treea18f22cccead332e7eca0ec5418c5dd8f2348c29 /protocols/VKontakte/src/vk_proto.h
parentf124c479945d8d0db785b4259a2f41e2998fac73 (diff)
VKontakte: no more write to db if oldValue == newValue
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 84167b2a4f..215671eeaf 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -353,6 +353,16 @@ private:
void SetInvisible(MCONTACT hContact);
CMStringW RemoveBBC(CMStringW& wszSrc);
void AddVkDeactivateEvent(MCONTACT hContact, CMStringW & wszType);
+
+ bool DBSetByte(MCONTACT hContact, LPCSTR szKey, BYTE bValue, BYTE bDefaultValue = 0);
+ bool DBSetByte(MCONTACT hContact, LPCSTR szModuleName, LPCSTR szKey, BYTE bValue, BYTE bDefaultValue = 0);
+ bool DBSetWord(MCONTACT hContact, LPCSTR szKey, WORD wValue, WORD wDefaultValue = 0);
+ bool DBSetWord(MCONTACT hContact, LPCSTR szModuleName, LPCSTR szKey, WORD wValue, WORD wDefaultValue = 0);
+ bool DBSetDWord(MCONTACT hContact, LPCSTR szKey, DWORD dwValue, DWORD dwDefaultValue = 0);
+ bool DBSetDWord(MCONTACT hContact, LPCSTR szModuleName, LPCSTR szKey, DWORD dwValue, DWORD dwDefaultValue = 0);
+ bool DBSetWString(MCONTACT hContact, LPCSTR szKey, LPCWSTR wszValue);
+ bool DBSetWString(MCONTACT hContact, LPCSTR szModuleName, LPCSTR szKey, LPCWSTR wszValue);
+
void InitQueue();
void UninitQueue();
void ExecuteRequest(AsyncHttpRequest*);