fort/src/ui/log/logentryblocked.h

41 lines
968 B
C
Raw Normal View History

#ifndef LOGENTRYBLOCKED_H
#define LOGENTRYBLOCKED_H
2017-08-25 16:04:46 +00:00
2017-11-07 10:58:30 +00:00
#include "logentry.h"
2017-08-25 16:04:46 +00:00
2017-11-07 10:58:30 +00:00
class LogEntryBlocked : public LogEntry
2017-08-25 16:04:46 +00:00
{
public:
explicit LogEntryBlocked(quint32 ip = 0, quint16 port = 0,
quint8 proto = 0, quint32 pid = 0,
2017-11-17 03:46:35 +00:00
const QString &kernelPath = QString());
2017-08-25 16:04:46 +00:00
2019-02-08 08:19:20 +00:00
LogEntry::LogType type() const override { return AppBlocked; }
2017-11-07 10:58:30 +00:00
quint8 proto() const { return m_proto; }
void setProto(quint8 proto);
quint16 port() const { return m_port; }
void setPort(quint16 port);
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-12-01 14:13:06 +00:00
QString path() const;
2017-08-25 16:04:46 +00:00
private:
quint8 m_proto;
quint16 m_port;
2017-08-25 16:04:46 +00:00
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