X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=59e9549a55f931d0294302d7815bf86a59d33b0d;hp=302a39df419a23f33ad016b305e967fbdf0e1493;hb=358e5d557d527675c7bc62e58a4c7ad3b408897c;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index 302a39df..59e9549a 100644 --- a/src/qtui/monoapplication.h +++ b/src/qtui/monoapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 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,36 @@ * 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(); + ~MonolithicApplication() override; - bool init(); + bool init() override; + +signals: + void connectInternalPeer(QPointer peer); private slots: + void onConnectionRequest(QPointer peer); + +private: void startInternalCore(); private: - CoreApplicationInternal *_internal; - bool _internalInitDone; + QPointer _core; + QThread _coreThread; }; - - -#endif