Directly take a Mask instead of a String in BanEntry
[clinton/bobotpp.git] / source / DCCPerson.H
CommitLineData
cb21075d 1// DCCPerson.H -*- C++ -*-
2// Copyright (c) 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
39b022cb 16// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cb21075d 17
18#ifndef DCCPERSON_H
19#define DCCPERSON_H
20
cb21075d 21#include "Person.H"
cfa82921 22#include "String.H"
c3ecc559 23#include "UserCommands.H"
cb21075d 24
cfa82921 25class DCCConnection;
26
cb21075d 27class DCCPerson : public Person {
28 DCCConnection *dcc;
29public:
30 DCCPerson(DCCConnection *);
31 DCCPerson(DCCPerson &);
32
33 Person * copy();
34
6530edbf 35 // String getNick() const;
36 // String getAddress() const;
cb21075d 37
38 void keepAlive();
6530edbf 39 bool handleInput ();
cb21075d 40
41 void sendNotice(String);
c3ecc559 42
43 friend class Bot;
44 friend class DCCManager;
45 friend void
46 UserCommands::DCCList (ServerConnection *, Person *,
47 String, String);
cb21075d 48};
49
50#endif