~mterry/+junk/u8.2

« back to all changes in this revision

Viewing changes to plugins/LightDM/DBusGreeterList.h

  • Committer: Michael Terry
  • Date: 2014-11-17 14:56:04 UTC
  • mfrom: (1317.1.118 unity8)
  • Revision ID: michael.terry@canonical.com-20141117145604-96dn9p5nwkifq2f4
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef UNITY_DBUSGREETERLIST_H
18
18
#define UNITY_DBUSGREETERLIST_H
19
19
 
 
20
#include "unitydbusobject.h"
20
21
#include <QDBusConnection>
21
 
#include <QObject>
22
22
 
23
23
class Greeter;
24
24
 
25
25
/** This is an internal class used to talk with the indicators.
26
26
  */
27
27
 
28
 
class DBusGreeterList : public QObject
 
28
class DBusGreeterList : public UnityDBusObject
29
29
{
30
30
    Q_OBJECT
31
31
    Q_CLASSINFO("D-Bus Interface", "com.canonical.UnityGreeter.List")
34
34
    Q_PROPERTY(bool EntryIsLocked READ entryIsLocked NOTIFY entryIsLockedChanged) // since 14.04
35
35
 
36
36
public:
37
 
    explicit DBusGreeterList(Greeter *greeter, const QDBusConnection &connection, const QString &path);
 
37
    explicit DBusGreeterList(Greeter *greeter, const QString &path);
38
38
 
39
39
    Q_SCRIPTABLE void SetActiveEntry(const QString &entry); // since 13.04
40
40
    Q_SCRIPTABLE QString GetActiveEntry() const; // since 13.10
49
49
private Q_SLOTS:
50
50
    void authenticationUserChangedHandler(const QString &user);
51
51
    void promptlessChangedHandler();
52
 
    void notifyPropertyChanged(const QString &propertyName, const QVariant &value);
53
52
 
54
53
private:
55
54
    Greeter *m_greeter;
56
 
    QDBusConnection m_connection;
57
 
    QString m_path;
58
55
};
59
56
 
60
57
#endif