summaryrefslogtreecommitdiffstats
path: root/kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp')
-rw-r--r--kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp42
1 files changed, 11 insertions, 31 deletions
diff --git a/kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp b/kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp
index 4f05a8391..4c3b8155c 100644
--- a/kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp
+++ b/kdesktop/dbus/screensaver/screensaverInterfaceImpl.cpp
@@ -75,28 +75,18 @@ bool ScreenSaverInterfaceImpl::Lock(TQT_DBusError& dbuserror) {
return true;
}
-bool ScreenSaverInterfaceImpl::SimulateUserActivity(TQT_DBusError& dbuserror) {
- tqDebug("SimulateUserActivity not implemented");
- return true;
-}
-
-bool ScreenSaverInterfaceImpl::GetActive(bool& arg0, TQT_DBusError& dbuserror) {
- tqDebug("GetActive not implemented");
- return true;
-}
-
-bool ScreenSaverInterfaceImpl::GetActiveTime(TQ_UINT32& seconds, TQT_DBusError& dbuserror) {
- tqDebug("GetActiveTime not implemented");
- return true;
-}
-
-bool ScreenSaverInterfaceImpl::GetSessionIdleTime(TQ_UINT32& seconds, TQT_DBusError& dbuserror) {
- tqDebug("GetSessionIdleTime not implemented");
- return true;
-}
-
bool ScreenSaverInterfaceImpl::SetActive(bool& arg0, bool e, TQT_DBusError& dbuserror) {
- tqDebug("SetActive not implemented");
+
+ DCOPReply reply = m_kdesktopdcoprefobj.call("setBlankOnly",e);
+ if (!reply.isValid())
+ {
+ arg0 = false;
+ TQString err("ScreenSaverInterfaceImpl::Lock: there was some error using DCOP.");
+ tqDebug(err);
+ dbuserror = TQT_DBusError::stdFailed(err);
+ return false;
+ }
+ arg0 = true;
return true;
}
@@ -144,16 +134,6 @@ bool ScreenSaverInterfaceImpl::UnInhibit(TQ_UINT32 cookie, TQT_DBusError& dbuser
return true;
}
-bool ScreenSaverInterfaceImpl::Throttle(const TQString& application_name, const TQString& reason_for_inhibit, TQ_UINT32& cookie, TQT_DBusError& dbuserror) {
- tqDebug("Throttle not implemented");
- return true;
-}
-
-bool ScreenSaverInterfaceImpl::UnThrottle(TQ_UINT32 cookie, TQT_DBusError& dbuserror) {
- tqDebug("UnThrottle not implemented");
- return true;
-}
-
bool ScreenSaverInterfaceImpl::screenSaverIsEnabled()
{
DCOPReply reply = m_kdesktopdcoprefobj.call("isEnabled");