CQtDeployer/Deploy/deploy.h

63 lines
1.2 KiB
C
Raw Normal View History

2018-08-19 11:00:13 +03:00
/*
* Copyright (C) 2018-2021 QuasarApp.
2018-08-19 11:00:13 +03:00
* Distributed under the lgplv3 software license, see the accompanying
* Everyone is permitted to copy and distribute verbatim copies
* of this license document, but changing it is not allowed.
2018-10-24 17:26:42 +03:00
*/
2018-08-19 11:00:13 +03:00
2018-08-17 20:47:49 +03:00
#ifndef DEPLOY_H
#define DEPLOY_H
2019-09-08 13:37:33 +03:00
#include "deploy_global.h"
2018-08-17 23:54:29 +03:00
2020-01-20 14:29:06 +03:00
2019-09-14 13:59:11 +03:00
class ConfigParser;
2019-09-08 13:37:33 +03:00
class Extracter;
class FileManager;
2019-11-13 18:18:44 +03:00
class DependenciesScanner;
class PluginsParser;
2020-01-04 16:39:25 +03:00
class Packing;
2018-11-23 14:56:55 +03:00
2021-02-03 13:08:38 +03:00
2020-01-20 14:29:06 +03:00
enum exitCodes {
Good = 0x0,
PrepareError = 0x1,
DeployError = 0x2,
PackingError = 0x3,
};
2020-01-20 16:40:18 +03:00
class DEPLOYSHARED_EXPORT Deploy
2019-09-08 13:37:33 +03:00
{
private:
2018-12-15 20:51:25 +03:00
2019-09-14 13:59:11 +03:00
ConfigParser * _paramsParser = nullptr;
2019-09-09 18:12:39 +03:00
Extracter *_extracter = nullptr;
FileManager *_fileManager = nullptr;
2019-11-13 18:18:44 +03:00
DependenciesScanner *_scaner = nullptr;
PluginsParser *_pluginParser = nullptr;
2020-01-04 16:39:25 +03:00
Packing *_packing = nullptr;
2018-10-24 17:26:42 +03:00
2019-09-09 18:12:39 +03:00
bool prepare();
2020-01-04 16:39:25 +03:00
bool deploy();
2020-01-20 16:40:18 +03:00
bool packing();
2019-05-23 18:31:51 +03:00
2018-12-09 17:35:07 +03:00
public:
2018-08-17 20:47:49 +03:00
Deploy();
2020-01-20 16:40:18 +03:00
int run();
2019-09-09 18:12:39 +03:00
~Deploy();
2021-04-07 19:33:15 +03:00
/**
* @brief codeString This method retun string message about input code.
* @param code This is error code;
* @return Message of code.
*/
static QString codeString(int code);
2019-09-10 18:22:49 +03:00
friend class deploytest;
2018-08-17 20:47:49 +03:00
};
#endif // DEPLOY_H