Home · Modules · All Classes · All Namespaces |
The DBusProxy class is a base class representing a remote object available over D-Bus. More...
#include <TelepathyQt/DBusProxy>
Signals | |
void | invalidated (Tp::DBusProxy *proxy, const QString &errorName, const QString &errorMessage) |
![]() | |
void | propertyChanged (const QString &propertyName) |
Public Member Functions | |
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 () |
![]() | |
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 |
Protected Member Functions | |
void | setBusName (const QString &busName) |
void | invalidate (const QString &reason, const QString &message) |
void | invalidate (const QDBusError &error) |
![]() | |
Object () | |
void | notify (const char *propertyName) |
![]() | |
ReadinessHelper * | readinessHelper () const |
The DBusProxy class is a base class representing a remote object available over D-Bus.
All Telepathy-Qt client convenience classes that wrap Telepathy interfaces inherit from this class in order to provide basic D-Bus interface information.
Tp::DBusProxy::DBusProxy | ( | const QDBusConnection & | dbusConnection, |
const QString & | busName, | ||
const QString & | objectPath, | ||
const Feature & | featureCore | ||
) |
Construct a new DBusProxy object.
dbusConnection | QDBusConnection to use. |
busName | D-Bus bus name of the service that provides the remote object. |
objectPath | The object path. |
featureCore | The object core feature. |
|
virtual |
Class destructor.
QDBusConnection Tp::DBusProxy::dbusConnection | ( | ) | const |
Return the D-Bus connection through which the remote object is accessed.
QString Tp::DBusProxy::busName | ( | ) | const |
Return the D-Bus bus name (either a unique name or a well-known name) of the service that provides the remote object.
QString Tp::DBusProxy::objectPath | ( | ) | const |
Return the D-Bus object path of the remote object within the service.
bool Tp::DBusProxy::isValid | ( | ) | const |
Return whether this proxy is still valid (has not emitted invalidated()).
true
if still valid, false
otherwise. QString Tp::DBusProxy::invalidationReason | ( | ) | const |
Return the error name indicating the reason this proxy became invalid.
QString Tp::DBusProxy::invalidationMessage | ( | ) | const |
Return a debugging message indicating the reason this proxy became invalid.
|
signal |
Emitted when this object is no longer usable.
After this signal is emitted, any D-Bus method calls on the object will fail, but it may be possible to retrieve information that has already been retrieved and cached.
proxy | This proxy. |
errorName | The name of a D-Bus error describing the reason for the invalidation. |
errorMessage | A debugging message associated with the error. |
|
protected |
Sets the D-Bus bus name. This is used by subclasses after converting well-known names to unique names.
busName | The D-Bus bus name to set. |
|
protected |
Called by subclasses when the DBusProxy should become invalid.
This method takes care of setting the invalidationReason, invalidationMessage, and emitting the invalidated signal.
reason | A D-Bus error name (a string in a subset of ASCII, prefixed with a reversed domain name) |
message | A debugging message associated with the error |
|
protected |
TelepathyQt 0.9.8 |
Generated by
![]() |