fort/src/ui/log/logentrystattraf.h

31 lines
821 B
C
Raw Normal View History

2017-11-27 07:04:10 +00:00
#ifndef LOGENTRYSTATTRAF_H
#define LOGENTRYSTATTRAF_H
#include "logentry.h"
class LogEntryStatTraf : public LogEntry
{
public:
explicit LogEntryStatTraf(quint16 procCount = 0,
2017-11-29 10:12:34 +00:00
const quint8 *procBits = nullptr,
2017-11-27 07:04:10 +00:00
const quint32 *trafBytes = nullptr);
virtual LogEntry::LogType type() const { return StatTraf; }
quint16 procCount() const { return m_procCount; }
void setProcCount(quint16 procCount);
2017-11-29 10:12:34 +00:00
const quint8 *procBits() const { return m_procBits; }
void setProcBits(const quint8 *procBits);
2017-11-27 07:04:10 +00:00
const quint32 *trafBytes() const { return m_trafBytes; }
void setTrafBytes(const quint32 *trafBytes);
private:
quint16 m_procCount;
2017-11-29 10:12:34 +00:00
const quint8 *m_procBits;
2017-11-27 07:04:10 +00:00
const quint32 *m_trafBytes;
};
#endif // LOGENTRYSTATTRAF_H