mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
Init commit
This commit is contained in:
33
Core/tools.h
Normal file
33
Core/tools.h
Normal 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
|
||||
Reference in New Issue
Block a user