diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-24 15:03:18 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-05-24 15:03:18 +0000 |
commit | f78628ed14bc7aa0fd3a7e10c5cb25c71e7748db (patch) | |
tree | bea3ce9919e317bb4e0a1e2a7dcfea3912b48220 /plugins/TipperYM/popwin.cpp | |
parent | 7c04dcf1f6c3ab2a669763101ebd322407c50adb (diff) |
Tipper - 2 new presets for menuex
git-svn-id: http://svn.miranda-ng.org/main/trunk@163 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TipperYM/popwin.cpp')
-rw-r--r-- | plugins/TipperYM/popwin.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
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"))
|