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