diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-01 21:37:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-01 21:37:18 +0000 |
commit | 57c87234383026f1f57a3044f0d934fc13ea9d0e (patch) | |
tree | a296589c5e16dff5540923582207007552476f61 /plugins/RecentContacts/RecentContacts.h | |
parent | 5e52c4592330b5971a107da1bafd115fafb38f54 (diff) |
- RecentContacts added;
- _A2T & _T2A classes moved to m_utils.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@255 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RecentContacts/RecentContacts.h')
-rw-r--r-- | plugins/RecentContacts/RecentContacts.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/plugins/RecentContacts/RecentContacts.h b/plugins/RecentContacts/RecentContacts.h new file mode 100644 index 0000000000..76adb2fdd8 --- /dev/null +++ b/plugins/RecentContacts/RecentContacts.h @@ -0,0 +1,93 @@ +
+#pragma once
+
+#define _CRT_SECURE_NO_WARNINGS
+#define _CRT_NONSTDC_NO_DEPRECATE
+#define MIRANDA_VER 0x0A00
+
+#include <windows.h>
+#include <commctrl.h>
+#include <string>
+#include <map>
+#include "resource.h"
+#include <time.h>
+
+#include <newpluginapi.h>
+#include <m_clist.h>
+#include <m_contacts.h>
+#include <m_langpack.h>
+#include <m_database.h>
+#include <m_system.h>
+#include <m_system_cpp.h>
+#include <m_message.h>
+#include <m_utils.h>
+#include <m_updater.h>
+#include <m_icolib.h>
+#include <m_hotkeys.h>
+#include <m_protosvc.h>
+#include <m_options.h>
+#include <win2k.h>
+
+#include <m_toptoolbar.h>
+
+/* dc90285a-9985-4b7a-baad-e70ae1dfc1d9 */
+#define MIID_RECENTCONTACTS { 0xdc90285a, 0x9985, 0x4b7a, {0xba, 0xad, 0xe7, 0x0a, 0xe1, 0xdf, 0xc1, 0xd9}}
+
+#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore"
+
+using namespace std;
+
+void wSetData(char **Data, const char *Value);
+void wfree(char **Data);
+
+static char msLastUC_ShowListName[] = "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 msLastUC_ShowList[] = "RecentContacts/ShowList";
+static char msLastUC_IgnoreOff[] = "RecentContacts/SetIgnoreOff";
+static char msLastUC_IgnoreOn[] = "RecentContacts/SetIgnoreOn";
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
+typedef struct _LastUCOptions
+{
+ int MaxShownContacts;
+ int HideOffline;
+ 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, HANDLE, std::greater<__time64_t> > cmultimap;
+typedef std::pair <__time64_t, HANDLE> cpair;
+
+typedef struct LASTUC_DLG_DATA
+{
+ cmultimap *Contacts;
+ SIZE WindowMinSize;
+ RECT ListUCRect;
+ HANDLE hContact;
+} LASTUC_DLG_DATA;
\ No newline at end of file |