X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=main%2Fmain_mono.cpp;h=b935a12842fa8a7a256bb34443b6d6ef8ade45f2;hp=9d3e5789415349ab4f2d7dfe12d9bad01be78d8e;hb=84516825d33a1b448a894eaf2e804cabb032f5f1;hpb=bab358d776c74a37a54297125d50ba4c5117205d diff --git a/main/main_mono.cpp b/main/main_mono.cpp index 9d3e5789..b935a128 100644 --- a/main/main_mono.cpp +++ b/main/main_mono.cpp @@ -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 * @@ -22,8 +22,10 @@ #include +#include "core.h" #include "quassel.h" #include "logger.h" +#include "proxy.h" #include "mainwin.h" @@ -39,7 +41,20 @@ int main(int argc, char **argv) { QApplication::setApplicationName("Quassel IRC"); QApplication::setOrganizationName("The Quassel Team"); + Core::init(); + MainWin mainWin; mainWin.show(); return app.exec(); } + +QVariant proxyConnect(uint func, QVariant arg) { + using namespace Proxy; + + switch(func) { + case LOAD_IDENTITIES: return (QVariant) CoreProxy::loadIdentities(); + case STORE_IDENTITIES: CoreProxy::storeIdentities(arg.toMap()); return 0; + + } + return 0; +}