[project @ 2002-07-07 02:33:51 by unknown_lamer]
[clinton/bobotpp.git] / source / DCCConnection.H
CommitLineData
cb21075d 1// DCCConnection.H -*- C++ -*-
2// Copyright (c) 1998 Etienne BERNARD
3// Copyright (c) 2002 Clinton Ebadi
4
5// This program is free software; you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation; either version 2 of the License, or
8// any later version.
9
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18
19#ifndef DCCCONNECTION_H
20#define DCCCONNECTION_H
21
22#include <ctime>
23
24#include "Connection.H"
25#include "Bot.H"
26
27class DCCPerson;
28class UserCommands;
29
30class DCCConnection : public Connection {
31 Bot *bot;
32 String nuh;
33 std::time_t lastSpoken;
34 bool autoRemove;
35
36public:
37 DCCConnection(Bot *, String, unsigned long, int);
38
39 bool connect();
40 bool handleInput();
41
42 void sendNotice(String);
43
44 friend class Bot;
45 friend class DCCPerson;
46 friend class DCCParser;
47 friend class UserCommands;
48};
49
50#endif