1 #ifndef VFS_EPHEMERAL_H
2 #define VFS_EPHEMERAL_H
5 #include <QMimeDatabase>
15 Q_INVOKABLE
explicit VFS_ephemeral(
bool container,
bool raw=
false);
30 virtual QByteArray
icon();
A VFS_datastore subclass for storing data directly in memory as if it was a filesystem.
void populateMetadata(QString name)
Use an incoming file type to try to populate mime type.
Q_INVOKABLE VFS_ephemeral(bool container, bool raw=false)
Create a VFS_ephemeral node.
virtual QByteArray icon()
The "disk" icon found in the VFS_icons library.
virtual void fetchRange(VFS_request *r)
Fetch a byte range within a file.
virtual VFS_node * find(VFS_request *r)
Find a node using a VFS_request.
quint64 size()
Return the size of the data in this node.
virtual void write(VFS_request *r)
Write data to this node.
virtual void metadata(VFS_request *r)
Fetch the metadata for this node.
virtual bool isContainer()
The VFS_ephemeral node is a container or a document.
virtual void ls(VFS_request *r)
List the contents of a directory.
virtual void read(VFS_request *r)
Read the contents of this node.
static QMimeDatabase _mimeDatabase
The mime database, used for metadata.
virtual VFS_node * append(QString name, VFS_node *node, bool containerCheck=true, QString user="server")
Append a VFS_ephemeral node as a child of this node.
virtual void submit(VFS_request *r)
Submit data to this node, applying the data as a diff.
virtual QString reportDetails()
Report the current cache usage.
virtual void applyDiff(VFS_request *r)
Apply a diff to this node's data.
VFS_node is the base class from which all other VFS_node classes derive.
The base class for all requests between nodes.