Telepathy::Client::ConnectionManagerInterface Class Reference
[Connection manager proxies]

#include <TelepathyQt4/Client/ConnectionManager>

Inheritance diagram for Telepathy::Client::ConnectionManagerInterface:

Inheritance graph
[legend]
Collaboration diagram for Telepathy::Client::ConnectionManagerInterface:

Collaboration graph
[legend]

List of all members.

Public Slots

QDBusPendingReply
< Telepathy::ParamSpecList
GetParameters (const QString &protocol)
QDBusPendingReply< QStringList > ListProtocols ()
QDBusPendingReply< QString,
QDBusObjectPath > 
RequestConnection (const QString &protocol, const QVariantMap &parameters)

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


Detailed Description

Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.ConnectionManager."

Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
proxy The proxy to use. It will also be the QObject::parent() for this object.


Member Function Documentation

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).

Parameters:
protocol The required protocol name
Returns:
An array of structs representing possible parameters.

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.

Returns:
The value of the property, or a default-constructed value if the property is not readable.

virtual void Telepathy::Client::ConnectionManagerInterface::invalidate ( Telepathy::Client::DBusProxy ,
const QString &  ,
const QString &   
) [protected, virtual]

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.

Returns:
A array of string protocol identifiers supported by this 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.

Parameters:
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:

account (s)
The identifier for the user's account on the server

server (s)
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.

port (q)
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.

password (s)
A password associated with the account.

require-encryption (b)
Require encryption for this connection. A connection should fail to connect if require-encryption is set and an encrypted connection is not possible.

register (b)
This account should be created on the server if it does not already exist.

ident (s)
The local username to report to the server if necessary, such as in IRC.

fullname (s)
The user's full name if the service requires this when authenticating or registering.

stun-server (s)
The IP address or FQDN of a STUN server to use for NAT traversal, without any ":port" suffix.

stun-port (q)
The UDP port number on the stun-server to use for STUN. Only significant if the stun-server is also supplied.

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.

Parameters:
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.
Returns:
A D-Bus service name where the new Connection object can be found

Returns:
The D-Bus object path to the Connection on this service

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.

Returns:
The D-Bus interface name.


Property Documentation

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.


Generated on Thu Mar 5 18:52:01 2009 for TelepathyQt4-0.1.1 by  doxygen 1.5.8