~ubuntu-branches/ubuntu/quantal/lightdm-kde/quantal

« back to all changes in this revision

Viewing changes to greeter/configwrapper.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-04-18 15:20:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120418152054-ahcwjazzqvda1u5n
Tags: 0.1.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define CONFIGWRAPPER_H
21
21
 
22
22
#include <QObject>
23
 
#include <KSharedConfig>
 
23
#include <QDir>
 
24
 
 
25
#include <Plasma/ConfigLoader>
 
26
 
24
27
 
25
28
/** This class exposes the lightdm-kde config to QML*/
26
29
 
28
31
{
29
32
    Q_OBJECT
30
33
public:
31
 
    explicit ConfigWrapper(QObject *parent = 0);
 
34
    explicit ConfigWrapper(const KUrl &kcfgPath, QObject *parent = 0);
32
35
 
33
 
    Q_INVOKABLE QVariant readEntry(const QString &key, const QVariant &aDefault=QVariant()) const;
 
36
    Q_INVOKABLE QVariant readEntry(const QString &key) const;
34
37
 
35
38
private:
36
 
    KSharedConfigPtr m_config;
 
39
    Plasma::ConfigLoader *m_config;
37
40
 
38
41
};
39
42