summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/main.cpp
blob: 67b234c089aa50ed37d602b5c36701f6a2bf9d56 (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

#include "stdafx.h"

CMPlugin g_plugin;
CLIST_INTERFACE *pcli;

IconItem iconList[] =
{
	{ LPGEN("Execute"),               "run",          IDI_RUN },
	{ LPGEN("Hide offline contacts"), "hide_offline", IDI_HIDEOFFLINE },
	{ LPGEN("Show offline contacts"), "show_offline", IDI_SHOWOFFLINE },
	{ LPGEN("Disable groups"),        "groups_off",   IDI_GROUPSOFF },
	{ LPGEN("Enable groups"),         "groups_on",    IDI_GROUPSON },
	{ LPGEN("Disable sounds"),        "sounds_off",   IDI_SOUNDSOFF },
	{ LPGEN("Enable sounds"),         "sounds_on",    IDI_SOUNDSON },
	{ LPGEN("Disable metacontacts"),  "meta_off",     IDI_METAON },
	{ LPGEN("Enable metacontacts"),   "meta_on",      IDI_METAOFF },
	{ LPGEN("Separator"),             "separator",    IDI_SEPARATOR }
};

/////////////////////////////////////////////////////////////////////////////////////////

PLUGININFOEX pluginInfoEx =
{
	sizeof(PLUGININFOEX),
	__PLUGIN_NAME,
	PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
	__DESCRIPTION,
	__AUTHOR,
	__COPYRIGHT,
	__AUTHORWEB,
	UNICODE_AWARE,
	// {F593C752-51D8-4D46-BA27-37577953F55C}
	{0xf593c752, 0x51d8, 0x4d46, {0xba, 0x27, 0x37, 0x57, 0x79, 0x53, 0xf5, 0x5c}}
};

CMPlugin::CMPlugin() :
	PLUGIN<CMPlugin>(TTB_OPTDIR, pluginInfoEx)
{}

extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
	return &pluginInfoEx;
}

/////////////////////////////////////////////////////////////////////////////////////////

extern "C" int __declspec(dllexport) Load(void)
{
	pcli = Clist_GetInterface();

	g_plugin.registerIcon(TTB_OPTDIR, iconList, TTB_OPTDIR);

	LoadToolbarModule();
	return 0;
}

/////////////////////////////////////////////////////////////////////////////////////////

extern "C" int __declspec(dllexport) Unload(void)
{
	UnloadToolbarModule();
	return 0;
}