21 #ifndef __qSlicerUtils_h 22 #define __qSlicerUtils_h 27 #include "qSlicerBaseQTCoreExport.h" 38 static bool isExecutableName(
const QString& name);
41 static bool isCLIExecutable(
const QString& filePath);
46 static bool isCLILoadableModule(
const QString& filePath);
51 static bool isLoadableModule(
const QString& filePath);
57 static QString searchTargetInIntDir(
const QString& directory,
const QString& target);
61 static QString executableExtension();
71 static QString extractModuleNameFromLibraryName(
const QString& libraryName);
76 static QString extractModuleNameFromClassName(
const QString& className);
82 static bool isPluginInstalled(
const QString& filePath,
const QString& applicationHomeDir);
85 static bool isPluginBuiltIn(
const QString& filePath,
const QString& applicationHomeDir);
160 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir);
161 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir, QString& intDir);
164 static bool pathEndsWith(
const QString& inputPath,
const QString& path);
174 static bool setPermissionsRecursively(
const QString &path,
175 QFile::Permissions directoryPermissions,
176 QFile::Permissions filePermissions);
197 static QString replaceWikiUrlVersion(
const QString& text,
const QString& version);