QcChatLog Class
The latest chat lines everyone on the server saw (decision E-848): players' chat and /say, with when and from whom, numbered in the order they came, for the admin channel's chat view. More...
| Header: | #include <server/admin/QcChatLog.h> |
Public Functions
| void | add(const QString &sender, const QcMsg::ChatMessage &line) |
| quint64 | latest() const |
| QList<QcMsg::AdminChatLine> | since(quint64 after) const |
Static Public Members
| const qsizetype | limit |
Detailed Description
Member Function Documentation
void QcChatLog::add(const QString &sender, const QcMsg::ChatMessage &line)
Adds line from sender with the next number; sender is empty for lines of the server.
quint64 QcChatLog::latest() const
Returns the number of the newest line; 0 before the first.
QList<QcMsg::AdminChatLine> QcChatLog::since(quint64 after) const
Returns the lines after the one numbered after, oldest first (at most limit).
Member Variable Documentation
const qsizetype QcChatLog::limit
Lines kept at most; the oldest goes first.