1 /***************************************************************************
2 * Copyright (C) 2005 by The Quassel Team *
3 * devel@quassel-irc.org *
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 * (at your option) any later version. *
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 *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
24 /** The protocol version we use fo the communication between core and GUI */
25 #define GUI_PROTOCOL 3
27 #define BACKLOG_FORMAT 2
28 #define BACKLOG_STRING "QuasselIRC Backlog File"
30 #define DEFAULT_PORT 4242
37 /* Some global stuff */
41 typedef uint BufferId;
42 typedef uint NetworkId;
45 enum RunMode { Monolithic, ClientOnly, CoreOnly };
46 extern RunMode runMode;
50 Exception(QString msg = "Unknown Exception") : _msg(msg) {};
51 virtual ~Exception() {}; // make gcc happy
52 virtual inline QString msg() { return _msg; }