diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-23 18:40:21 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-23 18:40:21 +0200 |
| commit | 2652ed120964e568527fd7e1858a3dd91611fca4 (patch) | |
| tree | 9bf749dad4dcebac391dbf4468fa219f116e406f /src/qdirfiletree.h | |
| parent | 7b973d5f10299c116c3c707ba28c7d6922be0a9a (diff) | |
Update QDirFileTree to hide implementation and allow querying time through QFileInfo.
Diffstat (limited to 'src/qdirfiletree.h')
| -rw-r--r-- | src/qdirfiletree.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/qdirfiletree.h b/src/qdirfiletree.h index e6b8706e..1f85b04f 100644 --- a/src/qdirfiletree.h +++ b/src/qdirfiletree.h @@ -43,22 +43,11 @@ public: */ static std::shared_ptr<const QDirFileTree> makeTree(QDir directory); - QDirFileTree(std::shared_ptr<const IFileTree> parent, QDir directory); - protected: + using IFileTree::IFileTree; - virtual bool beforeReplace(IFileTree const* dstTree, FileTreeEntry const* destination, FileTreeEntry const* source) override; - virtual bool beforeInsert(IFileTree const* entry, FileTreeEntry const* name) override; - virtual bool beforeRemove(IFileTree const* entry, FileTreeEntry const* name) override; - - virtual std::shared_ptr<FileTreeEntry> makeFile(std::shared_ptr<const IFileTree> parent, QString name) const override; - virtual std::shared_ptr<IFileTree> makeDirectory(std::shared_ptr<const IFileTree> parent, QString name) const override; - virtual bool doPopulate(std::shared_ptr<const IFileTree> parent, std::vector<std::shared_ptr<FileTreeEntry>>& entries) const override; - virtual std::shared_ptr<IFileTree> doClone() const override; - - QDir qDir; - + virtual bool doPopulate(std::shared_ptr<const IFileTree> parent, std::vector<std::shared_ptr<FileTreeEntry>>& entries) const = 0; }; #endif |
