blob: 6408a5c727dde6872bdf2dba83412668fdc17901 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
#pragma once
#define _CRT_NONSTDC_NO_DEPRECATE
#include <windows.h>
#include <commctrl.h>
#include <string>
#include <map>
#include <time.h>
#include <newpluginapi.h>
#include <m_clistint.h>
#include <m_chat_int.h>
#include <m_langpack.h>
#include <m_database.h>
#include <m_message.h>
#include <m_hotkeys.h>
#include <m_protosvc.h>
#include <m_options.h>
#include <win2k.h>
#include <m_toptoolbar.h>
#include "resource.h"
#include "version.h"
#define V_RECENTCONTACTS_TOGGLE_IGNORE "RecentContacts/ToggleIgnore"
using namespace std;
struct SESSION_INFO : public GCSessionInfoBase {};
void wSetData(char **Data, const char *Value);
void wfree(char **Data);
#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"
struct CMPlugin : public PLUGIN<CMPlugin>
{
CMPlugin();
int Load() override;
int Unload() override;
};
/////////////////////////////////////////////////////////////////////////////////////////
struct LastUCOptions
{
int MaxShownContacts;
int HideOffline;
int WindowAutoSize;
string DateTimeFormat;
};
extern LastUCOptions LastUCOpt;
/////////////////////////////////////////////////////////////////////////////////////////
typedef std::multimap <__time64_t, MCONTACT, std::greater<__time64_t> > cmultimap;
typedef std::pair <__time64_t, MCONTACT> cpair;
struct LASTUC_DLG_DATA
{
cmultimap *Contacts;
SIZE WindowMinSize;
RECT ListUCRect;
MCONTACT hContact;
};
|