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

39 lines
689 B
C
Raw Normal View History

2020-01-04 16:39:25 +03:00
#ifndef PACKING_H
#define PACKING_H
#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;
class DEPLOYSHARED_EXPORT Packing : public QObject
2020-01-04 16:39:25 +03:00
{
Q_OBJECT
2020-01-04 16:39:25 +03:00
public:
Packing();
~Packing();
2020-08-14 17:47:34 +03:00
void setDistribution(const QList<iDistribution*> &pakages);
2020-01-20 16:40:18 +03:00
bool create();
2020-01-04 16:39:25 +03:00
private:
2020-08-14 17:47:34 +03:00
void collectPackages();
QList<iDistribution*> _pakage;
QProcess *_proc = nullptr;
2020-08-14 17:47:34 +03:00
QHash<QString, QString> _packages;
private slots:
void handleOutputUpdate();
2020-01-04 16:39:25 +03:00
};
#endif // PACKING_H