|
virtual | ~ConnectionFactory () |
|
PendingReady * | proxy (const QString &busName, const QString &objectPath, const ChannelFactoryConstPtr &chanFactory, const ContactFactoryConstPtr &contactFactory) const |
|
virtual | ~FixedFeatureFactory () |
|
Features | features () const |
|
void | addFeature (const Feature &feature) |
|
void | addFeatures (const Features &features) |
|
virtual | ~DBusProxyFactory () |
|
const QDBusConnection & | dbusConnection () const |
|
| 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 () |
|
|
static ConnectionFactoryPtr | create (const QDBusConnection &bus, const Features &features=Features()) |
|
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) |
|
The ConnectionFactory class is responsible for constructing Connection objects according to application-defined settings.
The class is used by Account and other classes which construct Connection proxy instances to enable sharing instances of application-defined Connection subclasses with certain features always ready.
PendingReady * Tp::ConnectionFactory::proxy |
( |
const QString & |
busName, |
|
|
const QString & |
objectPath, |
|
|
const ChannelFactoryConstPtr & |
chanFactory, |
|
|
const ContactFactoryConstPtr & |
contactFactory |
|
) |
| const |
Constructs a Connection proxy and begins making it ready.
If a valid proxy already exists in the factory cache for the given combination of busName and objectPath, it is returned instead. All newly created proxies are automatically cached until they're either DBusProxy::invalidated() or the last reference to them outside the factory has been dropped.
The proxy can be accessed immediately after this function returns using PendingReady::proxy(). The ready operation only finishes, however, when the features specified by features(), if any, are made ready as much as possible. If the service doesn't support a given feature, they won't obviously be ready even if the operation finished successfully, as is the case for Connection::becomeReady().
- Parameters
-
busName | The bus/service name of the D-Bus connection object the proxy is constructed for. |
objectPath | The object path of the connection. |
chanFactory | The channel factory to use for the Connection. |
contactFactory | The channel factory to use for the Connection. |
- Returns
- A PendingReady operation with the proxy in PendingReady::proxy().