#include <TelepathyQt4/Client/ConnectionManager>
Public Slots | |
QDBusPendingReply < Telepathy::ParamSpecList > | GetParameters (const QString &protocol) |
QDBusPendingReply< QStringList > | ListProtocols () |
QDBusPendingReply< QString, QDBusObjectPath > | RequestConnection (const QString &protocol, const QVariantMap ¶meters) |
Signals | |
void | NewConnection (const QString &busName, const QDBusObjectPath &objectPath, const QString &protocol) |
Public Member Functions | |
ConnectionManagerInterface (const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
ConnectionManagerInterface (const QDBusConnection &connection, const QString &serviceName, const QString &objectPath, QObject *parent=0) | |
ConnectionManagerInterface (Telepathy::Client::DBusProxy *proxy) | |
QStringList | Interfaces () const TELEPATHY_GNUC_DEPRECATED |
Static Public Member Functions | |
static const char * | staticInterfaceName () |
Protected Member Functions | |
virtual void | invalidate (Telepathy::Client::DBusProxy *, const QString &, const QString &) |
Properties | |
QStringList | Interfaces |
Telepathy::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | const QString & | serviceName, | |
const QString & | objectPath, | |||
QObject * | parent = 0 | |||
) |
Creates a ConnectionManagerInterface associated with the given object on the session bus.
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | const QDBusConnection & | connection, | |
const QString & | serviceName, | |||
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. | |
serviceName | Name of the service the object is on. | |
objectPath | Path to the object on the service. | |
parent | Passed to the parent class constructor. |
Telepathy::Client::ConnectionManagerInterface::ConnectionManagerInterface | ( | Telepathy::Client::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. |
QDBusPendingReply<Telepathy::ParamSpecList> Telepathy::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 |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
Referenced by Telepathy::Client::ConnectionManager::ConnectionManager::Private::introspectParameters(), and TpPrototype::ConnectionFacade::paramSpecListForConnectionManagerAndProtocol().
QStringList Telepathy::Client::ConnectionManagerInterface::Interfaces | ( | ) | const [inline] |
Getter for the remote object property "Interfaces".
Don't use this: it blocks the main loop.
virtual void Telepathy::Client::ConnectionManagerInterface::invalidate | ( | Telepathy::Client::DBusProxy * | , | |
const QString & | , | |||
const QString & | ||||
) | [protected, virtual] |
Reimplemented from Telepathy::Client::AbstractInterface.
QDBusPendingReply<QStringList> Telepathy::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.
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
Referenced by Telepathy::Client::ConnectionManager::ConnectionManager::Private::introspectProtocols(), and TpPrototype::ConnectionFacade::listOfProtocolsForConnectionManager().
void Telepathy::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 |
QDBusPendingReply<QString, QDBusObjectPath> Telepathy::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:
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. |
References Telepathy::Client::AbstractInterface::invalidationMessage(), and Telepathy::Client::AbstractInterface::invalidationReason().
static const char* Telepathy::Client::ConnectionManagerInterface::staticInterfaceName | ( | ) | [inline, static] |
Returns the name of the interface "org.freedesktop.Telepathy.ConnectionManager", which this class represents.
QStringList Telepathy::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.