summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/Tlen/tlen_czaty/mucc.h
blob: 8dc845aa9264b267f77b08905fddd885a33d13ff (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*

MUCC Group Chat GUI Plugin for Miranda IM
Copyright (C) 2004  Piotr Piastucki

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
#ifndef MUCC_INCLUDED
#define MUCC_INCLUDED

//#define ENABLE_LOGGING

#define _WIN32_WINNT 0x0501
#define _WIN32_IE 0x0500

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include <process.h>
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
#include <limits.h>

#ifdef __MINGW32__
#define EM_SETTEXTEX	(WM_USER + 97)
#define ST_DEFAULT		0
#define ST_KEEPUNDO		1
#define ST_SELECTION	2
#define ST_NEWCHARS		4
#else
#include <win2k.h>
#endif

#define MIRANDA_VER 0x0700

#include <newpluginapi.h>
#include <m_system.h>
#include <m_protomod.h>
#include <m_protosvc.h>
#include <m_clist.h>
#include <m_clui.h>
#include <m_options.h>
#include <m_userinfo.h>
#include <m_database.h>
#include <m_langpack.h>
#include <m_utils.h>
#include <m_message.h>
#include <m_skin.h>
#include <m_popup.h>
#include <m_button.h>

#include "resource.h"

enum {
	MUCC_IDI_CHAT = 0,
	MUCC_IDI_U_GLOBALOWNER,
	MUCC_IDI_U_OWNER,
	MUCC_IDI_U_ADMIN,
	MUCC_IDI_U_REGISTERED,
	MUCC_IDI_R_MODERATED,
	MUCC_IDI_R_MEMBERS,
	MUCC_IDI_R_ANONYMOUS,
	MUCC_IDI_PREV,
	MUCC_IDI_NEXT,
	MUCC_IDI_SEARCH,
	MUCC_IDI_BOLD,
	MUCC_IDI_ITALIC,
	MUCC_IDI_UNDERLINE,
	MUCC_IDI_OPTIONS,
	MUCC_IDI_INVITE,
	MUCC_IDI_ADMINISTRATION,
	MUCC_IDI_SMILEY,
	MUCC_IDI_MESSAGE,
	MUCC_ICON_TOTAL

};

extern PLUGINLINK * pluginLink;
extern char *muccModuleName;
extern HINSTANCE hInst;
extern HANDLE hHookEvent;
extern HIMAGELIST hImageList;
extern HICON muccIcon[MUCC_ICON_TOTAL];

#include "m_mucc.h"

#define WM_MUCC_REFRESH_ROOMS		(WM_USER+101)
#define WM_MUCC_REFRESH_USER_ROOMS  (WM_USER+102)
#define WM_MUCC_REFRESH_USER_NICKS  (WM_USER+103)

#endif