X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=a63dfe07f0f86eba6684823224005029f4ce3fe0;hp=6213ef945c08e4279833893d194e07fdf6cfb765;hb=d438145b28f34b7fdbc7e290aa001e5f3f922207;hpb=695758015a80eb8c158a9ac4c0f1c0b547e70df3 diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index 6213ef94..a63dfe07 100644 --- a/src/qtui/monoapplication.h +++ b/src/qtui/monoapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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 * @@ -18,29 +18,40 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef MONOAPPLICATION_H_ -#define MONOAPPLICATION_H_ +#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(); + 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; }; - - -#endif