diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-01 09:07:34 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2016-03-01 09:07:34 +0000 |
commit | 88167d8a0f7f0e3b8fbad7c8204732995bd265be (patch) | |
tree | 85f42a3b36918ebe5519e13feaf59f94e093a542 /protocols/VKontakte/src/vk_proto.h | |
parent | d575132cdc94cf476fee70859aa673a31aba3ea4 (diff) |
VKontakte:
update VK API version to 5.45
change SvcGetServerHistoryLastXXDay’s to template function (path by MikalaiR)
version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index 4ac93491ed..dde6d762e9 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -109,11 +109,16 @@ struct CVkProto : public PROTO<CVkProto> //==== History Menus ==================================================================
- INT_PTR __cdecl SvcGetServerHistoryLast1Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast3Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast7Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast30Day(WPARAM hContact, LPARAM);
- INT_PTR __cdecl SvcGetServerHistoryLast90Day(WPARAM hContact, LPARAM);
+ template <unsigned short Days>
+ INT_PTR __cdecl SvcGetServerHistoryLastNDay(WPARAM hContact, LPARAM)
+ {
+ debugLogA("CVkProto::SvcGetServerHistoryLast%dDay", Days);
+ if (!IsOnline())
+ return 0;
+ GetServerHistoryLastNDay(hContact, Days);
+ return 1;
+ }
+
INT_PTR __cdecl SvcGetAllServerHistory(WPARAM hContact, LPARAM);
void InitMenus();
void UnInitMenus();
|