diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-06 13:17:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-06 13:17:00 +0000 |
commit | 74bbe14fb8a018a65f89d28386eb3e88edfd0516 (patch) | |
tree | 8309b29c8d288e472955aa07defab7e5e3f1726b /protocols/VKontakte/src/misc.cpp | |
parent | 91003eb7373b4cb9e340be5ecdbbb7884a5e973f (diff) |
VK: async http requests
git-svn-id: http://svn.miranda-ng.org/main/trunk@6373 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 0802d73405..b45ce5da7f 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -27,6 +27,17 @@ TCHAR* CVkProto::GetUserStoredPassword() return NULL;
}
+void CVkProto::SetAllContactStatuses(int iStatus)
+{
+ for (HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
+ if (isChatRoom(hContact))
+ continue;
+
+ if (getWord(hContact, "Status", 0) != iStatus)
+ setWord(hContact, "Status", iStatus);
+ }
+}
+
int CVkProto::SetServerStatus(int iStatus)
{
return 0;
|