Interface

PhoshDBusScreenSaver

since: 0

Description [src]

interface Phosh.DBusScreenSaver : GObject.Object

Abstract interface type for the D-Bus interface org.gnome.ScreenSaver.

Available since: 0

Prerequisite

In order to implement DBusScreenSaver, your type must inherit fromGObject.

Functions

phosh_dbus_screen_saver_interface_info

Gets a machine-readable description of the org.gnome.ScreenSaver D-Bus interface.

since: 0

phosh_dbus_screen_saver_override_properties

Overrides all GObject properties in the PhoshDBusScreenSaver interface for a concrete class. The properties are overridden in the order they are defined.

since: 0

Instance methods

phosh_dbus_screen_saver_call_get_active

Asynchronously invokes the GetActive() D-Bus method on proxy. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call phosh_dbus_screen_saver_call_get_active_finish() to get the result of the operation.

since: 0

phosh_dbus_screen_saver_call_get_active_finish

Finishes an operation started with phosh_dbus_screen_saver_call_get_active().

since: 0

phosh_dbus_screen_saver_call_get_active_sync

Synchronously invokes the GetActive() D-Bus method on proxy. The calling thread is blocked until a reply is received.

since: 0

phosh_dbus_screen_saver_call_get_active_time

Asynchronously invokes the GetActiveTime() D-Bus method on proxy. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call phosh_dbus_screen_saver_call_get_active_time_finish() to get the result of the operation.

since: 0

phosh_dbus_screen_saver_call_get_active_time_finish

Finishes an operation started with phosh_dbus_screen_saver_call_get_active_time().

since: 0

phosh_dbus_screen_saver_call_get_active_time_sync

Synchronously invokes the GetActiveTime() D-Bus method on proxy. The calling thread is blocked until a reply is received.

since: 0

phosh_dbus_screen_saver_call_lock

Asynchronously invokes the Lock() D-Bus method on proxy. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call phosh_dbus_screen_saver_call_lock_finish() to get the result of the operation.

since: 0

phosh_dbus_screen_saver_call_lock_finish

Finishes an operation started with phosh_dbus_screen_saver_call_lock().

since: 0

phosh_dbus_screen_saver_call_lock_sync

Synchronously invokes the Lock() D-Bus method on proxy. The calling thread is blocked until a reply is received.

since: 0

phosh_dbus_screen_saver_call_set_active

Asynchronously invokes the SetActive() D-Bus method on proxy. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). You can then call phosh_dbus_screen_saver_call_set_active_finish() to get the result of the operation.

since: 0

phosh_dbus_screen_saver_call_set_active_finish

Finishes an operation started with phosh_dbus_screen_saver_call_set_active().

since: 0

phosh_dbus_screen_saver_call_set_active_sync

Synchronously invokes the SetActive() D-Bus method on proxy. The calling thread is blocked until a reply is received.

since: 0

phosh_dbus_screen_saver_complete_get_active

Helper function used in service implementations to finish handling invocations of the GetActive() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

since: 0

phosh_dbus_screen_saver_complete_get_active_time

Helper function used in service implementations to finish handling invocations of the GetActiveTime() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

since: 0

phosh_dbus_screen_saver_complete_lock

Helper function used in service implementations to finish handling invocations of the Lock() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

since: 0

phosh_dbus_screen_saver_complete_set_active

Helper function used in service implementations to finish handling invocations of the SetActive() D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.

since: 0

phosh_dbus_screen_saver_emit_active_changed

Emits the ActiveChanged” D-Bus signal.

since: 0

phosh_dbus_screen_saver_emit_wake_up_screen

Emits the WakeUpScreen” D-Bus signal.

since: 0

Signals

Phosh.DBusScreenSaver::active-changed

On the client-side, this signal is emitted whenever the D-Bus signal ActiveChanged” is received.

since: 0

Phosh.DBusScreenSaver::handle-get-active

Signal emitted when a remote caller is invoking the GetActive() D-Bus method.

since: 0

Phosh.DBusScreenSaver::handle-get-active-time

Signal emitted when a remote caller is invoking the GetActiveTime() D-Bus method.

since: 0

Phosh.DBusScreenSaver::handle-lock

Signal emitted when a remote caller is invoking the Lock() D-Bus method.

since: 0

Phosh.DBusScreenSaver::handle-set-active

Signal emitted when a remote caller is invoking the SetActive() D-Bus method.

since: 0

Phosh.DBusScreenSaver::wake-up-screen

On the client-side, this signal is emitted whenever the D-Bus signal WakeUpScreen” is received.

since: 0

Interface structure

struct PhoshDBusScreenSaverIface {
  GTypeInterface parent_iface;
  gboolean (* handle_get_active) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  );
  gboolean (* handle_get_active_time) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  );
  gboolean (* handle_lock) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  );
  gboolean (* handle_set_active) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation,
    gboolean arg_value
  );
  void (* active_changed) (
    PhoshDBusScreenSaver* object,
    gboolean arg_new_value
  );
  void (* wake_up_screen) (
    PhoshDBusScreenSaver* object
  );
  
}

Virtual table for the D-Bus interface org.gnome.ScreenSaver.

Interface members
parent_iface
GTypeInterface
 

The parent interface.

handle_get_active
gboolean (* handle_get_active) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  )
 No description available.
handle_get_active_time
gboolean (* handle_get_active_time) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  )
 No description available.
handle_lock
gboolean (* handle_lock) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation
  )
 No description available.
handle_set_active
gboolean (* handle_set_active) (
    PhoshDBusScreenSaver* object,
    GDBusMethodInvocation* invocation,
    gboolean arg_value
  )
 No description available.
active_changed
void (* active_changed) (
    PhoshDBusScreenSaver* object,
    gboolean arg_new_value
  )
 No description available.
wake_up_screen
void (* wake_up_screen) (
    PhoshDBusScreenSaver* object
  )
 No description available.

Virtual methods

Phosh.DBusScreenSaver.active_changed
No description available.

since: 0

Phosh.DBusScreenSaver.handle_get_active
No description available.

since: 0

Phosh.DBusScreenSaver.handle_get_active_time
No description available.

since: 0

Phosh.DBusScreenSaver.handle_lock
No description available.

since: 0

Phosh.DBusScreenSaver.handle_set_active
No description available.

since: 0

Phosh.DBusScreenSaver.wake_up_screen
No description available.

since: 0