Methods
SetSubject | (s: Subject) | → | nothing |
Properties
Subject | s | Read only | ||
Actor | s | Read only | ||
ActorHandle | u (Contact_Handle) | Read only | ||
Timestamp | x (Unix_Timestamp64) | Read only | ||
CanSet | b | Read only |
Description
An interface channels can implement to support subjects. Most of the time this will be implemented by channels implementing the Room2 interface, but some protocols support subjects in 1-to-1 chats (such as Skype). Note that this interface is not restricted to Text channels, and can also be used on Call channels.
Methods
SetSubject (s: Subject) → nothing
Parameters
- Subject — s
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.
Possible Errors
- Not Implemented
- Permission Denied
Properties
Subject — s
org.freedesktop.DBus.Properties.PropertiesChanged
signal is emitted with the new value.
The human-readable subject on the channel such as the topic in an IRC channel, or the room name in XMPP MUCs.
Rationale:
This property may change during the lifetime of the channel and MUST not be included in a channel request.
Actor — s
org.freedesktop.DBus.Properties.PropertiesChanged
signal is emitted with the new value.
The normalized contact ID representing who last modified the subject, or the empty string if it is not known.
Rationale:
ActorHandle — u (Contact_Handle)
org.freedesktop.DBus.Properties.PropertiesChanged
signal is emitted with the new value.
The handle corresponding to Actor.
Timestamp — x (Unix_Timestamp64)
org.freedesktop.DBus.Properties.PropertiesChanged
signal is emitted with the new value.
A unix timestamp indicating when the subject was last modified.
Rationale:
CanSet — b
org.freedesktop.DBus.Properties.PropertiesChanged
signal is emitted with the new value.
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.