#ifndef _LUMINA_DESKTOP_SYSTEM_WINDOW_H #define _LUMINA_DESKTOP_SYSTEM_WINDOW_H #include #include #include #include #include #include "ui_SystemWindow.h" #include "Globals.h" #include #include #include 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(); } void sysLock(){ qDebug() << "Locking the desktop..."; QProcess::startDetached("xscreensaver-command -lock"); this->close(); } }; #endif