[project @ 2002-07-07 02:33:51 by unknown_lamer]
[clinton/bobotpp.git] / source / User.H
CommitLineData
cb21075d 1// User.H -*- C++ -*-
2// Copyright (c) 1997, 1998 Etienne BERNARD
3
4// This program is free software; you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation; either version 2 of the License, or
7// any later version.
8
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17
18#ifndef USER_H
19#define USER_H
20
21#include "UserList.H"
22#include "UserListItem.H"
23
24class Bot;
25class Utils;
26class Parser;
27class Channel;
28class Commands;
29class UserCommands;
30
31class User {
32
33 int mode;
34 int floodNum;
35 UserListItem * userListItem;
36 String nick;
37 String userhost;
38 String userkey;
39
40public:
41 enum {
42 OP_MODE = 1,
43 VOICE_MODE = 2,
44 AWAY_MODE = 4,
45 IRCOP_MODE = 8
46 };
47
48 enum {
49 NONE = 0,
50 USER = 1,
51 TRUSTED_USER = 2,
52 FRIEND = 3,
53 MASTER = 4
54 };
55
56 enum {
57 NO_PROT = 0,
58 NO_BAN = 1,
59 NO_KICK = 2,
60 NO_DEOP = 3
61 };
62
63 User(String, String, String, int, UserList *);
64 User(String, int);
65
66 int getLevel();
67 int getProt();
68 bool getAop();
69
70 friend class Bot;
71 friend class Utils;
72 friend class Parser;
73 friend class Channel;
74 friend class Commands;
75 friend class UserCommands;
76};
77
78#endif