OK Folks, my first commit after quite a while, and while Quassel looks the same as...
[quassel.git] / src / common / global.h
index 4285606..efa27aa 100644 (file)
 #define _GLOBAL_H_
 
 /** The protocol version we use fo the communication between core and GUI */
-#define GUI_PROTOCOL 2
+#define GUI_PROTOCOL 3
 
 #define BACKLOG_FORMAT 2
 #define BACKLOG_STRING "QuasselIRC Backlog File"
 
+#define DEFAULT_PORT 4242
+
 class Global;
 
-#include <QtCore>
-//#include <QMutex>
+#include <QHash>
+#include <QMutex>
+#include <QString>
+#include <QVariant>
 
 /* Some global stuff */
 typedef QMap<QString, QVariant> VarMap;
@@ -77,7 +81,7 @@ class Global : public QObject {
     void dataUpdatedRemotely(UserId, QString key);  // sent by remote update only!
 
   public:
-    enum RunMode { Monolithic, GuiOnly, CoreOnly };
+    enum RunMode { Monolithic, ClientOnly, CoreOnly };
     static RunMode runMode;
     static QString quasselDir;
 
@@ -99,6 +103,7 @@ class Global : public QObject {
 
 struct Exception {
     Exception(QString msg = "Unknown Exception") : _msg(msg) {};
+    virtual ~Exception() {}; // make gcc happy
     virtual inline QString msg() { return _msg; }
 
   protected: