ConnectionManager
Object Hierarchy:
TelepathyGLib.ConnectionManager
TelepathyGLib.ConnectionManager
TelepathyGLib.ConnectionManager
TelepathyGLib.Proxy
TelepathyGLib.Proxy
TelepathyGLib.Proxy->TelepathyGLib.ConnectionManager
GLib.Object
GLib.Object
GLib.Object->TelepathyGLib.Proxy
Description:
[
CCode ( type_id =
"tp_connection_manager_get_type ()" ) ]
[
Version ( since =
"0.7.1" ) ]
public class ConnectionManager :
Proxy
A proxy object for a Telepathy connection manager.
This might represent a connection manager which is currently running (in which case it can be introspected) or not (in which case its
capabilities can be read from .manager files in the filesystem). Accordingly, this object never emits
invalidated unless all references to it are discarded.
Various fields and methods on this object do not work until TP_CONNECTION_MANAGER_FEATURE_CORE
is prepared. Use
prepare_async to wait for this to happen.
Since 0.19.1, accessing the fields of this struct is deprecated, and they are no longer documented here. Use the accessors
get_name ,
is_running ,
dup_protocols ,
get_info_source and the
always_introspect property instead.
Content:
Properties:
public bool always_introspect { get ; set ; }
If true
, always introspect the connection manager as it comes
online, even if we already have its info from a .
public string cm_name { owned get ; }
The name of the connection manager, e.g. "gabble" (read-only).
public string connection_manager { owned get ; }
The name of the connection manager, e.g. "gabble" (read-only).
public uint info_source { get ; }
Where we got the current information on supported protocols (a
CMInfoSource ).
public string manager_file { owned get ; set construct ; }
The absolute path of the .
Static methods:
public static bool check_valid_name (string name) throws Error
Check that the given string is a valid connection manager name, i.e. that it
consists entirely of ASCII letters, digits and underscores, and starts with a letter.
public static bool check_valid_protocol_name (string name) throws Error
Check that the given string is a valid protocol name, i.e. that it consists
entirely of ASCII letters, digits and hyphen/minus, and starts with a letter.
public static Quark get_feature_quark_core ()
public static void init_known_interfaces ()
Ensure that the known interfaces for TpConnectionManager have been set up.
Creation methods:
Methods:
public string [] dup_protocol_names ()
Returns a list of protocol names supported by this connection manager.
public List <Protocol > dup_protocols ()
Return objects representing all protocols supported by this connection
manager.
public CMInfoSource get_info_source ()
If protocol and parameter information has been obtained from the connection
manager, return LIVE ; if it has been obtained from the
cache in the .
public unowned string get_name ()
Return the internal name of this connection manager in the Telepathy D-Bus
API, e.g. "gabble" or "haze".
public unowned ConnectionManagerProtocol get_protocol (string protocol)
Returns a structure representing a protocol, or null
if this
connection manager does not support the specified protocol.
public unowned Protocol get_protocol_object (string protocol)
Returns an object representing a protocol, or null
if this
connection manager does not support the specified protocol.
public bool has_protocol (string protocol)
Return whether protocol
is supported by this connection
manager.
public bool is_running ()
Return true
if this connection manager currently appears to be
running.
Signals:
public signal void activated ()
Emitted when the connection manager's well-known name appears on the bus.
public signal void exited ()
Emitted when the connection manager's well-known name disappears from the
bus or when activation fails.
public signal void got_info (uint source)
Emitted when the connection manager's capabilities have been discovered.
Inherited Members:
All known members inherited from class TelepathyGLib.Proxy
All known members inherited from class GLib.Object