增加手动移出白名单
连续连接移出白名单
This commit is contained in:
筱傑
2019-01-12 10:40:27 +08:00
committed by GitHub
parent a4379453a9
commit 6a70501baa
24 changed files with 2299 additions and 0 deletions

26
model.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef MODEL_H
#define MODEL_H
#include <QString>
#include <QDateTime>
struct BlackListItem
{
BlackListItem(){}
BlackListItem(int id, QString ip, QDateTime time, QString remarks)
: ID(id), IP(ip), Time(time), Remarks(remarks) {}
int ID;
QString IP;
QDateTime Time;
QString Remarks;
};
struct WhiteListItem
{
WhiteListItem(){}
WhiteListItem(int id, QString ip, int port, QDateTime time)
: ID(id), IP(ip), Port(port), LastUpdateTime(time) {}
int ID;
QString IP;
int Port;
QDateTime LastUpdateTime;
};
#endif // MODEL_H