KChatBaseMessage

Search for usage in LXR

KChatBaseMessage Class Reference

#include <KChatBaseModel>

Inheritance diagram for KChatBaseMessage:

Public Types

enum  MessageType { Normal, System }
 

Public Member Functions

 KChatBaseMessage ()
 
 KChatBaseMessage (const KChatBaseMessage &m)
 
 KChatBaseMessage (const QString &sender, const QString &message, MessageType type=Normal)
 
virtual ~KChatBaseMessage ()
 
KChatBaseMessageoperator= (const KChatBaseMessage &m)
 
- Public Member Functions inherited from QPair< QString, QString >
 QPair (const QPair< TT1, TT2 > &p)
 
 QPair (const T1 &value1, const T2 &value2)
 
 QPair (QPair< TT1, TT2 > &&p)
 
bool operator!= (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
bool operator< (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
QDataStreamoperator<< (QDataStream &out, const QPair< T1, T2 > &pair)
 
bool operator<= (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
QPair< T1, T2 > & operator= (const QPair< TT1, TT2 > &p)
 
QPair< T1, T2 > & operator= (QPair< TT1, TT2 > &&p)
 
bool operator== (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
bool operator> (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
bool operator>= (const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
 
QDataStreamoperator>> (QDataStream &in, QPair< T1, T2 > &pair)
 
QPair< T1, T2 > qMakePair (const T1 &value1, const T2 &value2)
 
void swap (QPair< T1, T2 > &lhs, QPair< T1, T2 > &rhs)
 
void swap (QPair< T1, T2 > &other)
 

Additional Inherited Members

- Public Attributes inherited from QPair< QString, QString >
typedef first_type
 
typedef second_type
 

Detailed Description

The class of the elements stored in the chat list model.

It's a pair of strings where the first element is the sender name and the second one is the actual message. It furthermore indicates the type of the message: normal or system

Definition at line 37 of file kchatbasemodel.h.

Member Enumeration Documentation

◆ MessageType

The different types of messages.

Definition at line 41 of file kchatbasemodel.h.

Constructor & Destructor Documentation

◆ KChatBaseMessage() [1/3]

KChatBaseMessage::KChatBaseMessage ( )

Default constructor.

Necessary for Qt metatypes

Definition at line 30 of file kchatbasemodel.cpp.

◆ KChatBaseMessage() [2/3]

KChatBaseMessage::KChatBaseMessage ( const QString sender,
const QString message,
MessageType  type = Normal 
)

Initializing constructor.

Definition at line 35 of file kchatbasemodel.cpp.

◆ KChatBaseMessage() [3/3]

KChatBaseMessage::KChatBaseMessage ( const KChatBaseMessage m)
default

Copy constructor.

Necessary for Qt metatypes

◆ ~KChatBaseMessage()

KChatBaseMessage::~KChatBaseMessage ( )
virtualdefault

Default destructor.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 03:50:22 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.