Interface
PhoshSessionClientPrivateDBusClientPrivate
Description [src]
interface Phosh.SessionClientPrivateDBusClientPrivate : GObject.Object
Abstract interface type for the D-Bus interface org.gnome.SessionManager.ClientPrivate.
Prerequisite
In order to implement SessionClientPrivateDBusClientPrivate, your type must inherit fromGObject
.
Functions
phosh_session_client_private_dbus_client_private_interface_info
Gets a machine-readable description of the org.gnome.SessionManager.ClientPrivate D-Bus interface.
phosh_session_client_private_dbus_client_private_override_properties
Overrides all GObject
properties in the PhoshSessionClientPrivateDBusClientPrivate
interface for a concrete class.
The properties are overridden in the order they are defined.
Instance methods
phosh_session_client_private_dbus_client_private_call_end_session_response
Asynchronously invokes the EndSessionResponse() 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_session_client_private_dbus_client_private_call_end_session_response_finish()
to get the result of the operation.
phosh_session_client_private_dbus_client_private_call_end_session_response_finish
Finishes an operation started with phosh_session_client_private_dbus_client_private_call_end_session_response().
phosh_session_client_private_dbus_client_private_call_end_session_response_sync
Synchronously invokes the EndSessionResponse() D-Bus method on proxy
. The calling thread is blocked until a reply is received.
phosh_session_client_private_dbus_client_private_complete_end_session_response
Helper function used in service implementations to finish handling invocations of the EndSessionResponse() 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_session_client_private_dbus_client_private_emit_cancel_end_session
Emits the “CancelEndSession” D-Bus signal.
phosh_session_client_private_dbus_client_private_emit_end_session
Emits the “EndSession” D-Bus signal.
phosh_session_client_private_dbus_client_private_emit_query_end_session
Emits the “QueryEndSession” D-Bus signal.
Signals
Phosh.SessionClientPrivateDBusClientPrivate::cancel-end-session
On the client-side, this signal is emitted whenever the D-Bus signal “CancelEndSession” is received.
Phosh.SessionClientPrivateDBusClientPrivate::end-session
On the client-side, this signal is emitted whenever the D-Bus signal “EndSession” is received.
Phosh.SessionClientPrivateDBusClientPrivate::handle-end-session-response
Signal emitted when a remote caller is invoking the EndSessionResponse() D-Bus method.
Phosh.SessionClientPrivateDBusClientPrivate::query-end-session
On the client-side, this signal is emitted whenever the D-Bus signal “QueryEndSession” is received.
Phosh.SessionClientPrivateDBusClientPrivate::stop
On the client-side, this signal is emitted whenever the D-Bus signal “Stop” is received.
Interface structure
struct PhoshSessionClientPrivateDBusClientPrivateIface {
GTypeInterface parent_iface;
gboolean (* handle_end_session_response) (
PhoshSessionClientPrivateDBusClientPrivate* object,
GDBusMethodInvocation* invocation,
gboolean arg_is_ok,
const gchar* arg_reason
);
void (* cancel_end_session) (
PhoshSessionClientPrivateDBusClientPrivate* object
);
void (* end_session) (
PhoshSessionClientPrivateDBusClientPrivate* object,
guint arg_flags
);
void (* query_end_session) (
PhoshSessionClientPrivateDBusClientPrivate* object,
guint arg_flags
);
void (* stop) (
PhoshSessionClientPrivateDBusClientPrivate* object
);
}
Virtual table for the D-Bus interface org.gnome.SessionManager.ClientPrivate.
Interface members
parent_iface |
|
The parent interface. |
|
handle_end_session_response |
|
Handler for the |
|
cancel_end_session |
|
Handler for the |
|
end_session |
|
Handler for the |
|
query_end_session |
|
Handler for the |
|
stop |
|
Handler for the |
Virtual methods
Phosh.SessionClientPrivateDBusClientPrivate.cancel_end_session
Handler for the PhoshSessionClientPrivateDBusClientPrivate::cancel-end-session
signal.
Phosh.SessionClientPrivateDBusClientPrivate.end_session
Handler for the PhoshSessionClientPrivateDBusClientPrivate::end-session
signal.
Phosh.SessionClientPrivateDBusClientPrivate.handle_end_session_response
Handler for the PhoshSessionClientPrivateDBusClientPrivate::handle-end-session-response
signal.
Phosh.SessionClientPrivateDBusClientPrivate.query_end_session
Handler for the PhoshSessionClientPrivateDBusClientPrivate::query-end-session
signal.
Phosh.SessionClientPrivateDBusClientPrivate.stop
Handler for the PhoshSessionClientPrivateDBusClientPrivate::stop
signal.