HAL
channel_item.cpp
Go to the documentation of this file.
2 
3 #define MAX_CHANNEL_ENTIRES 1000
4 
5 namespace hal
6 {
8  : mName(name)
9  {
10  }
11 
12  const QString ChannelItem::name() const
13  {
14  return mName;
15  }
16 
18  {
19  return &mLogEntries;
20  }
21 
23  {
24  return &mLock;
25  }
26 
28  {
29  if (mLogEntries.size() == MAX_CHANNEL_ENTIRES)
30  mLogEntries.removeFirst();
31 
32  mLogEntries.append(entry);
33  }
34 }
#define MAX_CHANNEL_ENTIRES
Definition: channel_item.cpp:3
void appendEntry(ChannelEntry *entry)
const QString name() const
const QList< ChannelEntry * > * getEntries() const
QReadWriteLock * getLock()
ChannelItem(QString name)
Definition: channel_item.cpp:7
std::string name
The ChannelEntry struct is used by the ChannelItem class to store a single entry.
Definition: channel_item.h:44