-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.h
42 lines (35 loc) · 1020 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <QDir>
#include "fastDownload.h"
#include <Windows.h>
#include "SparrowCore_global.h"
namespace Sparrow::utils {
class __declspec(dllexport) fileInfo {
public:
QUrl fileUrl;
QString filePath;
QString hash;
qint8 size;
fastDownloadInfo getDownloadInfo();
fileInfo(void) {}
fileInfo(const QUrl& fileUrl, const QString& filePath, const QString& hash, const qint8& size);
};
class __declspec(dllexport) libraryFile : public fileInfo {
using fileInfo::fileInfo;
};
class __declspec(dllexport) nativesLibrary {
public:
libraryFile nativesLibrary_Windows;
libraryFile nativesLibrary_Linux;
libraryFile nativesLibrary_macOS;
nativesLibrary(void);
};
class __declspec(dllexport) nativesLibraryFile : public libraryFile {
public:
nativesLibrary classifiers;
nativesLibraryFile(void);
nativesLibraryFile(const libraryFile&, const nativesLibrary& e);
};
__declspec(dllexport) std::string getSystemName();
__declspec(dllexport) std::string getSystemVersion();
}