157 ParticipantStatusChange,
162 ParticipantRoleAffiliationChange,
175 ParticipantNickChange,
179 ParticipantEndedConversation,
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 Type GetMessageType() const =0
Returns the type of this message.
virtual void SetDateTime(const QDateTime ×tamp)=0
Updates the timestamp of the message.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IMessage,"org.LeechCraft.Azoth.IMessage/1.0")
The message is from us to the remote party.
virtual QDateTime GetDateTime() const =0
Returns the timestamp of the message.
virtual QString GetOtherVariant() const =0
The variant of the other part.
virtual SubType GetMessageSubType() const =0
Returns the subtype of this message.
virtual QObject * OtherPart() const =0
Returns the CL entry from which this message is.
virtual void SetBody(const QString &body)=0
Updates the body of the message.
SubType
This enum is used for more precise classification of chat types messages.
virtual QObject * GetQObject()=0
Returns this message as a QObject.
The message is from the remote party to us.
virtual QString GetBody() const =0
Returns the body of the message.
virtual Direction GetDirection() const =0
Returns the direction of this message.
virtual void Send()=0
Sends the message.
virtual EscapePolicy GetEscapePolicy() const
Returns the escape policy of the body.
Type
Represents possible message types.
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.
This interface is used to represent a message.
virtual QObject * ParentCLEntry() const
Returns the parent CL entry of this message.