summaryrefslogtreecommitdiffstats
path: root/depends/util/include/pathutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'depends/util/include/pathutils.h')
-rw-r--r--depends/util/include/pathutils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/depends/util/include/pathutils.h b/depends/util/include/pathutils.h
index d4f41da3..40bb9e74 100644
--- a/depends/util/include/pathutils.h
+++ b/depends/util/include/pathutils.h
@@ -33,5 +33,10 @@ LIBUTIL_EXPORT bool ensurePathExists(QString filenamepath);
LIBUTIL_EXPORT bool copyPath(QString src, QString dst);
+/// Opens the given file in the default application.
+LIBUTIL_EXPORT void openFileInDefaultProgram ( QString filename );
+
+/// Opens the given directory in the default application.
+LIBUTIL_EXPORT void openDirInDefaultProgram ( QString dirpath, bool ensureExists = false );
#endif // PATHUTILS_H