summaryrefslogtreecommitdiffstats
path: root/tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h')
-rw-r--r--tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h b/tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h
index b08a55bda..964004acd 100644
--- a/tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h
+++ b/tdecore/tdehw/hwlibdaemons/tdedbus/PowerService.h
@@ -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_ */