4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-01 04:04:34 +00:00

44 lines
1.1 KiB
C
Raw Normal View History

2020-10-29 21:16:45 +03:00
#ifndef DEB_H
#define DEB_H
#include "idistribution.h"
2021-09-01 11:25:07 +03:00
/**
* @brief The DebInOut struct contains input and output value of the debian packages.
*/
struct DebInOut {
QString input;
QString output;
};
2020-10-29 21:16:45 +03:00
/**
* @brief The deb class contains methods for create a debian pacakge.
*/
class DEPLOYSHARED_EXPORT Deb: public iDistribution
{
public:
Deb(FileManager *fileManager);
// iDistribution interface
public:
bool deployTemplate(PackageControl &pkgCtrl) override;
2021-04-16 15:05:46 +03:00
bool deployRawTemplate(PackageControl &pkgCtrl) override;
2020-10-29 21:16:45 +03:00
bool removeTemplate() const override;
Envirement toolKitEnv() const override;
QProcessEnvironment processEnvirement() const override;
QList<SystemCommandData> runCmd() override;
2020-10-29 21:16:45 +03:00
QStringList outPutFiles() const override;
// iDistribution interface
protected:
2020-12-03 20:00:14 +03:00
QString dataLocation(const DistroModule &module) const override;
QString location(const DistroModule &module) const override;
QString releativeLocation(const DistroModule &module) const override;
2020-11-09 16:33:50 +03:00
private:
2021-09-01 11:25:07 +03:00
QList<DebInOut> inouts;
2020-10-29 21:16:45 +03:00
};
#endif // DEB_H