X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.h;h=f2f076fc012dcfe764b62e07d7a4b9a467fba8ca;hp=af53d88b8116d19fa54f62a57434f25a33b23f10;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=68878dc8366f2f4a0afe132847aad9a51a80cdbf diff --git a/src/core/coreapplication.h b/src/core/coreapplication.h index af53d88b..f2f076fc 100644 --- a/src/core/coreapplication.h +++ b/src/core/coreapplication.h @@ -20,37 +20,29 @@ #pragma once -#include - -#include "quassel.h" +#include "core-export.h" -/// Encapsulates CoreApplication's logic. -/** This allows it to be reused within MonolithicApplication as well. - */ -class CoreApplicationInternal -{ - Q_DECLARE_TR_FUNCTIONS(CoreApplicationInternal) - -public: - CoreApplicationInternal(); - ~CoreApplicationInternal(); +#include - bool init(); +#include -private: - bool _coreCreated; -}; +#include "core.h" +#include "quassel.h" +class Core; -class CoreApplication : public QCoreApplication +class CORE_EXPORT CoreApplication : public QCoreApplication { Q_OBJECT + public: - CoreApplication(int &argc, char **argv); - ~CoreApplication(); + CoreApplication(int& argc, char** argv); + + void init(); - bool init(); +private slots: + void onShutdownComplete(); private: - CoreApplicationInternal *_internal; + std::unique_ptr _core; };