Logo Search packages:      
Sourcecode: kmess version File versions

ChatMessage Class Reference
[network]

#include <chatmessage.h>

List of all members.


Detailed Description

A class describing a chat message.

Author:
Diederik van der Boor

Definition at line 36 of file chatmessage.h.


Public Types

enum  ContentsClass {
  CONTENT_MESSAGE, CONTENT_MESSAGE_INK, CONTENT_NOTIFICATION_NUDGE, CONTENT_NOTIFICATION_WINK,
  CONTENT_NOTIFICATION_JOINED, CONTENT_NOTIFICATION_LEFT, CONTENT_NOTIFICATION_STATUS, CONTENT_SYSTEM_NOTICE,
  CONTENT_SYSTEM_ERROR, CONTENT_APP_INFO, CONTENT_APP_INVITE, CONTENT_APP_STARTED,
  CONTENT_APP_ENDED, CONTENT_APP_FAILED, CONTENT_APP_CANCELED
}
enum  MessageType {
  TYPE_INCOMING, TYPE_OUTGOING, TYPE_APPLICATION, TYPE_APPLICATION_FILE,
  TYPE_APPLICATION_WEBCAM, TYPE_APPLICATION_AUDIO, TYPE_NOTIFICATION, TYPE_SYSTEM,
  TYPE_OFFLINE_INCOMING
}

Public Member Functions

 ChatMessage (const MessageType type, const ContentsClass contentsClass, bool isIncoming, const QString &body, const QString &contactHandle, const QString &contactName=QString::null, const QString &contactPicturePath=QString::null, const QFont &font=QFont(), const QString &fontColor=QString::null, const QDateTime &time=QDateTime::currentDateTime())
ChatMessageclone () const
const QString & getBody () const
const QString & getContactHandle () const
const QString & getContactName () const
const QString & getContactPicturePath () const
ContentsClass getContentsClass () const
const QDateTime & getDateTime () const
const QFont & getFont () const
const QString & getFontColor () const
const QTime getTime () const
MessageType getType () const
bool hasHtmlBody () const
bool isIncoming () const
bool isNormalMessage () const

Private Attributes

QString body_
QString contactHandle_
QString contactName_
QString contactPicturePath_
ContentsClass contentsClass_
QFont font_
QString fontColor_
bool isIncoming_
QDateTime time_
MessageType type_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index