Class sh::filesystem::AdhocFilesystemNodeList¶
-
class
sh::filesystem
::
AdhocFilesystemNodeList
: public sh::filesystem::FilesystemNodeList¶ This FilesystemNodeList subclass is used for spontanously fetching a fresh list of node children.
Node additions and removals will not touch the model.
Node instances inside it will be deleted together with this list.
Public Functions
-
AdhocFilesystemNodeList
()¶ Is intended to be directly constructed from everywhere.
-
~AdhocFilesystemNodeList
()¶
-
std::shared_ptr<FilesystemNode>
mynode
()¶ Returns the node which owns this children list. The result may be
0
for non model-backed lists.
Adds items to this list. In a model-backed list, this triggers the internal model mounting calls. It is not allowed to call this method twice with the same node.
Adds an item to this list. In a model-backed list, this triggers the internal model mounting calls. It is not allowed to call this method twice with the same node.
Removes nodes from this list. In a model-backed list, this triggers the internal model unmounting calls. It is not allowed to call this method with a node, which is not contained in that list.
Removes a node from this list. In a model-backed list, this triggers the internal model unmounting calls. It is not allowed to call this method with a node, which is not contained in that list.
Resets the list for a given node type to a given new list of children nodes.
Checks if this list contains a given node.
-
const QList<std::shared_ptr<sh::filesystem::FilesystemNode>> *
nodes
()¶ Returns the list of nodes currently stored in this instance.
-