~mterry/+junk/u8.2

« back to all changes in this revision

Viewing changes to plugins/LightDM/DBusGreeter.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_DBUSGREETER_H
18
18
#define UNITY_DBUSGREETER_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 DBusGreeter : public QObject
 
28
class DBusGreeter : public UnityDBusObject
29
29
{
30
30
    Q_OBJECT
31
31
    Q_CLASSINFO("D-Bus Interface", "com.canonical.UnityGreeter")
33
33
    Q_PROPERTY(bool IsActive READ isActive NOTIFY isActiveChanged) // since 14.10
34
34
 
35
35
public:
36
 
    explicit DBusGreeter(Greeter *greeter, const QDBusConnection &connection, const QString &path);
 
36
    explicit DBusGreeter(Greeter *greeter, const QString &path);
37
37
 
38
38
    bool isActive() const;
39
39
    Q_SCRIPTABLE void ShowGreeter(); // temporary, until we split the greeter again
44
44
 
45
45
private Q_SLOTS:
46
46
    void isActiveChangedHandler();
47
 
    void notifyPropertyChanged(const QString &propertyName, const QVariant &value);
48
47
 
49
48
private:
50
49
    Greeter *m_greeter;
51
 
    QDBusConnection m_connection;
52
 
    QString m_path;
53
50
};
54
51
 
55
52
#endif