X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreapplication.h;h=3c1e5638000b4173da0fdee61068d067b06ffe40;hb=afc90943c558eaca765530fa90ff8b656dc04a99;hp=11ba7bc46cf77ceeb16eb2bc6c007d4ea2a63600;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b;p=quassel.git diff --git a/src/core/coreapplication.h b/src/core/coreapplication.h index 11ba7bc4..3c1e5638 100644 --- a/src/core/coreapplication.h +++ b/src/core/coreapplication.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,43 +18,25 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COREAPPLICATION_H_ -#define COREAPPLICATION_H_ +#pragma once + +#include #include #include "quassel.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(); - - bool init(); - -private: - bool _coreCreated; -}; - +class Core; -class CoreApplication : public QCoreApplication, public Quassel +class CoreApplication : public QCoreApplication { Q_OBJECT public: CoreApplication(int &argc, char **argv); - ~CoreApplication(); + ~CoreApplication() override; bool init(); private: - CoreApplicationInternal *_internal; + std::unique_ptr _core; }; - - -#endif