kopete/libkopete
Go to the documentation of this file.
22 #ifndef KOPETEMESSAGE_H
23 #define KOPETEMESSAGE_H
25 #include <QtCore/QSharedData>
26 #include <QtCore/QList>
148 explicit Message(
const Contact *fromKC,
const QList<Contact*> &contacts);
172 static uint nextId();
178 QDateTime timestamp()
const;
184 void setTimestamp(
const QDateTime ×tamp);
192 bool delayed()
const;
198 void setDelayed(
bool delay);
210 QList<Contact*> to()
const;
217 MessageType type()
const;
224 void setType(MessageType type);
231 QString requestedPlugin()
const;
241 void setRequestedPlugin(
const QString &requestedPlugin);
247 QColor foregroundColor()
const;
253 QColor backgroundColor()
const;
259 bool isRightToLeft()
const;
265 const QStringList regexpPatterns();
277 QString subject()
const;
283 void setSubject(
const QString &subject);
290 const QTextDocument *body()
const;
296 Qt::TextFormat format()
const;
302 MessageDirection direction()
const;
309 void setDirection(MessageDirection direction);
316 MessageImportance importance()
const;
323 void setImportance(MessageImportance importance);
329 MessageState state()
const;
336 void setState(MessageState state);
343 void setForegroundColor(
const QColor &color );
350 void setBackgroundColor(
const QColor &color );
357 void setFont(
const QFont &font );
364 void setPlainBody(
const QString &body);
371 void setHtmlBody(
const QString &body);
378 void setForcedHtmlBody(
const QString &body);
385 void setBody(
const QTextDocument *body);
391 QString plainBody()
const;
401 QString escapedBody()
const;
408 QString parsedBody()
const;
429 void KDE_DEPRECATED setBackgroundOverride(
bool enable );
434 void KDE_DEPRECATED setForegroundOverride(
bool enable );
439 void KDE_DEPRECATED setRichTextOverride(
bool enable );
444 void setFormattingOverride(
bool enable );
450 QString getHtmlStyleAttribute()
const;
456 void setFileTransferDisabled(
bool disabled );
462 bool fileTransferDisabled()
const;
468 void setFileName(
const QString &fileName );
474 QString fileName()
const;
480 void setFileSize(
unsigned long size );
486 unsigned long fileSize()
const;
492 void setFilePreview(
const QPixmap &preview );
498 QPixmap filePreview()
const;
504 QStringList classes()
const;
511 void addClass(
const QString& classe);
518 void setClasses(
const QStringList &classes);
529 static QString unescape(
const QString &xml );
535 static QString escape(
const QString & );
551 static QString decodeString(
const QByteArray &message,
552 const QTextCodec *providedCodec = 0L,
bool *success = 0L );
557 QSharedDataPointer<Private> d;
564 void doSetBody( QString body, Qt::TextFormat format = Qt::PlainText );
571 void doSetBody (
const QTextDocument *body, Qt::TextFormat format = Qt::PlainText);
577 static QString parseLinks(
const QString &message, Qt::TextFormat format );
A incoming file transfer request message.
MessageDirection
Direction of a message.
MessageImportance
Specifies the type of notification that will be sent with this message.
MessageType
Specifies the type of the message.
Representation of a message in Kopete.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.