Big refactoring completed. Everything prepared for the separation of core and gui.
[quassel.git] / main / main_mono.cpp
index 9d3e578..49078c1 100644 (file)
@@ -1,7 +1,7 @@
 /***************************************************************************
  *   Copyright (C) 2005 by The Quassel 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     *
 
 #include <QApplication>
 
+#include "core.h"
 #include "quassel.h"
-#include "logger.h"
+#include "guiproxy.h"
 
 #include "mainwin.h"
 
 int main(int argc, char **argv) {
-
-  Quassel::init();
-  Logger *logger = new Logger();
-  Quassel::setLogger(logger);
-
   QApplication app(argc, argv);
-
   QApplication::setOrganizationDomain("quassel-irc.org");
   QApplication::setApplicationName("Quassel IRC");
   QApplication::setOrganizationName("The Quassel Team");
 
+  Quassel::runMode = Quassel::Monolithic;
+  quassel = Quassel::init();
+  core = Core::init();
+  guiProxy = GUIProxy::init();
+  // coreProxy = CoreProxy::init();
+
   MainWin mainWin;
   mainWin.show();
-  return app.exec();
+  int exitCode = app.exec();
+  delete guiProxy;
+  delete quassel;
+}
+
+void GUIProxy::send(GUISignal sig, QVariant arg1, QVariant arg2, QVariant arg3) {
+
+
+
+}
+
+void GUIProxy::recv(CoreSignal sig, QVariant arg1, QVariant arg2, QVariant arg3) {
+
+
+
 }