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);
44 static bool isCLIScriptedExecutable(
const QString& filePath);
49 static bool isCLILoadableModule(
const QString& filePath);
54 static bool isLoadableModule(
const QString& filePath);
60 static QString searchTargetInIntDir(
const QString& directory,
const QString& target);
64 static QString executableExtension();
74 static QString extractModuleNameFromLibraryName(
const QString& libraryName);
79 static QString extractModuleNameFromClassName(
const QString& className);
85 static bool isPluginInstalled(
const QString& filePath,
const QString& applicationHomeDir);
88 static bool isPluginBuiltIn(
const QString& filePath,
const QString& applicationHomeDir);
163 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir);
164 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir, QString& intDir);
167 static bool pathEndsWith(
const QString& inputPath,
const QString& path);
177 static bool setPermissionsRecursively(
const QString &path,
178 QFile::Permissions directoryPermissions,
179 QFile::Permissions filePermissions);
200 static QString replaceWikiUrlVersion(
const QString& text,
const QString& version);