### Interface

# Phosh DBusEndSessionDialog

since: 0

#### Description [src]

    interface Phosh.DBusEndSessionDialog : GObject.Object

Abstract interface type for the D-Bus interface org.gnome.SessionManager.EndSessionDialog.

Available since: 0

#### Prerequisite

In order to implement DBusEndSessionDialog, your type must inherit from`GObject`.

#### Implementations

- PhoshDBusEndSessionDialogProxy
- PhoshDBusEndSessionDialogSkeleton
- PhoshSessionManager

#### Functions

###### phosh_dbus_end_session_dialog_interface_info

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

since: 0

###### 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.

since: 0

#### 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.

since: 0

###### phosh_dbus_end_session_dialog_call_open_finish

Finishes an operation started with phosh_dbus_end_session_dialog_call_open().

since: 0

###### 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.

since: 0

###### 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.

since: 0

###### phosh_dbus_end_session_dialog_emit_canceled

Emits the “Canceled” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_closed

Emits the “Closed” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_hibernate

Emits the “ConfirmedHibernate” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_hybrid_sleep

Emits the “ConfirmedHybridSleep” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_logout

Emits the “ConfirmedLogout” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_reboot

Emits the “ConfirmedReboot” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_shutdown

Emits the “ConfirmedShutdown” D-Bus signal.

since: 0

###### phosh_dbus_end_session_dialog_emit_confirmed_suspend

Emits the “ConfirmedSuspend” D-Bus signal.

since: 0

#### Signals

###### Phosh.DBusEndSessionDialog::canceled

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

since: 0

###### Phosh.DBusEndSessionDialog::closed

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-hibernate

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-hybrid-sleep

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-logout

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-reboot

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-shutdown

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

since: 0

###### Phosh.DBusEndSessionDialog::confirmed-suspend

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

since: 0

###### Phosh.DBusEndSessionDialog::handle-open

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

since: 0

#### 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`

    GTypeInterface

| The parent interface.

`handle_open`

    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
      )

| Handler for the `PhoshDBusEndSessionDialog::handle-open` signal.

`canceled`

    void (* canceled) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::canceled` signal.

`closed`

    void (* closed) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::closed` signal.

`confirmed_hibernate`

    void (* confirmed_hibernate) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-hibernate` signal.

`confirmed_hybrid_sleep`

    void (* confirmed_hybrid_sleep) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-hybrid-sleep` signal.

`confirmed_logout`

    void (* confirmed_logout) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-logout` signal.

`confirmed_reboot`

    void (* confirmed_reboot) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-reboot` signal.

`confirmed_shutdown`

    void (* confirmed_shutdown) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-shutdown` signal.

`confirmed_suspend`

    void (* confirmed_suspend) (
        PhoshDBusEndSessionDialog* object
      )

| Handler for the `PhoshDBusEndSessionDialog::confirmed-suspend` signal.

#### Virtual methods

###### Phosh.DBusEndSessionDialog.canceled

Handler for the `PhoshDBusEndSessionDialog::canceled` signal.

since: 0

###### Phosh.DBusEndSessionDialog.closed

Handler for the `PhoshDBusEndSessionDialog::closed` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_hibernate

Handler for the `PhoshDBusEndSessionDialog::confirmed-hibernate` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_hybrid_sleep

Handler for the `PhoshDBusEndSessionDialog::confirmed-hybrid-sleep` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_logout

Handler for the `PhoshDBusEndSessionDialog::confirmed-logout` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_reboot

Handler for the `PhoshDBusEndSessionDialog::confirmed-reboot` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_shutdown

Handler for the `PhoshDBusEndSessionDialog::confirmed-shutdown` signal.

since: 0

###### Phosh.DBusEndSessionDialog.confirmed_suspend

Handler for the `PhoshDBusEndSessionDialog::confirmed-suspend` signal.

since: 0

###### Phosh.DBusEndSessionDialog.handle_open

Handler for the `PhoshDBusEndSessionDialog::handle-open` signal.

since: 0