QtDeployer/source/CPP/buildmanager.h

38 lines
636 B
C
Raw Normal View History

2018-05-24 07:48:41 +03:00
#ifndef BUILDMANAGER_H
#define BUILDMANAGER_H
#include "baseclass.h"
class BuildManager : public BaseClass
{
Q_OBJECT
2018-05-26 16:48:58 +03:00
Q_PROPERTY(QString log READ log NOTIFY logChanged)
2018-05-24 07:48:41 +03:00
private:
QString qmake;
QString tempBuildFolder;
2018-05-26 16:48:58 +03:00
QString tempLog;
QString projectName;
QProcess pQMake;
2018-05-24 07:48:41 +03:00
bool initFolderName();
bool initQMake();
2018-05-26 16:48:58 +03:00
private slots:
void buildLog();
void buildFinihed(int error);
2018-05-24 07:48:41 +03:00
public:
explicit BuildManager(QObject *parent = nullptr);
bool build();
signals:
2018-05-26 16:48:58 +03:00
void logChanged();
void finished();
2018-05-24 07:48:41 +03:00
public slots:
2018-05-26 16:48:58 +03:00
const QString& log() const;
2018-05-24 07:48:41 +03:00
};
#endif // BUILDMANAGER_H