X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fmonoapplication.h;h=a63dfe07f0f86eba6684823224005029f4ce3fe0;hb=6718d7a1ccd42d7aae75e57d6974e0b1e0384044;hp=086bb473dc98281598413306906894a4f84318d0;hpb=1d9dfeff6b2531ff99e0d12669b3a1dae393e768;p=quassel.git diff --git a/src/qtui/monoapplication.h b/src/qtui/monoapplication.h index 086bb473..a63dfe07 100644 --- a/src/qtui/monoapplication.h +++ b/src/qtui/monoapplication.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 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 * @@ -15,30 +15,43 @@ * 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 CoreApplicationInternal; +class Core; +class InternalPeer; + +class MonolithicApplication : public QtUiApplication +{ + Q_OBJECT -class MonolithicApplication : public QtUiApplication { - Q_OBJECT public: - MonolithicApplication(int &, char **); - ~MonolithicApplication(); + MonolithicApplication(int &, char **); + + void init() override; + +protected: + Quassel::QuitHandler quitHandler() override; - bool init(); +signals: + void connectInternalPeer(QPointer peer); private slots: - void startInternalCore(); + void onConnectionRequest(QPointer peer); + void onClientDestroyed(); + void onCoreShutdown(); private: - CoreApplicationInternal *_internal; - bool _internalInitDone; -}; + void startInternalCore(); -#endif +private: + QPointer _core; + QThread _coreThread; +};