blob: fb6e453021968de7bf232b58b14cfd3e2f53edb2 (
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
107
108
109
110
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>users.h Source File</title>
<link href="inspircd.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc3 -->
<center>
<a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
<hr><h1>users.h</h1><a href="users_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
00002 <span class="comment"></span>
00003 <span class="comment"></span>
00004 <span class="comment">*/</span>
00005
00006 <span class="preprocessor">#include "inspircd_config.h"</span>
00007 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span>
00008 <span class="preprocessor">#include "<a class="code" href="connection_8h.html">connection.h</a>"</span>
00009
00010 <span class="preprocessor">#include <string></span>
00011
00012 <span class="preprocessor">#ifndef __USERS_H__ </span>
00013 <span class="preprocessor"></span><span class="preprocessor">#define __USERS_H__ </span>
00014 <span class="preprocessor"></span>
<a name="l00015"></a><a class="code" href="users_8h.html#a0">00015</a> <span class="preprocessor">#define STATUS_OP 4</span>
<a name="l00016"></a><a class="code" href="users_8h.html#a1">00016</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_HOP 2</span>
<a name="l00017"></a><a class="code" href="users_8h.html#a2">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_VOICE 1</span>
<a name="l00018"></a><a class="code" href="users_8h.html#a3">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_NORMAL 0</span>
00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="users_8h.html#a4">00020</a> <span class="preprocessor">#define CC_ALLOW 0</span>
<a name="l00021"></a><a class="code" href="users_8h.html#a5">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define CC_DENY 1</span>
00022 <span class="preprocessor"></span>
<a name="l00025"></a><a class="code" href="classInvited.html">00025</a> <span class="keyword">class </span><a class="code" href="classInvited.html">Invited</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a>
00026 {
00027 <span class="keyword">public</span>:
<a name="l00028"></a><a class="code" href="classInvited.html#m0">00028</a> <span class="keywordtype">char</span> <a class="code" href="classInvited.html#m0">channel</a>[CHANMAX];
00029 };
00030
00031
<a name="l00034"></a><a class="code" href="classConnectClass.html">00034</a> <span class="keyword">class </span><a class="code" href="classConnectClass.html">ConnectClass</a> : <span class="keyword">public</span> <a class="code" href="classclassbase.html">classbase</a>
00035 {
00036 <span class="keyword">public</span>:
<a name="l00037"></a><a class="code" href="classConnectClass.html#m0">00037</a> <span class="keywordtype">int</span> <a class="code" href="classConnectClass.html#m0">type</a>;
<a name="l00038"></a><a class="code" href="classConnectClass.html#m1">00038</a> <span class="keywordtype">int</span> <a class="code" href="classConnectClass.html#m1">registration_timeout</a>;
<a name="l00039"></a><a class="code" href="classConnectClass.html#m2">00039</a> <span class="keywordtype">char</span> <a class="code" href="classConnectClass.html#m2">host</a>[MAXBUF];
<a name="l00040"></a><a class="code" href="classConnectClass.html#m3">00040</a> <span class="keywordtype">char</span> <a class="code" href="classConnectClass.html#m3">pass</a>[MAXBUF];
00041
<a name="l00042"></a><a class="code" href="classConnectClass.html#a0">00042</a> <a class="code" href="classConnectClass.html#a0">ConnectClass</a>()
00043 {
00044 registration_timeout = 0;
00045 strcpy(host,<span class="stringliteral">""</span>);
00046 strcpy(pass,<span class="stringliteral">""</span>);
00047 }
00048 };
00049
<a name="l00052"></a><a class="code" href="users_8h.html#a6">00052</a> <span class="keyword">typedef</span> std::vector<Invited> <a class="code" href="users_8h.html#a6">InvitedList</a>;
00053
00054
00055
<a name="l00058"></a><a class="code" href="users_8h.html#a7">00058</a> <span class="keyword">typedef</span> std::vector<ConnectClass> <a class="code" href="users_8h.html#a7">ClassVector</a>;
00059
<a name="l00066"></a><a class="code" href="classuserrec.html">00066</a> <span class="keyword">class </span><a class="code" href="classuserrec.html">userrec</a> : <span class="keyword">public</span> <a class="code" href="classconnection.html">connection</a>
00067 {
00068 <span class="keyword">private</span>:
00069
<a name="l00072"></a><a class="code" href="classuserrec.html#o0">00072</a> <a class="code" href="users_8h.html#a6">InvitedList</a> <a class="code" href="classuserrec.html#o0">invites</a>;
00073 <span class="keyword">public</span>:
00074
<a name="l00079"></a><a class="code" href="classuserrec.html#m0">00079</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m0">nick</a>[NICKMAX];
00080
<a name="l00083"></a><a class="code" href="classuserrec.html#m1">00083</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m1">ident</a>[64];
00084
<a name="l00088"></a><a class="code" href="classuserrec.html#m2">00088</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m2">dhost</a>[256];
00089
<a name="l00092"></a><a class="code" href="classuserrec.html#m3">00092</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m3">fullname</a>[128];
00093
<a name="l00098"></a><a class="code" href="classuserrec.html#m4">00098</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m4">modes</a>[MAXBUF];
00099
<a name="l00100"></a><a class="code" href="classuserrec.html#m5">00100</a> <a class="code" href="classucrec.html">ucrec</a> <a class="code" href="classuserrec.html#m5">chans</a>[MAXCHANS];
00101
<a name="l00104"></a><a class="code" href="classuserrec.html#m6">00104</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m6">server</a>[256];
00105
<a name="l00109"></a><a class="code" href="classuserrec.html#m7">00109</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m7">awaymsg</a>[512];
00110
<a name="l00114"></a><a class="code" href="classuserrec.html#m8">00114</a> <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m8">result</a>[256];
00115
<a name="l00116"></a><a class="code" href="classuserrec.html#m9">00116</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="classuserrec.html#m9">timeout</a>;
00117
00118 <a class="code" href="classuserrec.html#a0">userrec</a>();
00119
<a name="l00120"></a><a class="code" href="classuserrec.html#a1">00120</a> <span class="keyword">virtual</span> <a class="code" href="classuserrec.html#a1">~userrec</a>() { }
00121
00126 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">GetFullHost</a>();
00127
00133 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">GetFullRealHost</a>();
00134
00137 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classuserrec.html#a4">IsInvited</a>(<span class="keywordtype">char</span>* channel);
00138
00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a5">InviteTo</a>(<span class="keywordtype">char</span>* channel);
00142
00147 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classuserrec.html#a6">RemoveInvite</a>(<span class="keywordtype">char</span>* channel);
00148
00149 };
00150
00151
00152 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Tue Apr 6 21:13:20 2004 for InspIRCd by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc3 </small></address>
</body>
</html>
|