aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LFileInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core/libLumina/LFileInfo.h')
-rw-r--r--src-qt5/core/libLumina/LFileInfo.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LFileInfo.h b/src-qt5/core/libLumina/LFileInfo.h
index 4fbf6353..df1abb65 100644
--- a/src-qt5/core/libLumina/LFileInfo.h
+++ b/src-qt5/core/libLumina/LFileInfo.h
@@ -13,13 +13,17 @@
#include <LuminaXDG.h>
#include <QString>
#include <QFileInfo>
+#include <QJsonObject>
class LFileInfo : public QFileInfo{
private:
- QString mime, icon;
+ QString mime, icon, zfs_ds;
XDGDesktop *desk;
void loadExtraInfo();
+ bool zfsAvailable();
+ void getZfsDataset(); //note: only run this if "zfsAvailable" is true
+ bool goodZfsDataset(); //simplification of the two functions above
public:
//Couple overloaded contructors
@@ -45,6 +49,13 @@ public:
bool isImage(); //Is a readable image file (for thumbnail support)
bool isVideo(); //Is a readable video file (for thumbnail support)
bool isAVFile(); //Is an audio/video file
+
+ bool isZfsDataset();
+ QString zfsPool();
+ QStringList zfsSnapshots(); //Format: "snapshot name::::path/to/snapshot"
+ QJsonObject zfsProperties();
+ bool zfsSetProperty(QString property, QString value);
+
};
typedef QList<LFileInfo> LFileInfoList;
bgstack15