-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgreeterutil.h
More file actions
executable file
·49 lines (40 loc) · 1.01 KB
/
greeterutil.h
File metadata and controls
executable file
·49 lines (40 loc) · 1.01 KB
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
44
45
46
47
48
49
#ifndef GREETERUTIL_H
#define GREETERUTIL_H
#include <QDebug>
#include <QObject>
#include <QGuiApplication>
#include <QModelIndex>
#include <QString>
#include <QStringList>
#include <QMetaObject>
#include <QLightDM/greeter.h>
#include <QLightDM/power.h>
#include <QLightDM/sessionsmodel.h>
#include <QLightDM/usersmodel.h>
#include "abstractutil.h"
#include "settings.h"
class GreeterUtil : public AbstractUtil
{
Q_OBJECT
private:
QLightDM::Greeter greeter;
QLightDM::PowerInterface power;
QLightDM::SessionsModel sessionsModel;
QLightDM::UsersModel userModel;
void clearPassword();
private slots:
void authenticationComplete();
void onPrompt(QString, QLightDM::Greeter::PromptType);
public:
GreeterUtil(QGuiApplication *app);
Settings *settings;
QString session;
QString user;
QStringList sessions;
QStringList usernames;
void authenticateUser(QString username);
void response(QString password);
void shutdown();
QObject *obj;
};
#endif // GREETERUTIL_H