|
virtual | ~BaseConnection () |
|
QString | cmName () const |
|
QString | protocolName () const |
|
QVariantMap | parameters () const |
|
QVariantMap | immutableProperties () const |
|
uint | selfHandle () const |
|
void | setSelfHandle (uint selfHandle) |
|
QString | selfID () const |
|
void | setSelfID (const QString &selfID) |
|
void | setSelfContact (uint selfHandle, const QString &selfID) |
|
uint | status () const |
|
void | setStatus (uint newStatus, uint reason) |
|
void | setCreateChannelCallback (const CreateChannelCallback &cb) |
|
BaseChannelPtr | createChannel (const QVariantMap &request, bool suppressHandler, DBusError *error) |
|
void | setConnectCallback (const ConnectCallback &cb) |
|
void | setInspectHandlesCallback (const InspectHandlesCallback &cb) |
|
QStringList | inspectHandles (uint handleType, const Tp::UIntList &handles, DBusError *error) |
|
void | setRequestHandlesCallback (const RequestHandlesCallback &cb) |
|
Tp::UIntList | requestHandles (uint handleType, const QStringList &identifiers, DBusError *error) |
|
Tp::ChannelInfoList | channelsInfo () |
|
Tp::ChannelDetailsList | channelsDetails () |
|
BaseChannelPtr | ensureChannel (const QVariantMap &request, bool &yours, bool suppressHandler, DBusError *error) |
|
void | addChannel (BaseChannelPtr channel, bool suppressHandler=false) |
|
QList< AbstractConnectionInterfacePtr > | interfaces () const |
|
AbstractConnectionInterfacePtr | interface (const QString &interfaceName) const |
|
bool | plugInterface (const AbstractConnectionInterfacePtr &interface) |
|
bool | registerObject (DBusError *error=NULL) |
|
virtual QString | uniqueName () const |
|
| DBusService (const QDBusConnection &dbusConnection) |
|
virtual | ~DBusService () |
|
QDBusConnection | dbusConnection () const |
|
QString | busName () const |
|
QString | objectPath () const |
|
DBusObject * | dbusObject () const |
|
bool | isRegistered () 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 () |
|
|
static BaseConnectionPtr | create (const QString &cmName, const QString &protocolName, const QVariantMap ¶meters, const QDBusConnection &dbusConnection=QDBusConnection::sessionBus()) |
|
template<typename BaseConnectionSubclass > |
static SharedPtr< BaseConnectionSubclass > | create (const QString &cmName, const QString &protocolName, const QVariantMap ¶meters, const QDBusConnection &dbusConnection=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) |
|
Base class for Connection implementations.
Tp::BaseChannelPtr Tp::BaseConnection::ensureChannel |
( |
const QVariantMap & |
request, |
|
|
bool & |
yours, |
|
|
bool |
suppressHandler, |
|
|
DBusError * |
error |
|
) |
| |
Return a new or exists channel, satisfying the given request.
This method iterate over exist channels to find the one satisfying the request. If there is no suitable channel, then new channel with given request details will be created. This method uses the matchChannel() method to check whether there exists a channel which confirms with the request.
If error is passed, any error that may occur will be stored there.
- Parameters
-
request | A dictionary containing the desirable properties. |
yours | A returning argument. true if returned channel is a new one and false otherwise. |
suppressHandler | An option to suppress handler in case of a new channel creation. |
error | A pointer to an empty DBusError where any possible error will be stored. |
- Returns
- A pointer to a channel, satisfying the given request.
- See also
- matchChannel()
bool Tp::BaseConnection::matchChannel |
( |
const Tp::BaseChannelPtr & |
channel, |
|
|
const QVariantMap & |
request, |
|
|
Tp::DBusError * |
error |
|
) |
| |
|
protectedvirtual |
Check channel on conformity with request.
This virtual method is used to check if a channel satisfying the given request. It is warranted, that the type of the channel meets the requested type.
The default implementation compares TargetHandleType and TargetHandle/TargetID. If error is passed, any error that may occur will be stored there.
- Parameters
-
channel | A pointer to a channel to be checked. |
request | A dictionary containing the desirable properties. |
error | A pointer to an empty DBusError where any possible error will be stored. |
- Returns
true
if channel match the request and false
otherwise.
- See also
- ensureChannel()