mirror of
https://github.com/tnodir/fort
synced 2024-11-17 02:36:30 +00:00
42 lines
819 B
C
42 lines
819 B
C
|
#ifndef LOGENTRY_H
|
||
|
#define LOGENTRY_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class LogEntry : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_PROPERTY(quint32 ip READ ip WRITE setIp NOTIFY ipChanged)
|
||
|
Q_PROPERTY(quint32 pid READ pid WRITE setPid NOTIFY pidChanged)
|
||
|
Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged)
|
||
|
|
||
|
public:
|
||
|
explicit LogEntry(QObject *parent = nullptr);
|
||
|
|
||
|
quint32 ip() const { return m_ip; }
|
||
|
void setIp(quint32 ip);
|
||
|
|
||
|
quint32 pid() const { return m_pid; }
|
||
|
void setPid(quint32 pid);
|
||
|
|
||
|
QString path() const { return m_path; }
|
||
|
void setPath(const QString &path);
|
||
|
|
||
|
signals:
|
||
|
void ipChanged();
|
||
|
void pidChanged();
|
||
|
void pathChanged();
|
||
|
|
||
|
public slots:
|
||
|
|
||
|
private:
|
||
|
friend class LogBuffer;
|
||
|
|
||
|
private:
|
||
|
quint32 m_ip;
|
||
|
quint32 m_pid;
|
||
|
QString m_path;
|
||
|
};
|
||
|
|
||
|
#endif // LOGENTRY_H
|