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.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/src-qt5/core/libLumina/LFileInfo.h b/src-qt5/core/libLumina/LFileInfo.h
index f72c8649..21aae19d 100644
--- a/src-qt5/core/libLumina/LFileInfo.h
+++ b/src-qt5/core/libLumina/LFileInfo.h
@@ -17,8 +17,9 @@
class LFileInfo : public QFileInfo{
private:
- QString mime, zfs_ds;
- QStringList iconList;
+ QString mime, zfs_ds, zfs_dspath;
+ QStringList iconList, zfs_perms;
+ int c_uid;
XDGDesktop *desk;
void loadExtraInfo();
@@ -51,12 +52,26 @@ public:
bool isVideo(); //Is a readable video file (for thumbnail support)
bool isAVFile(); //Is an audio/video file
- bool isZfsDataset();
+ //ZFS Information
+ bool isZfsDataset(QString path = "");
QString zfsPool();
QStringList zfsSnapshots(); //Format: "snapshot name::::path/to/snapshot"
QJsonObject zfsProperties();
bool zfsSetProperty(QString property, QString value);
+ //ZFS Permissions/Modifications
+ bool canZFScreate();
+ bool zfsCreateDataset(QString subdir);
+ bool canZFSdestroy();
+ bool zfsDestroyDataset(QString subdir);
+ bool zfsDestroySnapshot(QString snapshot);
+ bool canZFSclone();
+ bool zfsCloneDataset(QString subdir, QString newsubdir);
+ bool canZFSsnapshot();
+ bool zfsSnapshot(QString snapname);
+ bool canZFSrollback();
+ bool zfsRollback(QString snapname);
+
};
typedef QList<LFileInfo> LFileInfoList;
bgstack15