#include <TelepathyQt4/Prototype/ConnectionFacade.h>
Public Member Functions | |
QStringList | listOfConnectionManagers () |
QStringList | listOfProtocolsForConnectionManager (const QString &connectionManager) |
Telepathy::ParamSpecList | paramSpecListForConnectionManagerAndProtocol (const QString &connectionManager, const QString &protocol) |
QVariantMap | parameterListForConnectionManagerAndProtocol (const QString &connectionManager, const QString &protocol) |
QVariantMap | parameterListForProtocol (const QString &protocol, int account_number=1) ATTRIBUTE_DEPRECATED |
TpPrototype::Connection * | connectionWithAccount (Account *account, int account_number=1) ATTRIBUTE_DEPRECATED |
int | selfHandleForConnectionInterface (Telepathy::Client::ConnectionInterface *connectionInterface) |
Static Public Member Functions | |
static ConnectionFacade * | instance () |
TpPrototype::Connection * ConnectionFacade::connectionWithAccount | ( | Account * | account, | |
int | account_number = 1 | |||
) |
Connects to account. Connects an account to a service using the default connection manager.
account | The account to use. |
References TpPrototype::Account::connection(), listOfConnectionManagers(), parameterListForProtocol(), TpPrototype::registerTypes(), and TpPrototype::Account::setParameters().
ConnectionFacade * ConnectionFacade::instance | ( | ) | [static] |
Referenced by TpPrototype::CapabilitiesManager::capabilities(), TpPrototype::ContactManager::localHandle(), TpPrototype::AvatarManager::requestAvatar(), TpPrototype::AvatarManager::slotAvatarRetrieved(), TpPrototype::AvatarManager::slotAvatarUpdated(), and TpPrototype::CapabilitiesManager::slotCapabilitiesChanged().
QStringList ConnectionFacade::listOfConnectionManagers | ( | ) |
Returns a list of all connection managers registered.
References TpPrototype::DBusInterface::listActivatableNames(), and TpPrototype::registerTypes().
Referenced by connectionWithAccount(), and listOfProtocolsForConnectionManager().
QStringList ConnectionFacade::listOfProtocolsForConnectionManager | ( | const QString & | connectionManager | ) |
Returns a list of supported protocols of a connection manager.
References listOfConnectionManagers(), Telepathy::Client::ConnectionManagerInterface::ListProtocols(), and TpPrototype::registerTypes().
QVariantMap ConnectionFacade::parameterListForConnectionManagerAndProtocol | ( | const QString & | connectionManager, | |
const QString & | protocol | |||
) |
Returns a list of parameters for the given protocol and connection manager.
connectionManager | The connection manager for the protocol. | |
protocol | Name of the protocol that is supported by the connection manager. |
References Telepathy::ParamSpec::defaultValue, Telepathy::ParamSpec::flags, Telepathy::ParamSpec::name, and paramSpecListForConnectionManagerAndProtocol().
QVariantMap ConnectionFacade::parameterListForProtocol | ( | const QString & | protocol, | |
int | account_number = 1 | |||
) |
Returns a list of parameters for the given protocol.
protocol | Name of the protocol. |
References TpPrototype::registerTypes().
Referenced by connectionWithAccount().
Telepathy::ParamSpecList ConnectionFacade::paramSpecListForConnectionManagerAndProtocol | ( | const QString & | connectionManager, | |
const QString & | protocol | |||
) |
Returns a Telepathy::ParamSpecList from the given protocol an connection manager.
connectionManager | The connection manager for the protocol. | |
protocol | Name of the protocol that is supported by the connection manager. |
References Telepathy::Client::ConnectionManagerInterface::GetParameters(), and TpPrototype::registerTypes().
Referenced by parameterListForConnectionManagerAndProtocol().
int ConnectionFacade::selfHandleForConnectionInterface | ( | Telepathy::Client::ConnectionInterface * | connectionInterface | ) |
Returns the self handle. The self handle is needed by various interfaces to request information about myself
References Telepathy::Client::ConnectionInterface::GetSelfHandle().
Referenced by TpPrototype::CapabilitiesManager::capabilities(), TpPrototype::ContactManager::localHandle(), TpPrototype::AvatarManager::requestAvatar(), TpPrototype::AvatarManager::slotAvatarRetrieved(), TpPrototype::AvatarManager::slotAvatarUpdated(), and TpPrototype::CapabilitiesManager::slotCapabilitiesChanged().