Init commit

This commit is contained in:
semenov
2024-08-14 10:02:09 +03:00
parent 1870d26468
commit c00efe0177
41 changed files with 2051 additions and 0 deletions

33
Core/tools.h Normal file
View File

@@ -0,0 +1,33 @@
#ifndef GLOBAL_H
#define GLOBAL_H
#include <QString>
#include <QTime>
#include <QDebug>
#define TCP_READ_TIMEOUT 1000
static QString hashFilename = "hash.xml";
static QString settingsName = "settings.xml";
enum PacketType{
TYPE_NONE = 0,
TYPE_MSG = 1,
TYPE_FILE = 2,
TYPE_COMMAND = 3,
TYPE_FOLDER = 4,
TYPE_DELETE = 5,
TYPE_FINISH = 6,
TYPE_NEEDUPDATE =7
};
class Tools {
public:
static void PrintTime();
static QString GetTime();
static QString CreateLocalPath(QString path);
static QString CreateFullPath(QString path);
};
#endif // GLOBAL_H