KDEGames
9 #ifndef __KCHATBASEMODEL_H__
10 #define __KCHATBASEMODEL_H__
13 #include "kdegamesprivate_export.h"
15 #include <QAbstractListModel>
17 #include <QSharedDataPointer>
21 class KChatBaseModelPrivate;
22 class 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;
QPair< T1, T2 > & operator=(const QPair< TT1, TT2 > &p)
The class of the elements stored in the chat list model.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:08:40 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.