~unity-2d-team/unity-2d/window-focus-fixes

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/dashclient.h

  • Committer: Tarmac
  • Author(s): Gerry Boland, Michał Sawicz
  • Date: 2012-02-28 11:30:52 UTC
  • mfrom: (915.1.61 hud-qml)
  • Revision ID: tarmac-20120228113052-ko3v4z076cq2aanr
Add HUD to Unity 2D

Known issue:
- on switching between Dash & Hud (tap Alt, then Super, then Alt...) blurred background image will contain Hud/Dash.. Fixes: https://bugs.launchpad.net/bugs/942045. Approved by Albert Astals Cid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
/**
33
33
 * Monitors the dash and provide a single point of entry to its status
 
34
 * TODO: rename to reflect transition to Shell.
34
35
 */
35
36
class DashClient : public QObject
36
37
{
37
38
    Q_OBJECT
38
39
    Q_PROPERTY(bool alwaysFullScreen READ alwaysFullScreen NOTIFY alwaysFullScreenChanged)
39
40
    Q_PROPERTY(bool active READ active WRITE setActive NOTIFY activeChanged)
 
41
    Q_PROPERTY(bool hudActive READ hudActive WRITE setHudActive NOTIFY hudActiveChanged)
40
42
 
41
43
public:
42
44
    static DashClient* instance();
43
45
 
44
46
    bool active() const;
45
47
    void setActive(bool active);
 
48
    bool hudActive() const;
 
49
    void setHudActive(bool active);
46
50
 
47
51
    bool alwaysFullScreen() const;
48
52
 
49
53
Q_SIGNALS:
50
54
    void activeChanged(bool);
51
55
    void alwaysFullScreenChanged();
 
56
    void hudActiveChanged(bool);
52
57
 
53
58
private Q_SLOTS:
54
59
    void connectToDash();
55
60
    void slotDashActiveChanged(bool);
 
61
    void slotHudActiveChanged(bool);
56
62
    void slotAlwaysFullScreenChanged(bool);
57
63
 
58
64
private:
60
66
 
61
67
    QDBusInterface* m_dashDbusIface;
62
68
    bool m_dashActive;
 
69
    bool m_hudActive;
63
70
    bool m_alwaysFullScreen;
64
71
};
65
72