59 lines
1.9 KiB
C
Raw Normal View History

2019-11-28 17:59:00 +03:00
#ifndef QIF_H
#define QIF_H
2019-11-28 18:13:56 +03:00
#include "idistribution.h"
2020-08-15 14:38:03 +03:00
class PackageControl;
2020-09-06 19:12:17 +03:00
class DeployConfig;
2019-11-28 17:59:00 +03:00
/**
* @brief The QIF class provides interface betvin deployment targets and Qt Installer Framework
*/
class DEPLOYSHARED_EXPORT QIF: public iDistribution
2019-11-28 17:59:00 +03:00
{
public:
2020-01-15 18:31:09 +03:00
QIF(FileManager *fileManager);
2020-03-15 14:22:19 +03:00
Envirement toolKitEnv() const override;
QList<SystemCommandData> runCmd() override;
2020-08-15 14:38:03 +03:00
bool deployTemplate(PackageControl &pkg) override;
2021-04-16 15:05:46 +03:00
bool deployRawTemplate(PackageControl &pkgCtrl) override;
2020-03-15 14:22:19 +03:00
bool removeTemplate() const override;
QProcessEnvironment processEnvirement() const override;
QStringList outPutFiles() const override;
2020-03-08 13:52:26 +03:00
protected:
2020-12-03 20:00:14 +03:00
QString dataLocation(const DistroModule &module) const override;
QString location(const DistroModule &module) const override;
2020-01-16 11:10:16 +03:00
private:
2020-09-06 19:12:17 +03:00
QString getStyle(const QString &input) const;
2020-03-08 13:52:26 +03:00
QString installerFile() const;
2020-09-06 19:12:17 +03:00
/**
* @brief deployPackage - private method for deploy package of qt installer framework
2020-12-14 10:52:22 +03:00
* @param dist - this is DistroModule.
2020-09-06 19:12:17 +03:00
* @param sufixes - this is sufixses of files for copy into package
* @param pakcagesTemplates - this is list of pakcages and them tempalte patheses
* @param defaultPackageTempalte this is path to default package template
* @param pkg this is PackageControl object for move a packge data.
* @return return true if package deployed successful
*/
2020-12-14 10:52:22 +03:00
bool deployPackage(const DistroModule &dist,
2020-09-06 19:12:17 +03:00
const QStringList sufixes,
const QHash<QString, QString> &pakcagesTemplates,
const QString &defaultPackageTempalte,
PackageControl &pkg);
2020-01-16 15:25:36 +03:00
2020-12-02 17:53:14 +03:00
/**
* @brief initDefaultConfiguratuin This method initialise the default configuration of installer.
* @return true if functions finished successful.
*/
bool initDefaultConfiguratuin();
2020-09-06 19:12:17 +03:00
QString binarycreator;
TemplateInfo generalInfo;
2019-11-28 17:59:00 +03:00
};
#endif // QIF_H