1 // DCCConnection.H -*- C++ -*-
2 // Copyright (c) 1998 Etienne BERNARD
3 // Copyright (c) 2002,2003 Clinton Ebadi
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
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.
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.
19 #ifndef DCCCONNECTION_H
20 #define DCCCONNECTION_H
24 #include "Connection.H"
26 #include "DCCPerson.H"
31 class DCCConnection : public Connection {
35 std::time_t lastSpoken;
37 DCCConnection (unsigned long, int);
40 DCCConnection(Bot *, String, unsigned long, int);
42 virtual bool connect()=0;
43 virtual bool handleInput()=0;
45 virtual void sendNotice(String)=0;
48 virtual Bot* get_bot () const { return bot; };
49 virtual std::time_t get_lastSpoken () const { return lastSpoken; };
50 virtual bool get_autoRemove () const { return autoRemove; };
51 virtual String get_nuh () const { return nuh;};
53 virtual void set_autoRemove (bool new_ar) { autoRemove = new_ar;};
56 // friend class DCCPerson;
57 // friend class DCCParser;
58 // friend class UserCommands;
59 // friend class DCCManager;