summaryrefslogtreecommitdiff
path: root/docs/module-doc/users_8h-source.html
blob: 9557b4d0a01c48b1effe0d6ccc10946f5b2dca2b (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!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="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc2 -->
<center>
<a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </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">$Log$
00003 <span class="comment">Revision 1.3  2003/01/26 23:52:48  brain
00003 <span class="comment">Modified documentation for base classes
00003 <span class="comment"></span>
00004 <span class="comment">Revision 1.1.1.1  2003/01/23 19:45:58  brain</span>
00005 <span class="comment">InspIRCd second source tree</span>
00006 <span class="comment"></span>
00007 <span class="comment">Revision 1.9  2003/01/22 00:44:26  brain</span>
00008 <span class="comment">Added documentation comments</span>
00009 <span class="comment"></span>
00010 <span class="comment">Revision 1.8  2003/01/21 21:11:17  brain</span>
00011 <span class="comment">Added documentation</span>
00012 <span class="comment"></span>
00013 <span class="comment">Revision 1.7  2003/01/17 13:21:38  brain</span>
00014 <span class="comment">Added CONNECT ALLOW and CONNECT DENY config tags</span>
00015 <span class="comment">Added PASS command</span>
00016 <span class="comment"></span>
00017 <span class="comment">Revision 1.6  2003/01/17 10:37:55  brain</span>
00018 <span class="comment">Added /INVITE command and relevent structures</span>
00019 <span class="comment"></span>
00020 <span class="comment">Revision 1.5  2003/01/16 20:11:56  brain</span>
00021 <span class="comment">fixed some ugly pointer bugs (thanks dblack and a|KK|y!)</span>
00022 <span class="comment"></span>
00023 <span class="comment">Revision 1.4  2003/01/15 22:47:44  brain</span>
00024 <span class="comment">Changed user and channel structs to classes (finally)</span>
00025 <span class="comment"></span>
00026 <span class="comment">Revision 1.3  2003/01/14 21:14:30  brain</span>
00027 <span class="comment">added /ISON command (for mIRC etc basic notify)</span>
00028 <span class="comment"></span>
00029 <span class="comment"></span>
00030 <span class="comment">*/</span>
00031 
00032 <span class="preprocessor">#include "inspircd_config.h"</span> 
00033 <span class="preprocessor">#include "<a class="code" href="channels_8h.html">channels.h</a>"</span>
00034 <span class="preprocessor">#include "<a class="code" href="connection_8h.html">connection.h</a>"</span>
00035 
00036 <span class="preprocessor">#include &lt;string&gt;</span>
00037  
00038 <span class="preprocessor">#ifndef __USERS_H__ </span>
00039 <span class="preprocessor"></span><span class="preprocessor">#define __USERS_H__ </span>
00040 <span class="preprocessor"></span> 
<a name="l00041"></a><a class="code" href="users_8h.html#a0">00041</a> <span class="preprocessor">#define STATUS_OP       4</span>
<a name="l00042"></a><a class="code" href="users_8h.html#a1">00042</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_HOP      2</span>
<a name="l00043"></a><a class="code" href="users_8h.html#a2">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_VOICE    1</span>
<a name="l00044"></a><a class="code" href="users_8h.html#a3">00044</a> <span class="preprocessor"></span><span class="preprocessor">#define STATUS_NORMAL   0</span>
00045 <span class="preprocessor"></span>
<a name="l00046"></a><a class="code" href="users_8h.html#a4">00046</a> <span class="preprocessor">#define CC_ALLOW        0</span>
<a name="l00047"></a><a class="code" href="users_8h.html#a5">00047</a> <span class="preprocessor"></span><span class="preprocessor">#define CC_DENY         1</span>
00048 <span class="preprocessor"></span>
<a name="l00051"></a><a class="code" href="classInvited.html">00051</a> <span class="keyword">class </span><a class="code" href="classInvited.html">Invited</a>
00052 {
00053  <span class="keyword">public</span>:
<a name="l00054"></a><a class="code" href="classInvited.html#m0">00054</a>         <span class="keywordtype">char</span> <a class="code" href="classInvited.html#m0">channel</a>[CHANMAX];
00055 };
00056 
00057 
<a name="l00060"></a><a class="code" href="classConnectClass.html">00060</a> <span class="keyword">class </span><a class="code" href="classConnectClass.html">ConnectClass</a>
00061 {
00062  <span class="keyword">public</span>:
<a name="l00063"></a><a class="code" href="classConnectClass.html#m0">00063</a>         <span class="keywordtype">int</span> <a class="code" href="classConnectClass.html#m0">type</a>;
<a name="l00064"></a><a class="code" href="classConnectClass.html#m1">00064</a>         <span class="keywordtype">char</span> <a class="code" href="classConnectClass.html#m1">host</a>[MAXBUF];
<a name="l00065"></a><a class="code" href="classConnectClass.html#m2">00065</a>         <span class="keywordtype">char</span> <a class="code" href="classConnectClass.html#m2">pass</a>[MAXBUF];
00066 };
00067 
<a name="l00070"></a><a class="code" href="users_8h.html#a6">00070</a> <span class="keyword">typedef</span> vector&lt;Invited&gt; <a class="code" href="users_8h.html#a6">InvitedList</a>;
00071 
00072 
00073 
<a name="l00076"></a><a class="code" href="users_8h.html#a7">00076</a> <span class="keyword">typedef</span> vector&lt;ConnectClass&gt; <a class="code" href="users_8h.html#a7">ClassVector</a>;
00077 
<a name="l00084"></a><a class="code" href="classuserrec.html">00084</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>
00085 {
00086  <span class="keyword">private</span>:
00087 
<a name="l00090"></a><a class="code" href="classuserrec.html#o0">00090</a>         <a class="code" href="users_8h.html#a6">InvitedList</a> <a class="code" href="classuserrec.html#o0">invites</a>;
00091  <span class="keyword">public</span>:
00092         
<a name="l00097"></a><a class="code" href="classuserrec.html#m0">00097</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m0">nick</a>[NICKMAX];
00098         
<a name="l00101"></a><a class="code" href="classuserrec.html#m1">00101</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m1">ident</a>[64];
00102 
<a name="l00106"></a><a class="code" href="classuserrec.html#m2">00106</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m2">dhost</a>[256];
00107         
<a name="l00110"></a><a class="code" href="classuserrec.html#m3">00110</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m3">fullname</a>[128];
00111         
<a name="l00116"></a><a class="code" href="classuserrec.html#m4">00116</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m4">modes</a>[32];
00117         
<a name="l00118"></a><a class="code" href="classuserrec.html#m5">00118</a>         <a class="code" href="classucrec.html">ucrec</a> <a class="code" href="classuserrec.html#m5">chans</a>[MAXCHANS];
00119         
<a name="l00122"></a><a class="code" href="classuserrec.html#m6">00122</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m6">server</a>[256];
00123         
<a name="l00127"></a><a class="code" href="classuserrec.html#m7">00127</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m7">awaymsg</a>[512];
00128         
<a name="l00132"></a><a class="code" href="classuserrec.html#m8">00132</a>         <span class="keywordtype">char</span> <a class="code" href="classuserrec.html#m8">result</a>[256];
00133         
00134         <a class="code" href="classuserrec.html#a0">userrec</a>();
00135         
<a name="l00136"></a><a class="code" href="classuserrec.html#a1">00136</a>         <span class="keyword">virtual</span> <a class="code" href="classuserrec.html#a1">~userrec</a>() {  }
00137         
00142         <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a2">GetFullHost</a>();
00143         
00149         <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classuserrec.html#a3">GetFullRealHost</a>();
00150         
00153         <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);
00154         
00157         <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);
00158         
00163         <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);
00164         
00165 };
00166 
00167 
00168 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Sun Jan 26 23:45:48 2003 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-rc2 </small></address>
</body>
</html>