X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fmain.cpp;h=00d7c86ecb2e4f84b79382e19fa64a1fa93a0ab8;hp=7880e0caf70d5b700b53a8cbfb93048763e70ca6;hb=45d9ea6ed5d64eec3ca351fdcf7610c7cff3529d;hpb=7ee03b94132fcd5706e98db72de76c13cb977666 diff --git a/src/common/main.cpp b/src/common/main.cpp index 7880e0ca..00d7c86e 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel IRC Development Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -18,6 +18,7 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include "global.h" #include "settings.h" #include #include @@ -32,7 +33,6 @@ #include #include "client.h" #include "qtui.h" -#include "style.h" #elif defined BUILD_MONO #include @@ -40,7 +40,6 @@ #include "core.h" #include "coresession.h" #include "qtui.h" -#include "style.h" #else #error "Something is wrong - you need to #define a build mode!" @@ -87,7 +86,6 @@ int main(int argc, char **argv) { QCoreApplication::setApplicationName("Quassel IRC"); QCoreApplication::setOrganizationName("Quassel IRC Development Team"); - Global::quasselDir = QDir::homePath() + "/.quassel"; #ifndef BUILD_QTUI Core::instance(); // create and init the core #endif @@ -95,7 +93,6 @@ int main(int argc, char **argv) { //Settings::init(); #ifndef BUILD_CORE - Style::init(); QtUi *gui = new QtUi(); Client::init(gui); gui->init(); @@ -116,29 +113,3 @@ int main(int argc, char **argv) { return exitCode; } - -#ifdef BUILD_QTUI -QVariant Client::connectToLocalCore(QString, QString) { return QVariant(); } -void Client::disconnectFromLocalCore() {} - -#elif defined BUILD_MONO -QVariant Client::connectToLocalCore(QString user, QString passwd) { - // TODO catch exceptions - /* - QVariant reply = Core::connectLocalClient(user, passwd); - QObject::connect(Core::localSession(), SIGNAL(proxySignal(CoreSignal, QVariant, QVariant, QVariant)), ClientProxy::instance(), SLOT(recv(CoreSignal, QVariant, QVariant, QVariant))); - QObject::connect(ClientProxy::instance(), SIGNAL(send(ClientSignal, QVariant, QVariant, QVariant)), Core::localSession(), SLOT(processSignal(ClientSignal, QVariant, QVariant, QVariant))); - return reply; - */ - return QVariant(); -} - -void Client::disconnectFromLocalCore() { - /* - disconnect(Core::localSession(), 0, ClientProxy::instance(), 0); - disconnect(ClientProxy::instance(), 0, Core::localSession(), 0); - Core::disconnectLocalClient(); - */ -} - -#endif