diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-15 14:38:01 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-15 14:38:01 -0500 |
commit | 8d54d01f09760c78d649baed0b88aa0f80069de7 (patch) | |
tree | 7c754cf8208ed2534974dbe53f5c0a76c7cf1081 /src-qt5/core/libLumina/LFileInfo.h | |
parent | A bit more background threading magic. (diff) | |
download | lumina-8d54d01f09760c78d649baed0b88aa0f80069de7.tar.gz lumina-8d54d01f09760c78d649baed0b88aa0f80069de7.tar.bz2 lumina-8d54d01f09760c78d649baed0b88aa0f80069de7.zip |
Add a bunch of ZFS information routines to LFileInfo.
Also utilize this ZFS info in lumina-fileinfo (if appropriate)
Diffstat (limited to 'src-qt5/core/libLumina/LFileInfo.h')
-rw-r--r-- | src-qt5/core/libLumina/LFileInfo.h | 13 |
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; |