Home · All Classes · All Namespaces · Modules · Functions · Files |
The ConnectionManager class represents a Telepathy connection manager. More...
#include <TelepathyQt/ConnectionManager>
Public Member Functions | |
virtual | ~ConnectionManager () |
QString | name () const |
ConnectionFactoryConstPtr | connectionFactory () const |
ChannelFactoryConstPtr | channelFactory () const |
ContactFactoryConstPtr | contactFactory () const |
QStringList | supportedProtocols () const |
const ProtocolInfoList & | protocols () const |
bool | hasProtocol (const QString &protocolName) const |
ProtocolInfo | protocol (const QString &protocolName) const |
![]() | |
StatelessDBusProxy (const QDBusConnection &dbusConnection, const QString &busName, const QString &objectPath, const Feature &featureCore) | |
virtual | ~StatelessDBusProxy () |
![]() | |
DBusProxy (const QDBusConnection &dbusConnection, const QString &busName, const QString &objectPath, const Feature &featureCore) | |
virtual | ~DBusProxy () |
QDBusConnection | dbusConnection () const |
QString | busName () const |
QString | objectPath () const |
bool | isValid () const |
QString | invalidationReason () const |
QString | invalidationMessage () const |
![]() | |
virtual | ~Object () |
![]() | |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
virtual const QMetaObject * | metaObject () const |
QString | objectName () const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const |
bool | signalsBlocked () const |
bool | blockSignals (bool block) |
QThread * | thread () const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval) |
void | killTimer (int id) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *receiver, const char *method) |
void | dumpObjectTree () |
void | dumpObjectInfo () |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const |
QList< QByteArray > | dynamicPropertyNames () const |
void | destroyed (QObject *obj) |
QObject * | parent () const |
bool | inherits (const char *className) const |
void | deleteLater () |
QObject (QObject *parent, const char *name) | |
void | insertChild (QObject *object) |
void | removeChild (QObject *object) |
bool | isA (const char *className) const |
const char * | className () const |
const char * | name () const |
const char * | name (const char *defaultName) const |
void | setName (const char *name) |
![]() | |
RefCounted () | |
virtual | ~RefCounted () |
![]() | |
ReadyObject (RefCounted *object, const Feature &featureCore) | |
ReadyObject (DBusProxy *proxy, const Feature &featureCore) | |
virtual | ~ReadyObject () |
virtual bool | isReady (const Features &features=Features()) const |
virtual PendingReady * | becomeReady (const Features &requestedFeatures=Features()) |
virtual Features | requestedFeatures () const |
virtual Features | actualFeatures () const |
virtual Features | missingFeatures () const |
![]() | |
OptionalInterfaceFactory (ConnectionManager *this_) | |
~OptionalInterfaceFactory () | |
QStringList | interfaces () const |
bool | hasInterface (const QString &name) const |
Interface * | optionalInterface (InterfaceSupportedChecking check=CheckInterfaceSupported) const |
Interface * | interface () const |
Static Public Member Functions | |
static ConnectionManagerPtr | create (const QDBusConnection &bus, const QString &name) |
static ConnectionManagerPtr | create (const QString &name, const ConnectionFactoryConstPtr &connectionFactory=ConnectionFactory::create(QDBusConnection::sessionBus()), const ChannelFactoryConstPtr &channelFactory=ChannelFactory::create(QDBusConnection::sessionBus()), const ContactFactoryConstPtr &contactFactory=ContactFactory::create()) |
static ConnectionManagerPtr | create (const QDBusConnection &bus, const QString &name, const ConnectionFactoryConstPtr &connectionFactory, const ChannelFactoryConstPtr &channelFactory, const ContactFactoryConstPtr &contactFactory=ContactFactory::create()) |
static PendingStringList * | listNames (const QDBusConnection &bus=QDBusConnection::sessionBus()) |
![]() | |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
Static Public Attributes | |
static const Feature | FeatureCore |
Protected Member Functions | |
ConnectionManager (const QDBusConnection &bus, const QString &name, const ConnectionFactoryConstPtr &connectionFactory, const ChannelFactoryConstPtr &channelFactory, const ContactFactoryConstPtr &contactFactory) | |
Client::ConnectionManagerInterface * | baseInterface () const |
![]() | |
void | setBusName (const QString &busName) |
void | invalidate (const QString &reason, const QString &message) |
void | invalidate (const QDBusError &error) |
![]() | |
Object () | |
void | notify (const char *propertyName) |
![]() | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | disconnectNotify (const char *signal) |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
![]() | |
ReadinessHelper * | readinessHelper () const |
![]() | |
void | setInterfaces (const QStringList &interfaces) |
Properties | |
QString | name |
QStringList | supportedProtocols |
ProtocolInfoList | protocols |
![]() | |
objectName | |
Additional Inherited Members | |
![]() | |
enum | InterfaceSupportedChecking |
![]() | |
void | invalidated (Tp::DBusProxy *proxy, const QString &errorName, const QString &errorMessage) |
![]() | |
void | propertyChanged (const QString &propertyName) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
The ConnectionManager class represents a Telepathy connection manager.
Connection managers allow connections to be made on one or more protocols.
Most client applications should use this functionality via the AccountManager, to allow connections to be shared between client applications.
|
virtual |
Class destructor.
|
protected |
Construct a new ConnectionManager object using the given bus.
bus | QDBusConnection to use. |
name | Name of the connection manager. |
|
static |
Create a new ConnectionManager object.
The instance will use a connection factory creating Tp::Connection objects with no features ready, and a channel factory creating stock Telepathy-Qt channel subclasses, as appropriate, with no features ready.
bus | QDBusConnection to use. |
name | Name of the connection manager. |
|
static |
Create a new ConnectionManager using QDBusConnection::sessionBus() and the given factories.
The channel factory is passed to any Connection objects created by this manager object. In fact, they're not used directly by ConnectionManager at all.
A warning is printed if the factories are for a bus different from QDBusConnection::sessionBus().
name | Name of the connection manager. |
connectionFactory | The connection factory to use. |
channelFactory | The channel factory to use. |
contactFactory | The contact factory to use. |
|
static |
Create a new ConnectionManager using the given bus and the given factories.
The channel factory is passed to any Connection objects created by this manager object. In fact, they're not used directly by ConnectionManager at all.
A warning is printed if the factories are for a bus different from QDBusConnection::sessionBus().
bus | QDBusConnection to use. |
name | Name of the connection manager. |
connectionFactory | The connection factory to use. |
channelFactory | The channel factory to use. |
contactFactory | The contact factory to use. |
QString Tp::ConnectionManager::name | ( | ) | const |
ConnectionFactoryConstPtr Tp::ConnectionManager::connectionFactory | ( | ) | const |
Return the connection factory used by this manager.
Only read access is provided. This allows constructing object instances and examining the object construction settings, but not changing settings. Allowing changes would lead to tricky situations where objects constructed at different times by the manager would have unpredictably different construction settings (eg. subclass).
ChannelFactoryConstPtr Tp::ConnectionManager::channelFactory | ( | ) | const |
Return the channel factory used by this manager.
Only read access is provided. This allows constructing object instances and examining the object construction settings, but not changing settings. Allowing changes would lead to tricky situations where objects constructed at different times by the manager would have unpredictably different construction settings (eg. subclass).
ContactFactoryConstPtr Tp::ConnectionManager::contactFactory | ( | ) | const |
Return the contact factory used by this manager.
Only read access is provided. This allows constructing object instances and examining the object construction settings, but not changing settings. Allowing changes would lead to tricky situations where objects constructed at different times by the manager would have unpredictably different construction settings (eg. subclass).
QStringList Tp::ConnectionManager::supportedProtocols | ( | ) | const |
const ProtocolInfoList& Tp::ConnectionManager::protocols | ( | ) | const |
bool Tp::ConnectionManager::hasProtocol | ( | const QString & | protocolName | ) | const |
Return whether this connection manager implements the protocol specified by protocolName.
This method requires ConnectionManager::FeatureCore to be ready.
true
if the protocol is supported, false
otherwise. ProtocolInfo Tp::ConnectionManager::protocol | ( | const QString & | protocolName | ) | const |
Return the ProtocolInfo object for the protocol specified by protocolName.
This method requires ConnectionManager::FeatureCore to be ready.
protocolName | The name of the protocol. |
for
ProtocolInfo::isValid() if the protocol specified by protocolName is not supported.
|
static |
Return a pending operation from which a list of all installed connection manager short names (such as "gabble" or "haze") can be retrieved if it succeeds.
|
protected |
Return the Client::ConnectionManagerInterface for this ConnectionManager. This method is protected since the convenience methods provided by this class should generally be used instead of calling D-Bus methods directly.
|
static |
Feature representing the core that needs to become ready to make the ConnectionManager object usable.
Note that this feature must be enabled in order to use most ConnectionManager methods. See specific methods documentation for more details.
When calling isReady(), becomeReady(), this feature is implicitly added to the requested features.
|
read |
Return the short name of the connection manager (e.g. "gabble").
|
read |
Return a list of strings identifying the protocols supported by this connection manager, as described in the Telepathy specification (e.g. "jabber").
These identifiers are not intended to be displayed to users directly; user interfaces are responsible for mapping them to localized strings.
This method requires ConnectionManager::FeatureCore to be ready.
|
read |
Return a list of protocols info for this connection manager.
Note that the returned ProtocolInfoList contents should not be freed.
This method requires ConnectionManager::FeatureCore to be ready.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.4 |