Make BufferInfo qDebug()able as per EgS' request.
[quassel.git] / src / common / main.cpp
index 7880e0c..00d7c86 100644 (file)
@@ -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 <QString>
 #include <QTranslator>
@@ -32,7 +33,6 @@
 #include <QApplication>
 #include "client.h"
 #include "qtui.h"
-#include "style.h"
 
 #elif defined BUILD_MONO
 #include <QApplication>
@@ -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