summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'helper.h')
-rw-r--r--helper.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index 64dc3da..90a1ad6 100644
--- a/helper.h
+++ b/helper.h
@@ -11,6 +11,7 @@
#include <magic.h>
class QString;
+class QFileInfo;
namespace Helper {
const QString mimeType(const QString &path);
@@ -22,6 +23,14 @@ namespace Helper {
public:
bool operator()(const QString s, const QString &part) const;
};
+ class SortFileInfoList : public std::binary_function<QFileInfo, QFileInfo, bool> {
+ public:
+ bool operator()(const QFileInfo &lhs, const QFileInfo &rhs) const;
+ };
+ class FileInfoListContains : public std::binary_function<QFileInfo, QString, bool> {
+ public:
+ bool operator()(const QFileInfo &info, const QString &file) const;
+ };
}
#endif