~kdub/unity-system-compositor/unblock-silo0

« back to all changes in this revision

Viewing changes to src/powerd_mediator.h

  • Committer: Andreas Pokorny
  • Date: 2015-07-31 14:11:27 UTC
  • mfrom: (200.4.6 unity-system-compositor)
  • Revision ID: andreas.pokorny@canonical.com-20150731141127-pkvvz9ppwiyrt03c
update to recent unity-system-compositor changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    int min_brightness() override;
47
47
    int max_brightness() override;
48
48
 
 
49
    void enable_proximity(bool enable) override;
 
50
 
49
51
    bool is_system_suspended();
50
52
 
51
53
private:
66
68
 
67
69
    enum class ForceDisableSuspend { no, yes };
68
70
    enum class ForceBacklightState { no, yes };
 
71
    enum class ForceProximity { no, yes };
69
72
 
70
73
    static ::DBusHandlerResult handle_dbus_message_thunk(
71
74
        ::DBusConnection* connection, ::DBusMessage* message, void* user_data);
76
79
    void init_brightness_params();
77
80
    void change_backlight_state(
78
81
        BacklightState new_state, ForceBacklightState force_backlight_state);
 
82
    void enable_proximity_l(bool enable, ForceProximity force_proximity);
79
83
    bool is_valid_brightness(int brightness);
80
84
    bool request_suspend_block();
81
85
    void wait_for_sys_state(SysState state);
98
102
    BacklightState backlight_state;
99
103
    bool auto_brightness_supported_;
100
104
    bool auto_brightness_requested;
 
105
    bool proximity_enabled;
101
106
    std::string suspend_block_cookie;
102
107
    std::mutex sys_state_mutex;
103
108
    SysState sys_state;