diff options
Diffstat (limited to 'lumina-desktop/SystemWindow.h')
-rw-r--r-- | lumina-desktop/SystemWindow.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/lumina-desktop/SystemWindow.h b/lumina-desktop/SystemWindow.h new file mode 100644 index 00000000..c8d70c71 --- /dev/null +++ b/lumina-desktop/SystemWindow.h @@ -0,0 +1,56 @@ +#ifndef _LUMINA_DESKTOP_SYSTEM_WINDOW_H +#define _LUMINA_DESKTOP_SYSTEM_WINDOW_H + +#include <QDialog> +#include <QCoreApplication> +#include <QDesktopWidget> +#include <QList> + +#include "ui_SystemWindow.h" +#include "Globals.h" + +#include <LuminaXDG.h> +#include <LuminaX11.h> +#include <LuminaOS.h> + + + +namespace Ui{ + class SystemWindow; +}; + +class SystemWindow : public QDialog{ + Q_OBJECT +public: + SystemWindow(); + ~SystemWindow(); + +private: + Ui::SystemWindow *ui; + + void closeAllWindows(); + +private slots: + void sysLogout(){ + closeAllWindows(); + QCoreApplication::exit(0); + } + + void sysRestart(){ + closeAllWindows(); + LOS::systemRestart(); + QCoreApplication::exit(0); + } + + void sysShutdown(){ + closeAllWindows(); + LOS::systemShutdown(); + QCoreApplication::exit(0); + } + + void sysCancel(){ + this->close(); + } +}; + +#endif
\ No newline at end of file |