~charlesk/unity-system-compositor/lp-1365557-decrement-display-on-requests-correctly

« back to all changes in this revision

Viewing changes to src/powerd_mediator.h

  • Committer: CI bot
  • Author(s): Alberto Aguirre
  • Date: 2014-08-14 20:01:54 UTC
  • mfrom: (163.1.3 fix-1353647)
  • Revision ID: ps-jenkins@lists.canonical.com-20140814200154-txdvo27tlkphr9ep
Request disabling of system suspend on first boot or when powerd restarts (if needed) Fixes: 1353647
Approved by: Michael Terry, Kevin DuBois, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        suspended = 0,
75
75
        active,
76
76
    };
77
 
    void change_backlight_state(BacklightState state);
 
77
    void change_backlight_state(BacklightState state, bool force_change = false);
78
78
    void init_brightness_params();
79
 
    bool disable_suspend_request();
 
79
    bool request_suspend_blocker();
80
80
    void wait_for_state(SystemState state);
81
81
 
82
82
    int dim_brightness;
88
88
    bool auto_brightness_requested;
89
89
    BacklightState backlight_state;
90
90
 
91
 
    QString sys_state_cookie;
92
 
    bool acquired_sys_state;
 
91
    QString suspend_block_cookie;
 
92
    bool pending_suspend_blocker_request;
93
93
 
94
94
    std::unique_ptr<QDBusInterface> powerd_interface;
95
95
    std::unique_ptr<QDBusServiceWatcher> service_watcher;