X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=59e9549a55f931d0294302d7815bf86a59d33b0d;hb=5fc6f7e2d63b45770574260afd6ce535e9548d23;hp=405034240590b6dd3170f3505f3b3d0a3a761b75;hpb=f4ae0007ac4524612ae73a778ca491659cf22393;p=quassel.git diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index 40503424..59e9549a 100644 --- a/src/qtui/monoapplication.h +++ b/src/qtui/monoapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,28 +15,39 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef MONOAPPLICATION_H_ -#define MONOAPPLICATION_H_ +#pragma once + +#include +#include #include "qtuiapplication.h" -class ClientSyncer; -class CoreApplicationInternal; +class Core; +class InternalPeer; + +class MonolithicApplication : public QtUiApplication +{ + Q_OBJECT -class MonolithicApplication : public QtUiApplication { public: - MonolithicApplication(int &, char **); - ~MonolithicApplication(); + MonolithicApplication(int &, char **); + ~MonolithicApplication() override; + + bool init() override; + +signals: + void connectInternalPeer(QPointer peer); - bool init(); - bool startInternalCore(); - void connectClientSyncer(ClientSyncer *syncer); +private slots: + void onConnectionRequest(QPointer peer); private: - CoreApplicationInternal *_internal; -}; + void startInternalCore(); -#endif +private: + QPointer _core; + QThread _coreThread; +};