aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop-unified/src-WM/LLockScreen.h
blob: 040499c1fb5c3afd80d48e7e2e5fe5e53f85ceab (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
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2015, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_LOCK_SCREEN_WIDGET_H
#define _LUMINA_DESKTOP_LOCK_SCREEN_WIDGET_H

#include "GlobalDefines.h"

namespace Ui{
	class LLockScreen;
};

class LLockScreen : public QWidget{
	Q_OBJECT
public:
	LLockScreen(QWidget *parent = 0);
	~LLockScreen();

	void LoadSystemDetails(); //Run right after the screen is initially locked

public slots:
	void aboutToHide(); //auto-hide timeout (can happen multiple times per lock)
	void aboutToShow(); //about to be re-shown (can happen multiple times per lock)

private:
	Ui::LLockScreen *ui;
	int triesleft, attempts;
	QTimer *waittime;
	QTimer *refreshtime;

private slots:
	void UpdateLockInfo();
	void TryUnlock();
	
signals:
	void ScreenUnlocked();
	void InputDetected();
};
#endif
bgstack15