X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=59e9549a55f931d0294302d7815bf86a59d33b0d;hb=5fc6f7e2d63b45770574260afd6ce535e9548d23;hp=6e7b90220903dfea873ae6b9df1d336763d5140f;hpb=25a3ae50ac0d9835283e4f5f10fcfcc10ed5575d;p=quassel.git diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index 6e7b9022..59e9549a 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 * @@ -18,38 +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; - /** - * Requests a reload of relevant runtime configuration. - * - * @see Quassel::reloadConfig() - * - * @return True if configuration reload successful, otherwise false - */ - bool reloadConfig(); +signals: + void connectInternalPeer(QPointer peer); private slots: + void onConnectionRequest(QPointer peer); + +private: void startInternalCore(); private: - CoreApplicationInternal *_internal; - bool _internalInitDone; + QPointer _core; + QThread _coreThread; }; - - -#endif