Top | ![]() |
![]() |
![]() |
![]() |
GInterface ╰── PhoshSessionPresenceDbusPresence GObject ├── GDBusInterfaceSkeleton │ ╰── PhoshSessionPresenceDbusPresenceSkeleton ╰── GDBusProxy ╰── PhoshSessionPresenceDbusPresenceProxy
PhoshSessionPresenceDbusPresenceProxy implements GDBusInterface, GInitable, GAsyncInitable and PhoshSessionPresenceDbusPresence.
PhoshSessionPresenceDbusPresenceSkeleton implements GDBusInterface and PhoshSessionPresenceDbusPresence.
PhoshSessionPresenceDbusPresence is implemented by PhoshSessionPresenceDbusPresenceProxy and PhoshSessionPresenceDbusPresenceSkeleton.
GDBusInterfaceInfo *
phosh_session_presence_dbus_presence_interface_info
(void
);
Gets a machine-readable description of the org.gnome.SessionManager.Presence D-Bus interface.
guint phosh_session_presence_dbus_presence_override_properties (GObjectClass *klass
,guint property_id_begin
);
Overrides all GObject properties in the PhoshSessionPresenceDbusPresence interface for a concrete class. The properties are overridden in the order they are defined.
void phosh_session_presence_dbus_presence_emit_status_changed (PhoshSessionPresenceDbusPresence *object
,guint arg_status
);
Emits the "StatusChanged" D-Bus signal.
guint
phosh_session_presence_dbus_presence_get_status
(PhoshSessionPresenceDbusPresence *object
);
Gets the value of the "status" D-Bus property.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_session_presence_dbus_presence_set_status (PhoshSessionPresenceDbusPresence *object
,guint value
);
Sets the "status" D-Bus property to value
.
Since this D-Bus property is both readable and writable, it is meaningful to use this function on both the client- and service-side.
[skip]
void phosh_session_presence_dbus_presence_proxy_new (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously creates a proxy for the D-Bus interface org.gnome.SessionManager.Presence. See g_dbus_proxy_new()
for more details.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_session_presence_dbus_presence_proxy_new_finish()
to get the result of the operation.
See phosh_session_presence_dbus_presence_proxy_new_sync()
for the synchronous, blocking version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshSessionPresenceDbusPresence * phosh_session_presence_dbus_presence_proxy_new_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_session_presence_dbus_presence_proxy_new()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshSessionPresenceDbusPresence * phosh_session_presence_dbus_presence_proxy_new_sync (GDBusConnection *connection
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Synchronously creates a proxy for the D-Bus interface org.gnome.SessionManager.Presence. See g_dbus_proxy_new_sync()
for more details.
The calling thread is blocked until a reply is received.
See phosh_session_presence_dbus_presence_proxy_new()
for the asynchronous version of this constructor.
connection |
A GDBusConnection. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique) or |
[nullable] |
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
error |
Return location for error or |
void phosh_session_presence_dbus_presence_proxy_new_for_bus (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Like phosh_session_presence_dbus_presence_proxy_new()
but takes a GBusType instead of a GDBusConnection.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call phosh_session_presence_dbus_presence_proxy_new_for_bus_finish()
to get the result of the operation.
See phosh_session_presence_dbus_presence_proxy_new_for_bus_sync()
for the synchronous, blocking version of this constructor.
bus_type |
A GBusType. |
|
flags |
Flags from the GDBusProxyFlags enumeration. |
|
name |
A bus name (well-known or unique). |
|
object_path |
An object path. |
|
cancellable |
A GCancellable or |
[nullable] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
PhoshSessionPresenceDbusPresence * phosh_session_presence_dbus_presence_proxy_new_for_bus_finish (GAsyncResult *res
,GError **error
);
Finishes an operation started with phosh_session_presence_dbus_presence_proxy_new_for_bus()
.
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
PhoshSessionPresenceDbusPresence * phosh_session_presence_dbus_presence_proxy_new_for_bus_sync (GBusType bus_type
,GDBusProxyFlags flags
,const gchar *name
,const gchar *object_path
,GCancellable *cancellable
,GError **error
);
Like phosh_session_presence_dbus_presence_proxy_new_sync()
but takes a GBusType instead of a GDBusConnection.
The calling thread is blocked until a reply is received.
See phosh_session_presence_dbus_presence_proxy_new_for_bus()
for the asynchronous version of this constructor.
PhoshSessionPresenceDbusPresence *
phosh_session_presence_dbus_presence_skeleton_new
(void
);
Creates a skeleton object for the D-Bus interface org.gnome.SessionManager.Presence.
struct PhoshSessionPresenceDbusPresenceIface { GTypeInterface parent_iface; guint (*get_status) (PhoshSessionPresenceDbusPresence *object); void (*status_changed) ( PhoshSessionPresenceDbusPresence *object, guint arg_status); };
Virtual table for the D-Bus interface org.gnome.SessionManager.Presence.
The parent interface. |
||
Getter for the “status” property. |
||
Handler for the “status-changed” signal. |
struct PhoshSessionPresenceDbusPresenceProxy;
The PhoshSessionPresenceDbusPresenceProxy structure contains only private data and should only be accessed using the provided API.
struct PhoshSessionPresenceDbusPresenceProxyClass { GDBusProxyClass parent_class; };
Class structure for PhoshSessionPresenceDbusPresenceProxy.
struct PhoshSessionPresenceDbusPresenceSkeleton;
The PhoshSessionPresenceDbusPresenceSkeleton structure contains only private data and should only be accessed using the provided API.
struct PhoshSessionPresenceDbusPresenceSkeletonClass { GDBusInterfaceSkeletonClass parent_class; };
Class structure for PhoshSessionPresenceDbusPresenceSkeleton.
typedef struct _PhoshSessionPresenceDbusPresence PhoshSessionPresenceDbusPresence;
Abstract interface type for the D-Bus interface org.gnome.SessionManager.Presence.
typedef struct _PhoshSessionPresenceDbusPresenceProxyPrivate PhoshSessionPresenceDbusPresenceProxyPrivate;
“status-changed”
signalvoid user_function (PhoshSessionPresenceDbusPresence *object, guint arg_status, gpointer user_data)
On the client-side, this signal is emitted whenever the D-Bus signal "StatusChanged" is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name()
to make the object emit the D-Bus signal.
object |
||
arg_status |
Argument. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last