aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-02 13:24:45 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-02 13:24:45 +0200
commit76e346c8e5ac7067cc49063e0c11d88c23871115 (patch)
treed0bf22a28330a2feb675b7d68011f22a4473bdfd /src/util.h
parentSplit off UrlFilter into library (diff)
downloadsmolbote-76e346c8e5ac7067cc49063e0c11d88c23871115.tar.xz
Add Util namespace
- Util::files lists files in specified .path
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..4ea6639
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,20 @@
+/*
+ * This file is part of smolbote. It's copyrighted by the contributors recorded
+ * in the version control history of the file, available from its original
+ * location: https://neueland.iserlohn-fortress.net/gitea/aqua/smolbote
+ *
+ * SPDX-License-Identifier: GPL-3.0
+ */
+
+#ifndef SMOLBOTE_UTIL_H
+#define SMOLBOTE_UTIL_H
+
+#include <QStringList>
+
+namespace Util {
+
+QStringList files(const QString &location, const QStringList &nameFilters = QStringList());
+
+}
+
+#endif // SMOLBOTE_UTIL_H