11 Q_INVOKABLE
explicit VFS_stream(quint32 maxSize=0,
bool newlineTrim=
false);
28 virtual QByteArray
icon();
VFS_node is the base class from which all other VFS_node classes derive.
The base class for all requests between nodes.
VFS_stream stores data sequentially within a buffer.
virtual void metadata(VFS_request *r)
Fetch the metadata for this node.
bool _newlineTrim
Buffer will be truncated by bytes or newlines.
virtual void read(VFS_request *r)
Read the contents of the buffer.
virtual bool isContainer()
A VFS_stream node cannot contain children.
QString _data
The actual buffer.
Q_INVOKABLE VFS_stream(quint32 maxSize=0, bool newlineTrim=false)
virtual void applyDiff(VFS_request *r)
Apply a diff to the buffer.
virtual QByteArray icon()
The "stream" icon found in the VFS_icons library.
virtual void write(VFS_request *r)
Write to the buffer.
virtual void submit(VFS_request *r)
Submit data to the buffer.
int _maxSize
The maximum size in bytes.
virtual QString reportDetails()
Report the current stream size.