39 lines
1.1 KiB
C++
Executable File
39 lines
1.1 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "ngltools_export.h"
|
|
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVector>
|
|
|
|
namespace NGL
|
|
{
|
|
NGLTOOLS_EXPORT bool removeDirContentsRecursively(const QString &d, bool bAlsoDeleteBaseDir = false);
|
|
NGLTOOLS_EXPORT bool copyDirContentsToDir(const QString &source, const QString &destination, bool sourceIsRelative = false);
|
|
NGLTOOLS_EXPORT qint64 getDirectorySize(const QString &dir);
|
|
|
|
|
|
enum class FileType
|
|
{
|
|
ProjectConfigFile,
|
|
ConfigFile
|
|
};
|
|
|
|
NGLTOOLS_EXPORT bool isAppInBuildBasePath();
|
|
NGLTOOLS_EXPORT QString projectConfigFileName();
|
|
NGLTOOLS_EXPORT QString findProjectConfigFile();
|
|
NGLTOOLS_EXPORT QString findFile(FileType fileType, const QString &filename);
|
|
|
|
|
|
NGLTOOLS_EXPORT QString findServiceXmlFile(const QString &serviceShortName);
|
|
|
|
NGLTOOLS_EXPORT QVector<QString> directories(FileType fileType);
|
|
|
|
NGLTOOLS_EXPORT QString directory(FileType fileType, const QString &subdir);
|
|
|
|
|
|
NGLTOOLS_EXPORT QString postgresExecutablePath(const QString &psqlProgram, QString &errStr);
|
|
}
|