21 #ifndef __qSlicerUtils_h 22 #define __qSlicerUtils_h 27 #include "qSlicerBaseQTCoreExport.h" 40 static bool isExecutableName(
const QString& name);
43 static bool isCLIExecutable(
const QString& filePath);
46 static bool isCLIScriptedExecutable(
const QString& filePath);
51 static bool isCLILoadableModule(
const QString& filePath);
56 static bool isLoadableModule(
const QString& filePath);
67 static QString searchTargetInIntDir(
const QString& directory,
const QString& target);
71 static QString executableExtension();
81 static QString extractModuleNameFromLibraryName(
const QString& libraryName);
86 static QString extractModuleNameFromClassName(
const QString& className);
92 static bool isPluginInstalled(
const QString& filePath,
const QString& applicationHomeDir);
95 static bool isPluginBuiltIn(
const QString& filePath,
const QString& applicationHomeDir,
const QString& applicationRevision);
170 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir);
171 static QString pathWithoutIntDir(
const QString& path,
const QString& subDirWithoutIntDir, QString& intDir);
174 static bool pathEndsWith(
const QString& inputPath,
const QString& path);
184 static bool setPermissionsRecursively(
const QString &path,
185 QFile::Permissions directoryPermissions,
186 QFile::Permissions filePermissions);
212 static QString replaceWikiUrlVersion(
const QString& text,
const QString&
version);
232 static QString replaceDocumentationUrlVersion(
const QString& text,
const QString& hostname,
const QString&
version);
qSlicerAbstractCoreModule is the base class of any module in Slicer.