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.
klass |
The class structure for a GObject derived class. |
|
property_id_begin |
The property id to assign to the first overridden property. |
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 |
||
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 |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshSessionPresenceDBusPresenceProxy]
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 |
||
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 |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshSessionPresenceDBusPresenceProxy]
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 |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshSessionPresenceDBusPresenceProxy]
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.
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] |
error |
Return location for error or |
The constructed proxy object or NULL
if error
is set.
[transfer full][type PhoshSessionPresenceDBusPresenceProxy]
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.
GTypeInterface |
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