1 // ServerQueueItem.H -*- C++ -*-
2 // Copyright (c) 1998 Etienne BERNARD
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
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef SERVERQUEUEITEM_H
19 #define SERVERQUEUEITEM_H
21 class ServerQueueItem {
23 int priority, penalty, type;
26 CHANNELMODE, USERMODE, INVITE, JOIN, KICK,
27 NICK, NOTICE, PART, PASS, PING, PONG, PRIVMSG,
28 QUIT, TOPIC, USER, USERHOST, WHO, WHOIS, OTHER
31 ServerQueueItem(int, int, int);
32 virtual ~ServerQueueItem() { }
34 virtual bool merge(ServerQueueItem *) { return false; }
35 virtual String getLine() = 0;
37 friend class ServerQueue;
40 ServerQueueItem(const ServerQueueItem &);
44 class ServerQueueOtherItem : public ServerQueueItem {
48 ServerQueueOtherItem(String, int, int, int);
52 class ServerQueueChannelModeItem : public ServerQueueItem {
59 ServerQueueChannelModeItem(String, String, String);
60 bool merge(ServerQueueItem *);
64 class ServerQueueKickItem : public ServerQueueItem {
71 ServerQueueKickItem(String, String, String);
72 bool merge(ServerQueueItem *);
76 class ServerQueueNoticeItem : public ServerQueueItem {
82 ServerQueueNoticeItem(String, String);
83 bool merge(ServerQueueItem *);