X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=d3813816ab3c0a1a4eefe44b919e69ab4e326f5d;hp=198e76be4b8fb6d1cbfd29c99d5644da2efef6f8;hb=22c5ee283d275d03e86250ed214ac91868b8de26;hpb=4df8d4afa450d4686bc4321b399bcb244f04d220 diff --git a/src/common/main.cpp b/src/common/main.cpp index 198e76be..d3813816 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -52,14 +52,16 @@ Q_IMPORT_PLUGIN(qgif) int main(int argc, char **argv) { - // Setup build information and version string - # include "version.gen" - buildinfo.append(QString(",%1,%2").arg(__DATE__, __TIME__)); - Quassel::setupBuildInfo(buildinfo); + Quassel::setupBuildInfo(); QCoreApplication::setApplicationName(Quassel::buildInfo().applicationName); QCoreApplication::setOrganizationName(Quassel::buildInfo().organizationName); QCoreApplication::setOrganizationDomain(Quassel::buildInfo().organizationDomain); + // on OSX with Qt4, raster seems to fix performance issues +#if QT_VERSION < 0x050000 && defined Q_OS_MAC && !defined BUILD_CORE + QApplication::setGraphicsSystem("raster"); +#endif + AbstractCliParser *cliParser; #ifdef HAVE_KDE @@ -115,6 +117,10 @@ int main(int argc, char **argv) cliParser->addOption("change-userpass ", 0, "Starts an interactive session to change the password of the user identified by username"); cliParser->addSwitch("oidentd", 0, "Enable oidentd integration"); cliParser->addOption("oidentd-conffile ", 0, "Set path to oidentd configuration file"); +#ifdef HAVE_SSL + cliParser->addSwitch("require-ssl", 0, "Require SSL for client connections"); +#endif + cliParser->addSwitch("enable-experimental-dcc", 0, "Enable highly experimental and unfinished support for CTCP DCC (DANGEROUS)"); #endif #ifdef HAVE_KDE