Logo Search packages:      
Sourcecode: kmess version File versions

ChatMessage Class Reference

#include <chatmessage.h>

List of all members.


Detailed Description

A class describing a chat message.
Author:
Diederik van der Boor

Definition at line 32 of file chatmessage.h.


Public Types

enum  MessageType {
  TYPE_INCOMING, TYPE_OUTGOING, TYPE_APPLICATION, TYPE_NOTIFICATION,
  TYPE_SYSTEM, TYPE_OFFLINE_INCOMING
}

Public Member Functions

 ChatMessage (const MessageType type, const QString &body, const QString &contactHandle, const QString &contactName, const QString &contactPicturePath, const QFont &font, const QString &fontColor, const QDateTime &time=QDateTime::currentDateTime())
 ChatMessage (const MessageType type, const QString &body, const QString &contactHandle=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
const QDateTime & getDateTime () const
const QFont & getFont () const
const QString & getFontColor () const
const QTime getTime () const
MessageType getType () const
bool isNormalMessage () const

Private Attributes

QString body_
QString contactHandle_
QString contactName_
QString contactPicturePath_
QFont font_
QString fontColor_
QDateTime time_
MessageType type_

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

Generated by  Doxygen 1.6.0   Back to index