From 767337d1f7c5f53762cb2278dc47cb3729a586c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Jun 2017 19:48:17 +0300 Subject: RecentContacts - ability added to calculate recent groupchat event's timestamp; - massive code cleaning; - version bump --- plugins/RecentContacts/src/stdafx.h | 55 +++++++++++++++---------------------- 1 file changed, 22 insertions(+), 33 deletions(-) (limited to 'plugins/RecentContacts/src/stdafx.h') diff --git a/plugins/RecentContacts/src/stdafx.h b/plugins/RecentContacts/src/stdafx.h index 58c438a5a2..a23ecfaacd 100644 --- a/plugins/RecentContacts/src/stdafx.h +++ b/plugins/RecentContacts/src/stdafx.h @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -26,59 +27,47 @@ using namespace std; +struct SESSION_INFO : public GCSessionInfoBase {}; + void wSetData(char **Data, const char *Value); void wfree(char **Data); -static char msLastUC_ShowListName[] = LPGEN("Recent Contacts"); - -static char dbLastUC_ModuleName[] = "RecentContacts"; -static char dbLastUC_LastUsedTimeLo[] = "LastUsedTimeLo"; -static char dbLastUC_LastUsedTimeHi[] = "LastUsedTimeHi"; -static char dbLastUC_WindowPosPrefix[] = "Window"; -static char dbLastUC_DateTimeFormat[] = "DateTimeFormat"; -static char dbLastUC_DateTimeFormatDefault[] = "(%Y-%m-%d %H:%M) "; -static char dbLastUC_MaxShownContacts[] = "MaxShownContacts"; -static char dbLastUC_IgnoreContact[] = "Ignore"; -static char dbLastUC_HideOfflineContacts[] = "HideOfflineContacts"; -static char dbLastUC_WindowAutosize[] = "WindowAutoSize"; - -static char msLastUC_ShowList[] = "RecentContacts/ShowList"; -static char msLastUC_IgnoreOff[] = "RecentContacts/SetIgnoreOff"; -static char msLastUC_IgnoreOn[] = "RecentContacts/SetIgnoreOn"; +#define MODULENAME "RecentContacts" +#define dbLastUC_LastUsedTimeLo "LastUsedTimeLo" +#define dbLastUC_LastUsedTimeHi "LastUsedTimeHi" +#define dbLastUC_WindowPosPrefix "Window" +#define dbLastUC_DateTimeFormat "DateTimeFormat" +#define dbLastUC_DateTimeFormatDefault "(%Y-%m-%d %H:%M) " +#define dbLastUC_MaxShownContacts "MaxShownContacts" +#define dbLastUC_IgnoreContact "Ignore" +#define dbLastUC_HideOfflineContacts "HideOfflineContacts" +#define dbLastUC_WindowAutosize "WindowAutoSize" + +#define msLastUC_ShowList "RecentContacts/ShowList" +#define msLastUC_IgnoreOff "RecentContacts/SetIgnoreOff" +#define msLastUC_IgnoreOn "RecentContacts/SetIgnoreOn" ///////////////////////////////////////////////////////////////////////////////////////// -typedef struct _LastUCOptions +struct LastUCOptions { int MaxShownContacts; int HideOffline; int WindowAutoSize; string DateTimeFormat; -} - LastUCOptions; +}; extern LastUCOptions LastUCOpt; -//#include "m_tabsrmm.h" -// custom tabSRMM events -#define tabMSG_WINDOW_EVT_CUSTOM_BEFORESEND 1 -struct TABSRMM_SessionInfo { - unsigned int cbSize; - unsigned int evtCode; - HWND hwnd; // handle of the message dialog (tab) - HWND hwndContainer; // handle of the parent container - HWND hwndInput; // handle of the input area (rich edit) - /*struct MessageWindowData*/ void *dat; // the session info - /*struct ContainerWindowData*/ void *pContainer; -}; +///////////////////////////////////////////////////////////////////////////////////////// typedef std::multimap <__time64_t, MCONTACT, std::greater<__time64_t> > cmultimap; typedef std::pair <__time64_t, MCONTACT> cpair; -typedef struct LASTUC_DLG_DATA +struct LASTUC_DLG_DATA { cmultimap *Contacts; SIZE WindowMinSize; RECT ListUCRect; MCONTACT hContact; -} LASTUC_DLG_DATA; \ No newline at end of file +}; -- cgit v1.2.3