X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=a63dfe07f0f86eba6684823224005029f4ce3fe0;hb=c55df5f2d765b100b7a1ead5a72202f969aa9581;hp=b68ac4868d90199c11df402f4484edf2a022abda;hpb=b5dfd31e3d1ad7ca4bfe8262b62be259f6dc786a;p=quassel.git diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index b68ac486..a63dfe07 100644 --- a/src/qtui/monoapplication.h +++ b/src/qtui/monoapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -20,23 +20,38 @@ #pragma once +#include +#include + #include "qtuiapplication.h" -class CoreApplicationInternal; +class Core; +class InternalPeer; class MonolithicApplication : public QtUiApplication { Q_OBJECT + public: MonolithicApplication(int &, char **); - ~MonolithicApplication(); - bool init() override; + void init() override; + +protected: + Quassel::QuitHandler quitHandler() override; + +signals: + void connectInternalPeer(QPointer peer); private slots: + void onConnectionRequest(QPointer peer); + void onClientDestroyed(); + void onCoreShutdown(); + +private: void startInternalCore(); private: - CoreApplicationInternal *_internal; - bool _internalInitDone; + QPointer _core; + QThread _coreThread; };