From 88167d8a0f7f0e3b8fbad7c8204732995bd265be Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Tue, 1 Mar 2016 09:07:34 +0000 Subject: =?UTF-8?q?VKontakte:=20update=20VK=20API=20version=20to=205.45=20?= =?UTF-8?q?change=20SvcGetServerHistoryLastXXDay=E2=80=99s=20to=20template?= =?UTF-8?q?=20function=20(path=20by=20MikalaiR)=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@16382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_proto.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'protocols/VKontakte/src/vk_proto.h') 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 //==== 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 + 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(); -- cgit v1.2.3