/*! * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * \copyright \n * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n * IN PART OR IN WHOLE, \n * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n * * \file applicationcontroller.h * \date 2019/09/30 * \author Behrouz NematiPour * */ #pragma once // Qt #include #include // Project #include "filehandler.h" #include "applicationpost.h" #include "guicontroller.h" using namespace Storage; using namespace Gui; class ApplicationController : public QObject { Q_OBJECT static ApplicationController *_instance; ApplicationPost *_applicationPost = nullptr; FileHandler *_fileHandler = nullptr; QPointer _guiController; explicit ApplicationController(QObject *parent = nullptr); bool event(QEvent *event) override; public: static ApplicationController *I(); bool init(); signals: void quit(int retcode=0); private slots: void UiInitialized(bool ok); };