@ -31,43 +31,27 @@ class PowerService: public org::trinitydesktop::hardwarecontrol::PowerInterface,
public :
PowerService ( TQT_DBusConnection & ) ;
virtual ~ PowerService ( ) ;
protected :
// implement DBus calls
bool canSetPower ( TQString state , TQT_DBusError & error ) ;
bool setPower ( TQString state , TQT_DBusError & error ) ;
bool canSetHibernation ( TQString state , TQT_DBusError & error ) ;
bool setHibernation ( TQString state , TQT_DBusError & error ) ;
virtual bool CanStandby ( bool & value , TQT_DBusError & error ) ;
virtual bool Standby ( bool & value , TQT_DBusError & error ) ;
virtual bool CanFreeze ( bool & value , TQT_DBusError & error ) ;
virtual bool Freeze ( bool & value , TQT_DBusError & error ) ;
virtual bool CanSuspend ( bool & value , TQT_DBusError & error ) ;
virtual bool Suspend ( bool & value , TQT_DBusError & error ) ;
virtual bool CanHibernate ( bool & value , TQT_DBusError & error ) ;
virtual bool Hibernate ( bool & value , TQT_DBusError & error ) ;
virtual bool CanHybridSuspend ( bool & value , TQT_DBusError & error ) ;
virtual bool HybridSuspend ( bool & value , TQT_DBusError & error ) ;
virtual bool CanSetHibernationMethod ( bool & value , TQT_DBusError & error ) ;
virtual bool SetHibernationMethod ( const TQString & method , bool & value , TQT_DBusError & error ) ;
protected : // implement sending replies
// implement sending replies
void handleMethodReply ( const TQT_DBusMessage & reply ) ;
//
// virtual void PowerServiceAsync(int asyncCallId, const TQT_DBusObjectPath& device, const TQString& uuid);
} ;
# endif /* POWERSERVICE_H_ */