#ifndef MAINCONTROLLER_H
#define MAINCONTROLLER_H
/*
 * Copyright (C) 2020, KylinSoft Co., Ltd.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
#pragma once
#include <QObject>
#include <QTimer>
#include <QSettings>
#include <QWidget>
#include <QList>
#include <QGuiApplication>
#include <QSize>
#ifdef SW_TARGET
    #include "guide-widget-sw.h"
#else
    #include "guide-widget.h"
#endif
#include "ipc/ipc_dbus.h"

class MainController : public QObject
{
    Q_OBJECT
public:
    static MainController* self();
    void startShowApp();
    bool isSwArchitecture();
    virtual ~MainController();
private:
    explicit MainController();
private:
    static MainController *mSelf;
#if SW_TARGET
    GuideWidgetSW *guideWidgetSW;
#else
    GuideWidget *guideWidget;
#endif
    IpcDbus *ipcDbus;
    Qt::WindowFlags flags;
    QString configFilePath;
public slots:
    void showGuide(QString appName);
    void showGuide();
    void setwindowFlags();
};
#endif //MAINCONTROLLER_H
