Interface
PhoshDBusEndSessionDialog
Description [src]
interface Phosh.DBusEndSessionDialog : GObject.Object
Abstract interface type for the D-Bus interface org.gnome.SessionManager.EndSessionDialog.
Prerequisite
In order to implement DBusEndSessionDialog, your type must inherit fromGObject
.
Functions
phosh_dbus_end_session_dialog_interface_info
Gets a machine-readable description of the org.gnome.SessionManager.EndSessionDialog D-Bus interface.
phosh_dbus_end_session_dialog_override_properties
Overrides all GObject
properties in the PhoshDBusEndSessionDialog
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_dbus_end_session_dialog_call_open
Asynchronously invokes the Open() 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_end_session_dialog_call_open_finish()
to get the result of the operation.
phosh_dbus_end_session_dialog_call_open_finish
Finishes an operation started with phosh_dbus_end_session_dialog_call_open().
phosh_dbus_end_session_dialog_call_open_sync
Synchronously invokes the Open() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_dbus_end_session_dialog_complete_open
Helper function used in service implementations to finish handling invocations of the Open() 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.
phosh_dbus_end_session_dialog_emit_confirmed_hybrid_sleep
Emits the “ConfirmedHybridSleep” D-Bus signal.
Signals
Phosh.DBusEndSessionDialog::canceled
On the client-side, this signal is emitted whenever the D-Bus signal “Canceled” is received.
Phosh.DBusEndSessionDialog::closed
On the client-side, this signal is emitted whenever the D-Bus signal “Closed” is received.
Phosh.DBusEndSessionDialog::confirmed-hibernate
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedHibernate” is received.
Phosh.DBusEndSessionDialog::confirmed-hybrid-sleep
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedHybridSleep” is received.
Phosh.DBusEndSessionDialog::confirmed-logout
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedLogout” is received.
Phosh.DBusEndSessionDialog::confirmed-reboot
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedReboot” is received.
Phosh.DBusEndSessionDialog::confirmed-shutdown
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedShutdown” is received.
Phosh.DBusEndSessionDialog::confirmed-suspend
On the client-side, this signal is emitted whenever the D-Bus signal “ConfirmedSuspend” is received.
Phosh.DBusEndSessionDialog::handle-open
Signal emitted when a remote caller is invoking the Open() D-Bus method.
Interface structure
struct PhoshDBusEndSessionDialogIface {
GTypeInterface parent_iface;
gboolean (* handle_open) (
PhoshDBusEndSessionDialog* object,
GDBusMethodInvocation* invocation,
guint arg_type,
guint arg_timestamp,
guint arg_seconds_to_stay_open,
const gchar* const* arg_inhibitor_object_paths
);
void (* canceled) (
PhoshDBusEndSessionDialog* object
);
void (* closed) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_hibernate) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_hybrid_sleep) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_logout) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_reboot) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_shutdown) (
PhoshDBusEndSessionDialog* object
);
void (* confirmed_suspend) (
PhoshDBusEndSessionDialog* object
);
}
Virtual table for the D-Bus interface org.gnome.SessionManager.EndSessionDialog.
Interface members
parent_iface |
|
The parent interface. |
|
handle_open |
|
Handler for the |
|
canceled |
|
Handler for the |
|
closed |
|
Handler for the |
|
confirmed_hibernate |
|
Handler for the |
|
confirmed_hybrid_sleep |
|
Handler for the |
|
confirmed_logout |
|
Handler for the |
|
confirmed_reboot |
|
Handler for the |
|
confirmed_shutdown |
|
Handler for the |
|
confirmed_suspend |
|
Handler for the |
Virtual methods
Phosh.DBusEndSessionDialog.confirmed_hibernate
Handler for the PhoshDBusEndSessionDialog::confirmed-hibernate
signal.
Phosh.DBusEndSessionDialog.confirmed_hybrid_sleep
Handler for the PhoshDBusEndSessionDialog::confirmed-hybrid-sleep
signal.
Phosh.DBusEndSessionDialog.confirmed_logout
Handler for the PhoshDBusEndSessionDialog::confirmed-logout
signal.
Phosh.DBusEndSessionDialog.confirmed_reboot
Handler for the PhoshDBusEndSessionDialog::confirmed-reboot
signal.
Phosh.DBusEndSessionDialog.confirmed_shutdown
Handler for the PhoshDBusEndSessionDialog::confirmed-shutdown
signal.
Phosh.DBusEndSessionDialog.confirmed_suspend
Handler for the PhoshDBusEndSessionDialog::confirmed-suspend
signal.
Phosh.DBusEndSessionDialog.handle_open
Handler for the PhoshDBusEndSessionDialog::handle-open
signal.