source: filezilla/trunk/fuentes/src/dbus/power_management_inhibitor.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 939 bytes
Line 
1#ifndef __POWER_MANAGEMENT_INHIBITOR
2#define __POWER_MANAGEMENT_INHIBITOR
3
4// Inhibits system idle sleep through either org.freedesktop.PowerManagement.Inhibit interface,
5// see http://people.freedesktop.org/~hughsient/temp/dbus-interface.html
6// or alternatively through org.gnome.SessionManager interface,
7// see http://www.gnome.org/~mccann/gnome-session/docs/gnome-session.html
8//
9// The former seems to be deprecated, so fall back to GSM if
10// org.freedesktop.PowerManagement.Inhibit does not work.
11
12class CPowerManagementInhibitorImpl;
13class CPowerManagementInhibitor
14{
15public:
16        CPowerManagementInhibitor();
17        virtual ~CPowerManagementInhibitor();
18
19        CPowerManagementInhibitor(CPowerManagementInhibitor const&) = delete;
20        CPowerManagementInhibitor& operator=(CPowerManagementInhibitor const&) = delete;
21
22        void RequestIdle();
23        void RequestBusy();
24private:
25        CPowerManagementInhibitorImpl *impl;
26};
27
28#endif //__POWER_MANAGEMENT_INHIBITOR
Note: See TracBrowser for help on using the repository browser.