204 virtual void Send () = 0;
214 virtual void Store () = 0;
287 virtual QString
GetBody ()
const = 0;
295 virtual void SetBody (
const QString& body) = 0;
330 body.replace (
'&',
"&");
331 body.replace (
'"',
""");
332 body.replace (
'<',
"<");
333 body.replace (
'>',
">");
349 virtual void SetDateTime (
const QDateTime& timestamp) = 0;
355 "org.LeechCraft.Azoth.IMessage/1.0");
Notifies about participant joining to a MUC room.
virtual SubType GetMessageSubType() const =0
Returns the subtype of this message.
virtual void SetDateTime(const QDateTime ×tamp)=0
Updates the timestamp of the message.
Represents status change of a participant in a chat or MUC room.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IMessage,"org.LeechCraft.Azoth.IMessage/1.0")
The message is from us to the remote party.
virtual Direction GetDirection() const =0
Returns the direction of this message.
Notifies about changing subject in a MUC room.
virtual void SetBody(const QString &body)=0
Updates the body of the message.
virtual Type GetMessageType() const =0
Returns the type of this message.
SubType
This enum is used for more precise classification of chat types messages.
Notifies about participant leaving a MUC room.
virtual QDateTime GetDateTime() const =0
Returns the timestamp of the message.
virtual QObject * GetQObject()=0
Returns this message as a QObject.
The participant has ended the conversation.
The message is from the remote party to us.
virtual QString GetOtherVariant() const =0
The variant of the other part.
Standard one-to-one message.
virtual void Send()=0
Sends the message.
virtual EscapePolicy GetEscapePolicy() const
Returns the escape policy of the body.
Type
Represents possible message types.
Status changes in a chat.
Notifies about participant in a MUC changing the nick.
virtual QString GetBody() const =0
Returns the body of the message.
Message in a multiuser conference.
Various events in a chat.
Direction
Represents the direction of the message.
virtual void Store()=0
Stores the message.
QString GetEscapedBody() const
Returns the body according to the escape policy.
Represents permission changes of a participant in a chat or MUC room.
virtual QObject * OtherPart() const =0
Returns the CL entry from which this message is.
This interface is used to represent a message.
virtual QObject * ParentCLEntry() const
Returns the parent CL entry of this message.