fort/src/ui/log/logentryblocked.h

41 lines
1006 B
C
Raw Normal View History

#ifndef LOGENTRYBLOCKED_H
#define LOGENTRYBLOCKED_H
2017-08-25 16:04:46 +00:00
#include <QObject>
class LogEntryBlocked : public QObject
2017-08-25 16:04:46 +00:00
{
Q_OBJECT
Q_PROPERTY(quint32 ip READ ip WRITE setIp NOTIFY ipChanged)
Q_PROPERTY(quint32 pid READ pid WRITE setPid NOTIFY pidChanged)
2017-09-13 08:26:51 +00:00
Q_PROPERTY(QString kernelPath READ kernelPath WRITE setKernelPath NOTIFY kernelPathChanged)
2017-08-25 16:04:46 +00:00
public:
explicit LogEntryBlocked(quint32 ip = 0, quint32 pid = 0,
const QString &kernelPath = QString(),
QObject *parent = nullptr);
2017-08-25 16:04:46 +00:00
quint32 ip() const { return m_ip; }
void setIp(quint32 ip);
quint32 pid() const { return m_pid; }
void setPid(quint32 pid);
2017-09-13 08:26:51 +00:00
QString kernelPath() const { return m_kernelPath; }
void setKernelPath(const QString &kernelPath);
2017-09-04 11:39:15 +00:00
2017-08-25 16:04:46 +00:00
signals:
void ipChanged();
void pidChanged();
2017-09-13 08:26:51 +00:00
void kernelPathChanged();
2017-08-25 16:04:46 +00:00
public slots:
private:
quint32 m_ip;
quint32 m_pid;
2017-09-13 08:26:51 +00:00
QString m_kernelPath;
2017-08-25 16:04:46 +00:00
};
#endif // LOGENTRYBLOCKED_H