Testing the CIA bot.
[quassel.git] / main / main_core.cpp
1 /***************************************************************************
2  *   Copyright (C) 2005/06 by The Quassel Team                             *
3  *   devel@quassel-irc.org                                                 *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20 #include <iostream>
21
22 #include <QCoreApplication>
23 #include <QtNetwork>
24 #include <QtCore>
25 #include <QtDebug>
26
27 #include "global.h"
28 #include "core.h"
29 #include "coreproxy.h"
30 #include "util.h"
31
32 int main(int argc, char **argv) {
33   QCoreApplication app(argc, argv);
34   QCoreApplication::setOrganizationDomain("quassel-irc.org");
35   QCoreApplication::setApplicationName("Quassel IRC");
36   QCoreApplication::setOrganizationName("The Quassel Team");
37
38   Global::runMode = Global::CoreOnly;
39   Global::quasselDir = QDir::homePath() + "/.quassel";
40
41   global = new Global();
42   coreProxy = new CoreProxy();
43
44   //Logger *logger = new Logger();
45   //Quassel::setLogger(logger);
46
47   int exitCode = app.exec();
48   delete core;
49   delete coreProxy;
50   delete global;
51   return exitCode;
52 }
53
54 void CoreProxy::sendToGUI(CoreSignal, QVariant, QVariant, QVariant) {
55   // dummy function, no GUI available!
56 }
57