X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fglobal.h;h=777be21521d242f59a59250413c0ff09b8662fd2;hb=2f953e817b56e8dfd3770b2109b3a81b0854f3a8;hp=dadbb91f6f3a771ed9ded35eb8334ba87ee35c24;hpb=21d8d7f0a79eeeb541664aa80ce481fdbfc41f09;p=quassel.git diff --git a/src/common/global.h b/src/common/global.h index dadbb91f..777be215 100644 --- a/src/common/global.h +++ b/src/common/global.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005 by the Quassel Project * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,14 +28,21 @@ // Enable some shortcuts and stuff //#define DEVELMODE -/** The protocol version we use fo the communication between core and GUI */ -#define GUI_PROTOCOL 4 - -//#define DEFAULT_PORT 4242 - /* Some global stuff */ namespace Global { + + extern QString quasselVersion; + extern QString quasselBaseVersion; + extern QString quasselBuildDate; + extern QString quasselBuildTime; + extern uint protocolVersion; + + extern uint clientNeedsProtocol; //< Minimum protocol version the client needs + extern uint coreNeedsProtocol; //< Minimum protocol version the core needs + + extern QString quasselGeneratedVersion; //< This is possibly set in version.gen + // We need different config (QSettings) files for client and gui, since the core cannot work with GUI types // Set these here. They're used in ClientSettings and CoreSettings. const QString coreApplicationName = "Quassel Core"; @@ -45,7 +52,10 @@ namespace Global { extern RunMode runMode; extern unsigned int defaultPort; + extern bool DEBUG; + void registerMetaTypes(); -} + void setupVersion(); +}; #endif