]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/man/man3/modules.h.3
2ef88ae518bb70b9be0b41f987e50d7e4dc55d0c
[user/henk/code/inspircd.git] / docs / man / man3 / modules.h.3
1 .TH "modules.h" 3 "13 Apr 2005" "InspIRCd" \" -*- nroff -*-
2 .ad l
3 .nh
4 .SH NAME
5 modules.h \- 
6 .SH SYNOPSIS
7 .br
8 .PP
9 \fC#include 'dynamic.h'\fP
10 .br
11 \fC#include 'base.h'\fP
12 .br
13 \fC#include 'ctables.h'\fP
14 .br
15 \fC#include <string>\fP
16 .br
17 \fC#include <deque>\fP
18 .br
19 \fC#include <sstream>\fP
20 .br
21
22 .SS "Compounds"
23
24 .in +1c
25 .ti -1c
26 .RI "class \fBAdmin\fP"
27 .br
28 .RI "\fIHolds /ADMIN data This class contains the admin details of the local server. \fP"
29 .ti -1c
30 .RI "class \fBConfigReader\fP"
31 .br
32 .RI "\fIAllows reading of values from configuration files This class allows a module to read from either the main configuration file (inspircd.conf) or from a module-specified configuration file. \fP"
33 .ti -1c
34 .RI "class \fBFileReader\fP"
35 .br
36 .RI "\fICaches a text file into memory and can be used to retrieve lines from it. \fP"
37 .ti -1c
38 .RI "class \fBModule\fP"
39 .br
40 .RI "\fIBase class for all InspIRCd modules This class is the base class for InspIRCd modules. \fP"
41 .ti -1c
42 .RI "class \fBModuleFactory\fP"
43 .br
44 .RI "\fIInstantiates classes inherited from \fBModule\fP This class creates a class inherited from type \fBModule\fP, using new. \fP"
45 .ti -1c
46 .RI "class \fBServer\fP"
47 .br
48 .RI "\fIAllows server output and query functions This class contains methods which allow a module to query the state of the irc server, and produce output to users and other servers. \fP"
49 .ti -1c
50 .RI "class \fBVersion\fP"
51 .br
52 .RI "\fIHolds a module's Version information The four members (set by the constructor only) indicate details as to the version number of a module. \fP"
53 .in -1c
54 .SS "Defines"
55
56 .in +1c
57 .ti -1c
58 .RI "#define \fBDEBUG\fP   10"
59 .br
60 .ti -1c
61 .RI "#define \fBVERBOSE\fP   20"
62 .br
63 .ti -1c
64 .RI "#define \fBDEFAULT\fP   30"
65 .br
66 .ti -1c
67 .RI "#define \fBSPARSE\fP   40"
68 .br
69 .ti -1c
70 .RI "#define \fBNONE\fP   50"
71 .br
72 .ti -1c
73 .RI "#define \fBMT_CHANNEL\fP   1"
74 .br
75 .ti -1c
76 .RI "#define \fBMT_CLIENT\fP   2"
77 .br
78 .ti -1c
79 .RI "#define \fBMT_SERVER\fP   3"
80 .br
81 .ti -1c
82 .RI "#define \fBACR_DEFAULT\fP   0"
83 .br
84 .ti -1c
85 .RI "#define \fBACR_DENY\fP   1"
86 .br
87 .ti -1c
88 .RI "#define \fBACR_ALLOW\fP   2"
89 .br
90 .ti -1c
91 .RI "#define \fBAC_KICK\fP   0"
92 .br
93 .ti -1c
94 .RI "#define \fBAC_DEOP\fP   1"
95 .br
96 .ti -1c
97 .RI "#define \fBAC_OP\fP   2"
98 .br
99 .ti -1c
100 .RI "#define \fBAC_VOICE\fP   3"
101 .br
102 .ti -1c
103 .RI "#define \fBAC_DEVOICE\fP   4"
104 .br
105 .ti -1c
106 .RI "#define \fBAC_HALFOP\fP   5"
107 .br
108 .ti -1c
109 .RI "#define \fBAC_DEHALFOP\fP   6"
110 .br
111 .ti -1c
112 .RI "#define \fBAC_INVITE\fP   7"
113 .br
114 .ti -1c
115 .RI "#define \fBAC_GENERAL_MODE\fP   8"
116 .br
117 .ti -1c
118 .RI "#define \fBVF_STATIC\fP   1"
119 .br
120 .ti -1c
121 .RI "#define \fBVF_VENDOR\fP   2"
122 .br
123 .ti -1c
124 .RI "#define \fBVF_SERVICEPROVIDER\fP   4"
125 .br
126 .ti -1c
127 .RI "#define \fBVF_COMMON\fP   8"
128 .br
129 .ti -1c
130 .RI "#define \fBFOREACH_MOD\fP   for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->"
131 .br
132 .ti -1c
133 .RI "#define \fBFOREACH_RESULT\fP(x)"
134 .br
135 .ti -1c
136 .RI "#define \fBFD_MAGIC_NUMBER\fP   -42"
137 .br
138 .ti -1c
139 .RI "#define \fBCONF_NOT_A_NUMBER\fP   0x000010"
140 .br
141 .ti -1c
142 .RI "#define \fBCONF_NOT_UNSIGNED\fP   0x000080"
143 .br
144 .ti -1c
145 .RI "#define \fBCONF_VALUE_NOT_FOUND\fP   0x000100"
146 .br
147 .ti -1c
148 .RI "#define \fBCONF_FILE_NOT_FOUND\fP   0x000200"
149 .br
150 .in -1c
151 .SS "Typedefs"
152
153 .in +1c
154 .ti -1c
155 .RI "typedef std::deque< std::string > \fBfile_cache\fP"
156 .br
157 .RI "\fILow level definition of a \fBFileReader\fP classes file cache area. \fP"
158 .ti -1c
159 .RI "typedef \fBfile_cache\fP \fBstring_list\fP"
160 .br
161 .ti -1c
162 .RI "typedef std::deque< \fBuserrec\fP * > \fBchanuserlist\fP"
163 .br
164 .RI "\fIHolds a list of users in a channel. \fP"
165 .ti -1c
166 .RI "typedef DLLFactory< \fBModuleFactory\fP > \fBircd_module\fP"
167 .br
168 .in -1c
169 .SS "Functions"
170
171 .in +1c
172 .ti -1c
173 .RI "void \fBcreatecommand\fP (char *cmd, handlerfunc f, char flags, int minparams, char *source)"
174 .br
175 .ti -1c
176 .RI "void \fBserver_mode\fP (char **parameters, int pcnt, \fBuserrec\fP *user)"
177 .br
178 .in -1c
179 .SH "Define Documentation"
180 .PP 
181 .SS "#define AC_DEHALFOP   6"
182 .PP
183 Definition at line 47 of file modules.h.
184 .SS "#define AC_DEOP   1"
185 .PP
186 Definition at line 42 of file modules.h.
187 .SS "#define AC_DEVOICE   4"
188 .PP
189 Definition at line 45 of file modules.h.
190 .SS "#define AC_GENERAL_MODE   8"
191 .PP
192 Definition at line 49 of file modules.h.
193 .SS "#define AC_HALFOP   5"
194 .PP
195 Definition at line 46 of file modules.h.
196 .SS "#define AC_INVITE   7"
197 .PP
198 Definition at line 48 of file modules.h.
199 .SS "#define AC_KICK   0"
200 .PP
201 Definition at line 41 of file modules.h.
202 .SS "#define AC_OP   2"
203 .PP
204 Definition at line 43 of file modules.h.
205 .SS "#define AC_VOICE   3"
206 .PP
207 Definition at line 44 of file modules.h.
208 .SS "#define ACR_ALLOW   2"
209 .PP
210 Definition at line 39 of file modules.h.
211 .SS "#define ACR_DEFAULT   0"
212 .PP
213 Definition at line 37 of file modules.h.
214 .PP
215 Referenced by Module::OnAccessCheck().
216 .SS "#define ACR_DENY   1"
217 .PP
218 Definition at line 38 of file modules.h.
219 .SS "#define CONF_FILE_NOT_FOUND   0x000200"
220 .PP
221 Definition at line 782 of file modules.h.
222 .PP
223 Referenced by ConfigReader::ConfigReader().
224 .SS "#define CONF_NOT_A_NUMBER   0x000010"
225 .PP
226 Definition at line 779 of file modules.h.
227 .PP
228 Referenced by ConfigReader::ReadInteger().
229 .SS "#define CONF_NOT_UNSIGNED   0x000080"
230 .PP
231 Definition at line 780 of file modules.h.
232 .PP
233 Referenced by ConfigReader::ReadInteger().
234 .SS "#define CONF_VALUE_NOT_FOUND   0x000100"
235 .PP
236 Definition at line 781 of file modules.h.
237 .PP
238 Referenced by ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), and ConfigReader::ReadValue().
239 .SS "#define DEBUG   10"
240 .PP
241 Definition at line 23 of file modules.h.
242 .PP
243 Referenced by Server::AddExtendedMode(), userrec::HasPermission(), chanrec::IsCustomModeSet(), ModeDefined(), ModeDefinedOper(), ModeIsListMode(), userrec::RemoveInvite(), chanrec::SetCustomMode(), and chanrec::SetCustomModeParam().
244 .SS "#define DEFAULT   30"
245 .PP
246 Definition at line 25 of file modules.h.
247 .SS "#define FD_MAGIC_NUMBER   -42"
248 .PP
249 Definition at line 99 of file modules.h.
250 .PP
251 Referenced by Server::PseudoToUser(), and Server::UserToPseudo().
252 .SS "#define FOREACH_MOD   for (int i = 0; i <= \fBMODCOUNT\fP; i++) modules[i]->"
253 .PP
254 Definition at line 79 of file modules.h.
255 .SS "#define FOREACH_RESULT(x)"
256 .PP
257 \fBValue:\fP.nf
258 { MOD_RESULT = 0; \
259                         for (int i = 0; i <= MODCOUNT; i++) { \
260                         int res = modules[i]->x ; \
261                         if (res != 0) { \
262                                 MOD_RESULT = res; \
263                                 break; \
264                         } \
265                 } \
266         }
267 .fi
268 .PP
269 Definition at line 87 of file modules.h.
270 .SS "#define MT_CHANNEL   1"
271 .PP
272 Definition at line 31 of file modules.h.
273 .PP
274 Referenced by Server::AddExtendedListMode(), and ModeMakeList().
275 .SS "#define MT_CLIENT   2"
276 .PP
277 Definition at line 32 of file modules.h.
278 .PP
279 Referenced by Server::AddExtendedMode().
280 .SS "#define MT_SERVER   3"
281 .PP
282 Definition at line 33 of file modules.h.
283 .PP
284 Referenced by Server::AddExtendedMode().
285 .SS "#define NONE   50"
286 .PP
287 Definition at line 27 of file modules.h.
288 .SS "#define SPARSE   40"
289 .PP
290 Definition at line 26 of file modules.h.
291 .SS "#define VERBOSE   20"
292 .PP
293 Definition at line 24 of file modules.h.
294 .SS "#define VF_COMMON   8"
295 .PP
296 Definition at line 56 of file modules.h.
297 .SS "#define VF_SERVICEPROVIDER   4"
298 .PP
299 Definition at line 55 of file modules.h.
300 .SS "#define VF_STATIC   1"
301 .PP
302 Definition at line 53 of file modules.h.
303 .SS "#define VF_VENDOR   2"
304 .PP
305 Definition at line 54 of file modules.h.
306 .PP
307 Referenced by Module::GetVersion().
308 .SH "Typedef Documentation"
309 .PP 
310 .SS "typedef std::deque<\fBuserrec\fP*> \fBchanuserlist\fP"
311 .PP
312 Holds a list of users in a channel. Definition at line 72 of file modules.h.
313 .PP
314 Referenced by Server::GetUsers().
315 .SS "typedef std::deque<std::string> \fBfile_cache\fP"
316 .PP
317 Low level definition of a \fBFileReader\fP classes file cache area. Definition at line 67 of file modules.h.
318 .PP
319 Referenced by FileReader::FileReader(), and FileReader::LoadFile().
320 .SS "typedef DLLFactory<\fBModuleFactory\fP> \fBircd_module\fP"
321 .PP
322 Definition at line 947 of file modules.h.
323 .SS "typedef \fBfile_cache\fP \fBstring_list\fP"
324 .PP
325 Definition at line 68 of file modules.h.
326 .PP
327 Referenced by Module::OnChannelSync(), and Module::OnUserSync().
328 .SH "Function Documentation"
329 .PP 
330 .SS "void createcommand (char * cmd, handlerfunc f, char flags, int minparams, char * source)"
331 .PP
332 Referenced by Server::AddCommand().
333 .SS "void server_mode (char ** parameters, int pcnt, \fBuserrec\fP * user)"
334 .PP
335 Referenced by Server::SendMode().
336 .SH "Author"
337 .PP 
338 Generated automatically by Doxygen for InspIRCd from the source code.