Proxy
Object Hierarchy:
Description:
[ CCode ( type_id = "tp_proxy_get_type ()" ) ]
[ Version ( since = "0.7.1" ) ]
public class Proxy : Object
[ Version ( since = "0.7.1" ) ]
public class Proxy : Object
Structure representing a Telepathy client-side proxy.
All known sub-classes:
Namespace: TelepathyGLib
Package: telepathy-glib
Content:
Properties:
- public string bus_name { get; construct; }
The D-Bus bus name for this object.
- public DBusDaemon dbus_daemon { get; construct; }
The D-Bus daemon for this object (this object itself, if it is a TpDBusDaemon).
- public SimpleClientFactory factory { get; construct; }
The SimpleClientFactory used to create this proxy, or
nullif this proxy was not created through a factory. - public string[] interfaces { owned get; }
Known D-Bus interface names for this object.
- public string object_path { get; construct; }
The D-Bus object path for this object.
Creation methods:
- protected Proxy ()
Methods:
- public void dbus_error_to_gerror (string dbus_error, string debug_message) throws Error
Convert a D-Bus error name into a GError as if it was returned by a method on this proxy.
- public unowned string get_bus_name ()
- public unowned DBusDaemon get_dbus_daemon ()
- public unowned SimpleClientFactory get_factory ()
- public unowned Error get_invalidated ()
- public unowned string get_object_path ()
- public bool has_interface (string iface)
Return whether this proxy is known to have a particular interface.
- public bool has_interface_by_id (Quark iface)
Return whether this proxy is known to have a particular interface, by its quark ID.
- public bool is_prepared (Quark feature)
Return
trueiffeaturehas been prepared successfully, orfalseiffeaturehas not been requested, has not been prepared yet, or is not available on this object at all. - public async bool prepare_async (Quark[]? features) throws Error
Proxy itself does not support any features, but subclasses like Channel can support features, which can either be core functionality like
TP_CHANNEL_FEATURE_CORE, or extended functionality likeTP_CHANNEL_FEATURE_CHAT_STATES.
Signals:
- public signal void invalidated (uint domain, int code, string message)
Emitted when this proxy has been become invalid for whatever reason.
Inherited Members:
All known members inherited from class GLib.Object