9#ifndef __KCHATBASEMODEL_H__
10#define __KCHATBASEMODEL_H__
13#include "kdegamesprivate_export.h"
15#include <QAbstractListModel>
17#include <QSharedDataPointer>
21class KChatBaseModelPrivate;
22class KChatBaseMessagePrivate;
96 void setNameFont(
const QFont &font);
102 void setMessageFont(
const QFont &font);
110 void setBothFont(
const QFont &font);
115 void setSystemNameFont(
const QFont &font);
120 void setSystemMessageFont(
const QFont &font);
125 void setSystemBothFont(
const QFont &font);
134 const QFont &nameFont()
const;
143 const QFont &messageFont()
const;
148 const QFont &systemNameFont()
const;
153 const QFont &systemMessageFont()
const;
164 virtual void saveConfig(
KConfig *conf =
nullptr);
171 virtual void readConfig(
KConfig *conf =
nullptr);
180 void setMaxItems(
int maxItems);
191 int maxItems()
const;
205 virtual void addMessage(
const QString &fromName,
const QString &text);
213 virtual void addSystemMessage(
const QString &fromName,
const QString &text);
222 std::unique_ptr<KChatBaseModelPrivate>
const d;
The class of the elements stored in the chat list model.
KChatBaseMessage(const KChatBaseMessage &m)
Copy constructor.
virtual ~KChatBaseMessage()
Default destructor.
MessageType
The different types of messages.
The model used to store messages displayed in the chat dialog messages list.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:46:32 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.