Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Filezilla/src/dbus/     Datei vom 7.0.2015 mit Größe 939 B image not shown  

Quelle  power_management_inhibitor.h   Sprache: C

 

#ifndef __POWER_MANAGEMENT_INHIBITOR
#define __POWER_MANAGEMENT_INHIBITOR

// Inhibits system idle sleep through either org.freedesktop.PowerManagement.Inhibit interface,
// see http://people.freedesktop.org/~hughsient/temp/dbus-interface.html
// or alternatively through org.gnome.SessionManager interface,
// see http://www.gnome.org/~mccann/gnome-session/docs/gnome-session.html
//
// The former seems to be deprecated, so fall back to GSM if
// org.freedesktop.PowerManagement.Inhibit does not work.

class CPowerManagementInhibitorImpl;
class CPowerManagementInhibitor
{
public:
 CPowerManagementInhibitor();
 virtual ~CPowerManagementInhibitor();

 CPowerManagementInhibitor(CPowerManagementInhibitor const&) = delete;
 CPowerManagementInhibitor& operator=(CPowerManagementInhibitor const&) = delete;

 void RequestIdle();
 void RequestBusy();
private:
 CPowerManagementInhibitorImpl *impl;
};

#endif //__POWER_MANAGEMENT_INHIBITOR

Messung
CHZG
849910094

¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© Formatika GbR, Deutschland