9#ifndef __KCHATBASEMODEL_H__
10#define __KCHATBASEMODEL_H__
13#include "kdegamesprivate_export.h"
15#include <QAbstractListModel>
17#include <QSharedDataPointer>
21class KChatBaseModelPrivate;
22class KChatBaseMessagePrivate;
93 void setNameFont(
const QFont &font);
99 void setMessageFont(
const QFont &font);
107 void setBothFont(
const QFont &font);
112 void setSystemNameFont(
const QFont &font);
117 void setSystemMessageFont(
const QFont &font);
122 void setSystemBothFont(
const QFont &font);
131 const QFont &nameFont()
const;
140 const QFont &messageFont()
const;
145 const QFont &systemNameFont()
const;
150 const QFont &systemMessageFont()
const;
161 virtual void saveConfig(
KConfig *conf =
nullptr);
168 virtual void readConfig(
KConfig *conf =
nullptr);
177 void setMaxItems(
int maxItems);
188 int maxItems()
const;
202 virtual void addMessage(
const QString &fromName,
const QString &text);
210 virtual void addSystemMessage(
const QString &fromName,
const QString &text);
219 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 Oct 11 2024 12:12:34 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.