2018-03-12 11:43:03 +03:30
|
|
|
#ifndef BASECLASS_H
|
|
|
|
#define BASECLASS_H
|
|
|
|
|
|
|
|
#include <QDebug>
|
|
|
|
#include <QDir>
|
|
|
|
#include <QDirIterator>
|
|
|
|
#include <QFile>
|
|
|
|
#include <QFileInfo>
|
|
|
|
#include <QObject>
|
|
|
|
#include <QProcess>
|
|
|
|
#include <QTextStream>
|
|
|
|
|
|
|
|
class BaseClass : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static QString m_qtdir;
|
|
|
|
static QString m_outputdir;
|
2018-06-18 02:43:52 +03:00
|
|
|
static QString m_binarycreator;
|
2018-08-16 19:20:04 +03:00
|
|
|
static QString m_projectfile;
|
2018-03-12 11:43:03 +03:30
|
|
|
static QString m_executablepath;
|
2018-06-18 02:43:52 +03:00
|
|
|
static QString projectName;
|
2018-06-24 19:30:56 +03:00
|
|
|
static QString appIcon;
|
2018-03-12 11:43:03 +03:30
|
|
|
|
|
|
|
QStringList findFilesInsideDir(const QString &name, const QString &dirpath);
|
|
|
|
|
2018-05-10 12:36:59 +03:00
|
|
|
bool getName(QString &name, const QString &url) const;
|
|
|
|
|
2018-03-12 11:43:03 +03:30
|
|
|
public:
|
|
|
|
explicit BaseClass(QObject *parent = nullptr);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BASECLASS_H
|