aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/SystemWindow.h
blob: ad67c7e4599c1b480974b11f740535aacda138cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _LUMINA_DESKTOP_SYSTEM_WINDOW_H
#define _LUMINA_DESKTOP_SYSTEM_WINDOW_H

#include <QDialog>

#include "ui_SystemWindow.h"

namespace Ui{
	class SystemWindow;
};

class SystemWindow : public QDialog{
	Q_OBJECT
public:
	SystemWindow();
	~SystemWindow();

public slots:
	void updateWindow();

private:
	Ui::SystemWindow *ui;

	//void closeAllWindows();
	bool promptAboutUpdates(bool &skip); //main bool return: continue/cancel, skip: skip updates or not

private slots:
	void sysLogout();

	void sysRestart();
	void sysUpdate();
	void sysShutdown();

	void sysSuspend();

	void sysCancel(){
	  this->close();
	}

	void sysLock();
};

#endif
bgstack15