![]() |
HAL
|
This class represents a channel in the channel model. It primarily holds the channel name and its entries. More...
#include <channel_item.h>
Public Member Functions | |
ChannelItem (QString name) | |
const QString | name () const |
const QList< ChannelEntry * > * | getEntries () const |
QReadWriteLock * | getLock () |
void | appendEntry (ChannelEntry *entry) |
This class represents a channel in the channel model. It primarily holds the channel name and its entries.
Definition at line 66 of file channel_item.h.
hal::ChannelItem::ChannelItem | ( | QString | name | ) |
The constructor
name | - The name of the channel. |
Definition at line 7 of file channel_item.cpp.
void hal::ChannelItem::appendEntry | ( | ChannelEntry * | entry | ) |
Append a given entry to the end of the message list. If the list's size exceeds the maximum number of allowed entries, the first entry in the list is removed.
entry | - The entry to append to the list. |
Definition at line 27 of file channel_item.cpp.
References MAX_CHANNEL_ENTIRES.
Referenced by hal::ChannelModel::handleLogmanagerCallback().
const QList< ChannelEntry * > * hal::ChannelItem::getEntries | ( | ) | const |
Get the List of all buffered messages.
Definition at line 17 of file channel_item.cpp.
Referenced by hal::LoggerWidget::handleCurrentFilterChanged().
QReadWriteLock * hal::ChannelItem::getLock | ( | ) |
Get the lock of the channel.
Definition at line 22 of file channel_item.cpp.
Referenced by hal::LoggerWidget::handleCurrentFilterChanged().
const QString hal::ChannelItem::name | ( | ) | const |
Get the channel's name.
Definition at line 12 of file channel_item.cpp.
Referenced by hal::ChannelModel::data(), and hal::LoggerWidget::handleCurrentFilterChanged().