2020-01-04 16:39:25 +03:00
|
|
|
#ifndef PACKING_H
|
|
|
|
#define PACKING_H
|
|
|
|
|
2020-01-05 13:58:38 +03:00
|
|
|
#include <QObject>
|
|
|
|
#include <QProcess>
|
|
|
|
#include "deploy_global.h"
|
|
|
|
|
2020-01-04 16:39:25 +03:00
|
|
|
/**
|
|
|
|
* @brief The Packing class - this class have interface for configure package and
|
|
|
|
* create package from deployment distibution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
class ConfigParser;
|
|
|
|
class iDistribution;
|
|
|
|
|
2020-01-05 13:58:38 +03:00
|
|
|
class DEPLOYSHARED_EXPORT Packing : public QObject
|
|
|
|
|
2020-01-04 16:39:25 +03:00
|
|
|
{
|
2020-01-05 13:58:38 +03:00
|
|
|
Q_OBJECT
|
2020-01-04 16:39:25 +03:00
|
|
|
public:
|
|
|
|
Packing();
|
|
|
|
~Packing();
|
|
|
|
void setDistribution(iDistribution *pakage);
|
|
|
|
bool create();
|
|
|
|
private:
|
|
|
|
iDistribution *_pakage = nullptr;
|
2020-01-05 13:58:38 +03:00
|
|
|
QProcess *_proc;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void handleOutputUpdate();
|
2020-01-04 16:39:25 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PACKING_H
|