From f78628ed14bc7aa0fd3a7e10c5cb25c71e7748db Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Thu, 24 May 2012 15:03:18 +0000 Subject: Tipper - 2 new presets for menuex git-svn-id: http://svn.miranda-ng.org/main/trunk@163 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TipperYM/popwin.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'plugins/TipperYM/popwin.cpp') diff --git a/plugins/TipperYM/popwin.cpp b/plugins/TipperYM/popwin.cpp index 38acd9e6b6..c9f6d82464 100644 --- a/plugins/TipperYM/popwin.cpp +++ b/plugins/TipperYM/popwin.cpp @@ -124,6 +124,14 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa AddRow(pwd, TranslateT("Log on:"), swzLogon, NULL, false, false, false); } + // logoff info + TCHAR swzLogoff[64]; + if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", swzLogoff, 59)) + { + _tcscat(swzLogoff, TranslateT(" ago")); + AddRow(pwd, TranslateT("Log off:"), swzLogoff, NULL, false, false, false); + } + // number of unread emails TCHAR swzEmailCount[64]; if (ProtoServiceExists(pwd->clcit.szProto, "/GetUnreadEmailCount")) @@ -1800,6 +1808,12 @@ LRESULT CALLBACK PopupWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa _tcscat(buff, TranslateT(" ago")); AddRow(pwd, TranslateT("Log on:"), buff, NULL, false, false, false); } + + if (TimestampToTimeDifference(NULL, pwd->clcit.szProto, "LogoffTS", buff, 59)) + { + _tcscat(buff, TranslateT(" ago")); + AddRow(pwd, TranslateT("Log off:"), buff, NULL, false, false, false); + } } if (dwItems & TRAYTIP_UNREAD_EMAILS && ProtoServiceExists(pa->szModuleName, "/GetUnreadEmailCount")) -- cgit v1.2.3