43 lines
845 B
C++
43 lines
845 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2023 Unisoc (Shanghai) Technologies Co., Ltd.
|
|
*
|
|
* SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0
|
|
*/
|
|
|
|
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QListWidgetItem>
|
|
#include <QString>
|
|
|
|
class appManager;
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
namespace Ui { class MainWindow; }
|
|
QT_END_NAMESPACE
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
public slots:
|
|
void runApp();
|
|
void killApp(void);
|
|
void killAllApp(void);
|
|
void SetMainWindowOn(){
|
|
setWindowState(Qt::WindowMaximized);
|
|
}
|
|
void SetMainWindowOff(){
|
|
setWindowState(Qt::WindowMinimized);
|
|
}
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
appManager *m_appManager;
|
|
};
|
|
#endif // MAINWINDOW_H
|