Home · Modules · All Classes · All Namespaces |
#include <TelepathyQt/Channel>
Inherits Tp::AbstractInterface.
Public Slots | |
QDBusPendingReply | Destroy (int timeout=-1) |
Public Member Functions | |
ChannelInterfaceDestroyableInterface (const QString &busName, const QString &objectPath, QObject *parent=0) | |
ChannelInterfaceDestroyableInterface (const QDBusConnection &connection, const QString &busName, const QString &objectPath, QObject *parent=0) | |
ChannelInterfaceDestroyableInterface (Tp::DBusProxy *proxy) | |
ChannelInterfaceDestroyableInterface (const Tp::Client::ChannelInterface &mainInterface) | |
ChannelInterfaceDestroyableInterface (const Tp::Client::ChannelInterface &mainInterface, QObject *parent) | |
Tp::PendingVariantMap * | requestAllProperties () const |
Public Member Functions inherited from Tp::AbstractInterface | |
virtual | ~AbstractInterface () |
bool | isValid () const |
QString | invalidationReason () const |
QString | invalidationMessage () const |
void | setMonitorProperties (bool monitorProperties) |
bool | isMonitoringProperties () const |
Static Public Member Functions | |
static QLatin1String | staticInterfaceName () |
Protected Member Functions | |
virtual void | invalidate (Tp::DBusProxy *, const QString &, const QString &) |
Protected Member Functions inherited from Tp::AbstractInterface | |
AbstractInterface (DBusProxy *proxy, const QLatin1String &interface) | |
AbstractInterface (const QString &busName, const QString &path, const QLatin1String &interface, const QDBusConnection &connection, QObject *parent) | |
PendingVariant * | internalRequestProperty (const QString &name) const |
PendingOperation * | internalSetProperty (const QString &name, const QVariant &newValue) |
PendingVariantMap * | internalRequestAllProperties () const |
Additional Inherited Members | |
Signals inherited from Tp::AbstractInterface | |
void | propertiesChanged (const QVariantMap &changedProperties, const QStringList &invalidatedProperties) |
Protected Slots inherited from Tp::AbstractInterface |
Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Interface.Destroyable".
Tp::Client::ChannelInterfaceDestroyableInterface::ChannelInterfaceDestroyableInterface | ( | const QString & | busName, |
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceDestroyableInterface associated with the given object on the session bus.
busName | Name of the service the object is on. |
objectPath | Path to the object on the service. |
parent | Passed to the parent class constructor. |
Tp::Client::ChannelInterfaceDestroyableInterface::ChannelInterfaceDestroyableInterface | ( | const QDBusConnection & | connection, |
const QString & | busName, | ||
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceDestroyableInterface associated with the given object on the given bus.
connection | The bus via which the object can be reached. |
busName | Name of the service the object is on. |
objectPath | Path to the object on the service. |
parent | Passed to the parent class constructor. |
Tp::Client::ChannelInterfaceDestroyableInterface::ChannelInterfaceDestroyableInterface | ( | Tp::DBusProxy * | proxy | ) |
Creates a ChannelInterfaceDestroyableInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
|
explicit |
Creates a ChannelInterfaceDestroyableInterface associated with the same object as the given proxy. Additionally, the created proxy will have the same parent as the given proxy.
mainInterface | The proxy to use. |
Tp::Client::ChannelInterfaceDestroyableInterface::ChannelInterfaceDestroyableInterface | ( | const Tp::Client::ChannelInterface & | mainInterface, |
QObject * | parent | ||
) |
Creates a ChannelInterfaceDestroyableInterface associated with the same object as the given proxy. However, a different parent object can be specified.
mainInterface | The proxy to use. |
parent | Passed to the parent class constructor. |
|
inlinestatic |
Returns the name of the interface "org.freedesktop.Telepathy.Channel.Interface.Destroyable", which this class represents.
|
inline |
Request all of the DBus properties on the interface.
|
inlineslot |
Begins a call to the D-Bus method Destroy
on the remote object.
Close the channel abruptly, possibly with loss of data. The connection manager MUST NOT re-create the channel unless/until more events occur.
The main motivating situation for this method is that when a Text channel with pending messages is closed with Close, it comes back as an incoming channel (to avoid a race between Close and an incoming message). If Destroy is called on a Text channel, the CM should delete all pending messages and close the channel, and the channel shouldn't be re-created until/unless another message arrives.
Most clients SHOULD call ChannelInterface::Close() instead. However, if a client explicitly intends to destroy the channel with possible loss of data, it SHOULD call this method if this interface is supported (according to the ChannelInterface::Interfaces property), falling back to Close if not.
In particular, channel dispatchers SHOULD use this method if available when terminating channels that cannot be handled correctly (for instance, if no handler has been installed for a channel type, or if the handler crashes repeatedly).
Connection managers do not need to implement this interface on channels where Close and Destroy would be equivalent.
Callers need to be able to fall back to Close in any case.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
|
protectedvirtual |
Reimplemented from Tp::AbstractInterface.
TelepathyQt 0.9.8 | Generated by 1.8.15 |