bugfix: segregate send and delete list to client

This commit is contained in:
semenov
2025-11-20 13:04:36 +03:00
parent bd0bed926c
commit 7e27584c5a
6 changed files with 47 additions and 39 deletions

View File

@@ -19,7 +19,7 @@ public:
this->port = port;
this->fullName = "Name: " + name + " IP: " + address + " port : " + port + " login: " + login;
};
~Client();
~Client(){};
public:
QString getFullName()
@@ -127,6 +127,28 @@ public:
clientHash = value;
}
QList<FileData> getFileSendList() const
{
return fileSendList;
}
void setFileSendList(const QList<FileData> &value)
{
fileSendList = value;
}
QList<FileData> getFileDeleteList() const
{
return fileDeleteList;
}
void setFileDeleteList(const QList<FileData> &value)
{
fileDeleteList = value;
}
private:
QString name;
QString address;
@@ -141,6 +163,10 @@ private:
TypeClientAutorization typeClient;
UserType userType;
QByteArray clientHash;
QList<FileData> fileSendList;
QList<FileData> fileDeleteList;
};
#endif // CLIENT_H