mirror of
https://github.com/QuasarApp/QtDeployer.git
synced 2025-04-28 14:34:35 +00:00
50 lines
1.2 KiB
C++
Executable File
50 lines
1.2 KiB
C++
Executable File
#ifndef OUTPUTMANAGER_H
|
|
#define OUTPUTMANAGER_H
|
|
|
|
#include "baseclass.h"
|
|
|
|
class OutputManager : public BaseClass
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QStringList pathsToCopy READ pathsToCopy WRITE setPathsToCopy
|
|
NOTIFY pathsToCopyChanged)
|
|
|
|
Q_PROPERTY(QList<bool> copySuccess READ copySuccess WRITE setCopySuccess
|
|
NOTIFY copySuccessChanged)
|
|
|
|
QStringList m_pathsToCopy;
|
|
QList<bool> m_copySuccess;
|
|
|
|
bool copyDir(const QString &source, const QString &destin);
|
|
bool copyFile(const QString &source, const QString &destin);
|
|
|
|
void copyCpp(const QStringList &libs);
|
|
void copyQml(const QStringList &dirs);
|
|
void copyPlugins(const QStringList &plugins);
|
|
|
|
void createDirectories();
|
|
void createRunFile();
|
|
void copyExec();
|
|
|
|
public:
|
|
explicit OutputManager(QObject *parent = nullptr);
|
|
|
|
QStringList pathsToCopy() const;
|
|
QList<bool> copySuccess() const;
|
|
|
|
void copyAll(const QStringList &qtlibs, const QStringList &libs,
|
|
const QStringList &dirs, const QStringList &plugins,
|
|
bool erase);
|
|
|
|
public slots:
|
|
void setPathsToCopy(const QStringList &pathsToCopy);
|
|
void setCopySuccess(const QList<bool> ©Success);
|
|
|
|
signals:
|
|
void pathsToCopyChanged(QStringList pathsToCopy);
|
|
void copySuccessChanged(QList<bool> copySuccess);
|
|
};
|
|
|
|
#endif // OUTPUTMANAGER_H
|