Home · All Classes · All Namespaces · Modules · Functions · Files |
#include <TelepathyQt/Channel>
Inherits Tp::AbstractInterface.
Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Interface.Subject2".
Tp::Client::ChannelInterfaceSubjectInterface::ChannelInterfaceSubjectInterface | ( | const QString & | busName, |
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceSubjectInterface 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::ChannelInterfaceSubjectInterface::ChannelInterfaceSubjectInterface | ( | const QDBusConnection & | connection, |
const QString & | busName, | ||
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceSubjectInterface 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::ChannelInterfaceSubjectInterface::ChannelInterfaceSubjectInterface | ( | Tp::DBusProxy * | proxy | ) |
Creates a ChannelInterfaceSubjectInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
Tp::Client::ChannelInterfaceSubjectInterface::ChannelInterfaceSubjectInterface | ( | const Tp::Client::ChannelInterface & | mainInterface | ) | [explicit] |
Creates a ChannelInterfaceSubjectInterface 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::ChannelInterfaceSubjectInterface::ChannelInterfaceSubjectInterface | ( | const Tp::Client::ChannelInterface & | mainInterface, |
QObject * | parent | ||
) |
Creates a ChannelInterfaceSubjectInterface 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. |
static QLatin1String Tp::Client::ChannelInterfaceSubjectInterface::staticInterfaceName | ( | ) | [inline, static] |
Returns the name of the interface "org.freedesktop.Telepathy.Channel.Interface.Subject2", which this class represents.
Tp::PendingVariant* Tp::Client::ChannelInterfaceSubjectInterface::requestPropertySubject | ( | ) | const [inline] |
Asynchronous getter for the remote object property Subject
of type QString
.
The human-readable subject on the channel such as the topic in an IRC channel, or the room name in XMPP MUCs.
This property may change during the lifetime of the channel and MUST not be included in a channel request.
Tp::PendingVariant* Tp::Client::ChannelInterfaceSubjectInterface::requestPropertyActor | ( | ) | const [inline] |
Asynchronous getter for the remote object property Actor
of type QString
.
The normalized contact ID representing who last modified the subject, or the empty string if it is not known.
Tp::PendingVariant* Tp::Client::ChannelInterfaceSubjectInterface::requestPropertyTimestamp | ( | ) | const [inline] |
Asynchronous getter for the remote object property Timestamp
of type qlonglong
.
A unix timestamp indicating when the subject was last
modified, or INT_MAX64
if unknown.
Tp::PendingVariant* Tp::Client::ChannelInterfaceSubjectInterface::requestPropertyCanSet | ( | ) | const [inline] |
Asynchronous getter for the remote object property CanSet
of type bool
.
TRUE if the Subject property can be set by the user by calling SetSubject() , otherwise FALSE.
If implementations are unsure of what this value should be it SHOULD still be set to what it believes the value is. As a result, clients should be aware that SetSubject() can still fail even with this property set to TRUE.
Tp::PendingVariantMap* Tp::Client::ChannelInterfaceSubjectInterface::requestAllProperties | ( | ) | const [inline] |
Request all of the DBus properties on the interface.
QDBusPendingReply Tp::Client::ChannelInterfaceSubjectInterface::SetSubject | ( | const QString & | subject, |
int | timeout = -1 |
||
) | [inline, slot] |
Begins a call to the D-Bus method SetSubject
on the remote object.
Set the room's subject. Clients SHOULD look at the subject flags before calling this method as the user might not have permission to set the subject.
A successful return of this method indicates a successful change in subject, but clients should still listen for changes to the Subject property for further changes by other users or the server.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
subject | The new subject. |
timeout | The timeout in milliseconds. |
void Tp::Client::ChannelInterfaceSubjectInterface::invalidate | ( | Tp::DBusProxy * | proxy, |
const QString & | error, | ||
const QString & | message | ||
) | [protected, virtual] |
Reimplemented from Tp::AbstractInterface.
Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation | Telepathy-Qt 0.9.4 |