Home · All Classes · All Namespaces · Modules · Functions · Files |
#include <TelepathyQt4/ConnectionManager>
Inherits Tp::AbstractInterface.
Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.ConnectionManager."
Tp::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | const QString & | busName, | |
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a ConnectionManagerInterface associated with the given object on the session bus.
busName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Tp::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | const QDBusConnection & | connection, | |
const QString & | busName, | |||
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a ConnectionManagerInterface associated with the given object on the given bus.
connection | The bus via which the object can be reached. | |
busName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Tp::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | Tp::DBusProxy * | proxy | ) |
Creates a ConnectionManagerInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
static const char* Tp::Client::ConnectionManagerInterface::staticInterfaceName | ( | ) | [inline, static] |
Returns the name of the interface "org.freedesktop.Telepathy.ConnectionManager", which this class represents.
TELEPATHY_QT4_DEPRECATED Tp::ProtocolPropertiesMap Tp::Client::ConnectionManagerInterface::Protocols | ( | ) | const [inline] |
Getter for the remote object property "Protocols".
Don't use this: it blocks the main loop. Use the asynchronous requestPropertyProtocols() instead.
Tp::PendingVariant* Tp::Client::ConnectionManagerInterface::requestPropertyProtocols | ( | ) | const [inline] |
Asynchronous getter for the remote object property "Protocols" of type Tp::ProtocolPropertiesMap.
A map from protocol identifiers supported by this connection manager to the immutable properties of the corresponding <tp:dbus-ref namespace="org.freedesktop.Telepathy">Protocol</tp:dbus-ref> objects.
<tp:rationale>
Providing the immutable properties here means that when the API of Protocol objects has been finalized, most clients will only need one D-Bus round trip to interrogate the ConnectionManager about all its protocols. </tp:rationale>
If this map is empty or missing, clients SHOULD fall back to calling <tp:member-ref>ListProtocols</tp:member-ref> and <tp:member-ref>GetParameters</tp:member-ref>.
TELEPATHY_QT4_DEPRECATED QStringList Tp::Client::ConnectionManagerInterface::Interfaces | ( | ) | const [inline] |
Getter for the remote object property "Interfaces".
Don't use this: it blocks the main loop. Use the asynchronous requestPropertyInterfaces() instead.
Tp::PendingVariant* Tp::Client::ConnectionManagerInterface::requestPropertyInterfaces | ( | ) | const [inline] |
Asynchronous getter for the remote object property "Interfaces" of type QStringList.
A list of the extra interfaces provided by this connection manager (i.e. extra functionality that can be provided even before a connection has been created).
No interfaces suitable for listing in this property are currently defined; it's provided as a hook for possible future functionality.
To be compatible with older connection managers, if retrieving this property fails, clients SHOULD assume that its value is an empty list.
Connection managers with a non-empty list of Interfaces MUST represent them in the .manager
file, if they have one, as an Interfaces
key in the group headed [ConnectionManager]
, whose value is a list of strings each followed by a semicolon.
Tp::PendingVariantMap* Tp::Client::ConnectionManagerInterface::requestAllProperties | ( | ) | const [inline] |
Request all of the DBus properties on the interface.
QDBusPendingReply<Tp::ParamSpecList> Tp::Client::ConnectionManagerInterface::GetParameters | ( | const QString & | protocol | ) | [inline, slot] |
Begins a call to the D-Bus method "GetParameters" on the remote object.
Get a list of the parameters which must or may be provided to the RequestConnection method when connecting to the given protocol, or registering (the boolean "register" parameter is available, and set to true).
protocol | The required protocol name |
An array of structs representing possible parameters.
QDBusPendingReply<QStringList> Tp::Client::ConnectionManagerInterface::ListProtocols | ( | ) | [inline, slot] |
Begins a call to the D-Bus method "ListProtocols" on the remote object.
Get a list of protocol identifiers that are implemented by this connection manager.
The keys of the Protocols map.
QDBusPendingReply<QString, QDBusObjectPath> Tp::Client::ConnectionManagerInterface::RequestConnection | ( | const QString & | protocol, | |
const QVariantMap & | parameters | |||
) | [inline, slot] |
Begins a call to the D-Bus method "RequestConnection" on the remote object.
Request a <tp:dbus-ref namespace="org.freedesktop.Telepathy">Connection</tp:dbus-ref> object representing a given account on a given protocol with the given parameters. The method returns the bus name and the object path where the new Connection object can be found, which should have the status of Connection_Status_Disconnected, to allow signal handlers to be attached before connecting is started with the <tp:dbus-ref namespace="org.freedesktop.Telepathy.Connection">Connect</tp:dbus-ref> method.
The parameters which must and may be provided in the parameters dictionary can be discovered with the <tp:member-ref>GetParameters</tp:member-ref> method. These parameters, their types, and their default values may be cached in files so that all available connection managers do not need to be started to discover which protocols are available.
To request values for these parameters from the user, a client must have prior knowledge of the meaning of the parameter names, so the following well-known names and types should be used where appropriate:
The identifier for the user's account on the server
A fully qualified domain name or numeric IPv4 or IPv6 address. Using the fully-qualified domain name form is recommended whenever possible. If this parameter is specified and the account for that protocol also specifies a server, this parameter should override that in the user id.
A TCP or UDP port number. If this parameter is specified and the account for that protocol also specifies a port, this parameter should override that in the account.
A password associated with the account.
Require encryption for this connection. A connection should fail to connect if require-encryption is set and an encrypted connection is not possible.
This account should be created on the server if it does not already exist.
The local username to report to the server if necessary, such as in IRC.
The user's full name if the service requires this when authenticating or registering.
The IP address or FQDN of a STUN server to use for NAT traversal, without any ":port" suffix.
The UDP port number on the stun-server to use for STUN. Only significant if the stun-server is also supplied.
0
to disable such pings. Connection manager authors SHOULD avoid introducing parameters whose default values would not be serializable in a .manager
file.
<tp:rationale>
The same serialization format is used in Mission Control to store accounts. </tp:rationale>
Every successful RequestConnection call will cause the emission of a <tp:member-ref>NewConnection</tp:member-ref> signal for the same newly created connection. The requester can use the returned object path and service name independently of the emission of that signal. In that case this signal emission is most useful for, e.g. other processes that are monitoring the creation of new connections.
protocol | The protocol identifier | |
parameters | A dictionary mapping parameter names to values of the appropriate type, as indicated by GetParameters and the above well-known list. |
A D-Bus service name where the new Connection object can be found
The D-Bus object path to the Connection on this service
void Tp::Client::ConnectionManagerInterface::NewConnection | ( | const QString & | busName, | |
const QDBusObjectPath & | objectPath, | |||
const QString & | protocol | |||
) | [signal] |
Represents the signal "NewConnection" on the remote object.
Emitted when a new Connection object is created.
busName | The D-Bus service where the connection object can be found | |
objectPath | The object path of the Connection object on this service | |
protocol | The identifier for the protocol this connection uses |
void Tp::Client::ConnectionManagerInterface::invalidate | ( | Tp::DBusProxy * | proxy, | |
const QString & | error, | |||
const QString & | message | |||
) | [protected, virtual] |
Reimplemented from Tp::AbstractInterface.
Tp::ProtocolPropertiesMap Tp::Client::ConnectionManagerInterface::Protocols [read] |
Represents property "Protocols" on the remote object.
A map from protocol identifiers supported by this connection manager to the immutable properties of the corresponding <tp:dbus-ref namespace="org.freedesktop.Telepathy">Protocol</tp:dbus-ref> objects.
<tp:rationale>
Providing the immutable properties here means that when the API of Protocol objects has been finalized, most clients will only need one D-Bus round trip to interrogate the ConnectionManager about all its protocols. </tp:rationale>
If this map is empty or missing, clients SHOULD fall back to calling <tp:member-ref>ListProtocols</tp:member-ref> and <tp:member-ref>GetParameters</tp:member-ref>.
QStringList Tp::Client::ConnectionManagerInterface::Interfaces [read] |
Represents property "Interfaces" on the remote object.
A list of the extra interfaces provided by this connection manager (i.e. extra functionality that can be provided even before a connection has been created).
No interfaces suitable for listing in this property are currently defined; it's provided as a hook for possible future functionality.
To be compatible with older connection managers, if retrieving this property fails, clients SHOULD assume that its value is an empty list.
Connection managers with a non-empty list of Interfaces MUST represent them in the .manager
file, if they have one, as an Interfaces
key in the group headed [ConnectionManager]
, whose value is a list of strings each followed by a semicolon.
Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation | Telepathy-Qt4 0.4.4 |