Home · All Classes · All Namespaces · Modules · Functions · Files |
Base class for D-Bus services. More...
#include <TelepathyQt/DBusService>
Public Member Functions | |
DBusService (const QDBusConnection &dbusConnection) | |
virtual | ~DBusService () |
virtual QVariantMap | immutableProperties () const =0 |
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 () |
Protected Member Functions | |
virtual bool | registerObject (const QString &busName, const QString &objectPath, DBusError *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) |
Additional Inherited Members | |
![]() | |
void | propertyChanged (const QString &propertyName) |
![]() | |
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) |
![]() | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
![]() | |
objectName | |
Base class for D-Bus services.
This class serves as a base for all the classes that are used to implement D-Bus services.
Tp::DBusService::DBusService | ( | const QDBusConnection & | dbusConnection | ) |
Construct a DBusService that uses the given dbusConnection.
dbusConnection | The D-Bus connection that will be used by this service. |
|
virtual |
Class destructor.
|
pure virtual |
Return the immutable properties of this D-Bus service object.
Immutable properties cannot change after the object has been registered on the bus with registerObject().
Implemented in Tp::BaseProtocol, Tp::BaseCallContent, Tp::BaseConnectionManager, Tp::BaseConnection, and Tp::BaseChannel.
QDBusConnection Tp::DBusService::dbusConnection | ( | ) | const |
Return the D-Bus connection associated with this service.
QString Tp::DBusService::busName | ( | ) | const |
Return the D-Bus service name of this service.
This is only valid after this service has been registered on the bus using registerObject().
QString Tp::DBusService::objectPath | ( | ) | const |
Return the D-Bus object path of this service.
This is only valid after this service has been registered on the bus using registerObject().
DBusObject * Tp::DBusService::dbusObject | ( | ) | const |
Return the DBusObject that is used for registering this service on the bus.
The DBusObject is the object on which all the interface adaptors for this service are plugged.
bool Tp::DBusService::isRegistered | ( | ) | const |
Return whether this D-Bus service has been registered on the bus or not.
true
if the service has been registered, or false
otherwise.
|
protectedvirtual |
Register this service object on the bus with the given busName and objectPath.
error needs to be a valid pointer to a DBusError instance, where any possible D-Bus error will be stored.
A service may only be registered once in its lifetime. Use isRegistered() to find out if it has already been registered or not.
You normally don't need to use this method directly. Subclasses should provide a simplified version of it.
busName | The D-Bus service name of this object. |
objectPath | The D-Bus object path of this object. |
error | A pointer to a valid DBusError instance, where any possible D-Bus error will be stored. |
true
on success or false
otherwise. Reimplemented in Tp::BaseConnection, Tp::BaseProtocol, Tp::BaseCallContent, Tp::BaseConnectionManager, and Tp::BaseChannel.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.7 |