~lightdm-team/lightdm/1.4

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
#ifndef QLIGHTDM_CONFIG_H
#define QLIGHTDM_CONFIG_H

#include <QtCore/QObject>
#include <QtCore/QStringList>

/** A wrapper around the lightDM config file
    Returns sensible default values if not in the config file.
*/

class ConfigPrivate;

//Logic for loading file name should be here.
//For bonus points it should be async.

namespace QLightDM
{

class Q_DECL_EXPORT Config : public QObject
{
    Q_OBJECT
public:
    explicit Config(QString filePath, QObject *parent = 0);
    ~Config();

    int minimumUid() const;
    QStringList hiddenUsers() const;
    QStringList hiddenShells() const;
    bool loadUsers() const;

signals:

public slots:

private:
    ConfigPrivate *d;
};

};

#endif // CONFIG_H