ref: segregate systems, codestyle, busy message

This commit is contained in:
semenov
2024-12-27 15:41:41 +03:00
parent fc7f311d1e
commit f444b48892
103 changed files with 4756 additions and 2763 deletions

59
Data/Datas.h Normal file
View File

@@ -0,0 +1,59 @@
#ifndef DATAS_H
#define DATAS_H
#include <QString>
class ServerSettings{
public:
QString Address;
QString Port;
QString Language;
QString LocalVersionName;
bool isAutoStart;
};
class ServerAuthorization{
public:
QString InstructorName;
QString ClientName;
bool Result;
QString AccessType;
};
class ClientAutorization{
public:
QString Login;
QString Password;
};
class ServerMessage
{
public:
QString Text;
};
class ClientMessage
{
public:
QString Text;
};
class ServerTask
{
public:
QString Text;
};
class ServerNotify
{
public:
QString Code;
};
class ClientNotify
{
public:
QString Code;
};
#endif // DATAS_H

38
Data/FileData.h Normal file
View File

@@ -0,0 +1,38 @@
#include <QList>
#include <QString>
#ifndef FILEDATA_H
#define FILEDATA_H
struct FileData
{
QString path;
QString hash;
bool operator==(const FileData& other)const
{
if(this->path==(other.path)) return true;
return false;
}
bool operator<(const FileData& data2) const
{
return this->hash == "FOLDER" && data2.hash !="FOLDER";
}
}; //путь
struct SAttribute
{
QString name;
QString value;
};
struct SXmlAnswerTag{
QString elementName;
QList<SAttribute> attr;
};
#endif // FILEDATA_H

View File

@@ -0,0 +1,60 @@
#ifndef STREAMINGVERSIONDATA_H
#define STREAMINGVERSIONDATA_H
#include <QObject>
#include <qdatetime.h>
class StreamingVersionData
{
public:
StreamingVersionData(){}
StreamingVersionData(QString absoltePath,QString viewName,QDateTime data,qint32 size)
{
this->absolutePath = absoltePath;
this->viewName = viewName;
this->createData = data;
this->size = size;
}
void setName(QString viewName)
{
this->viewName = viewName;
}
void setCreateData(QDateTime data)
{
this->createData = data;
}
~StreamingVersionData();
QString getAbsolutPath() const
{
return absolutePath;
}
QString getViewName() const
{
return viewName;
}
QDateTime getCreateData() const
{
return createData;
}
qint32 getSize() const
{
return size;
}
private:
QString absolutePath;
QString viewName;
QDateTime createData;
qint32 size;
};
#endif // STREAMINGVERSIONDATA_H