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
|
#ifndef LOGINPROMPT_H
#define LOGINPROMPT_H
#include <QWidget>
namespace Ui {
class Widget;
}
namespace QLightDM {
class Greeter;
}
class LoginPrompt : public QWidget
{
Q_OBJECT
public:
explicit LoginPrompt(QLightDM::Greeter* greeter, QWidget *parent = 0);
virtual ~LoginPrompt();
private slots:
void onLoginButtonClicked();
void onAuthenticationComplete(bool success);
void prompt(const QString &message);
private:
QLightDM::Greeter *m_greeter;
Ui::Widget *ui;
};
#endif // WIDGET_H
|