39 return (
char *)
"data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 791.911 791.911\"><rect x=\"120\" y=\"20\" fill=\"white\" width=\"550\" height=\"760\"/><path d=\"M641.43 0H150.481c-25.924 0-46.964 21.129-46.964 46.964v697.983c0 25.924 21.129 46.964 46.964 46.964H641.43c25.924 0 46.964-21.13 46.964-46.964V46.964C688.395 21.129 667.354 0 641.43 0zm11.542 745.036c0 6.747-4.794 11.541-11.541 11.541h-490.95c-6.747 0-11.541-4.794-11.541-11.541V46.964c0-6.747 4.794-11.541 11.541-11.541H641.43c6.747 0 11.541 4.794 11.541 11.541v698.072zm-81.5-188.923c0 9.588-7.635 17.223-17.223 17.223H333.633c-9.588 0-17.223-7.635-17.223-17.223s7.635-17.223 17.223-17.223H554.16c8.701-.976 17.312 7.635 17.312 17.223zm0 106.447c0 9.588-7.635 17.223-17.223 17.223H333.633c-9.588 0-17.223-7.635-17.223-17.223s7.635-17.223 17.223-17.223H554.16c8.701-.977 17.312 7.635 17.312 17.223zm0-211.916c0 9.588-7.635 17.223-17.223 17.223H333.633c-9.588 0-17.223-7.635-17.223-17.223s7.635-17.223 17.223-17.223H554.16c8.701-.001 17.312 7.635 17.312 17.223zm0-104.494c0 9.588-7.635 17.223-17.223 17.223H333.633c-9.588 0-17.223-7.635-17.223-17.223s7.635-17.223 17.223-17.223H554.16c8.701 0 17.312 7.635 17.312 17.223zM315.433 241.657c0-9.588 7.635-17.223 17.223-17.223h218.575c9.588 0 17.223 7.635 17.223 17.223s-7.635 17.223-17.223 17.223H332.745c-9.588 0-17.312-7.635-17.312-17.223zm0-105.47c0-9.588 7.635-17.223 17.223-17.223h218.575c9.588 0 17.223 7.635 17.223 17.223s-7.635 17.223-17.223 17.223H332.745c-9.588.977-17.312-7.634-17.312-17.223zm-63.3 0c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176 0-10.565 8.612-19.176 19.176-19.176 10.565 0 19.176 8.612 19.176 19.176zm0 105.47c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176s8.612-19.176 19.176-19.176c10.565-.977 19.176 7.635 19.176 19.176zm0 102.54c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176s8.612-19.176 19.176-19.176c10.565-.888 19.176 7.724 19.176 19.176zm0 104.582c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176 0-10.565 8.612-19.176 19.176-19.176 10.565 0 19.176 8.612 19.176 19.176zm0 108.311c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176 0-10.565 8.612-19.176 19.176-19.176 10.565 0 19.176 8.611 19.176 19.176zm0 105.47c0 10.565-8.612 19.176-19.176 19.176-10.565 0-19.176-8.612-19.176-19.176 0-10.565 8.612-19.176 19.176-19.176 10.565-.977 19.176 8.611 19.176 19.176z\"/></svg>";
101 int logLevel, logTime;
107 a[
"type"] =
"openLayout";
115 l[
"icon"] =
"@icon@";
125 QString ic = QString(
icon()).replace(
"svg xmlns",QString(
"svg fill=\"%1\" xmlns").arg(
_iconColors.value(r->
_path,
"default") ));
128 a[
"type"] =
"openLayout";
140 l[
"icon"] =
"@icon@";
A common base class for all things that want to act like an application or include ACL support.
VFS_node is the base class from which all other VFS_node classes derive.
virtual void read(VFS_request *r)
Return the data contents of this node, or if it's a container call ls()
virtual void issueRequest(VFS_request *t)
A convenience function.
The base class for all requests between nodes.
@ read
read full contents (4)
requestType _requestType
the action this request is performing or requesting
QString _path
the target path remnant... the remaining path element once the request has found its target
bool _success
if the request was successfully completed
virtual VFS_request * getCallback(VFS_node *receiver)
Create and chain a VFS_request for a receiver.
QJsonObject _metadata
the request payload
static VFS * root()
Return the root node of the VFS filesystem.
void getLogSettings(int &loglevel, int &logtime)
Get the loglevel and logtime values for the logger.
virtual void metadata(VFS_request *r)
Return metadata about a path that this node serves.
virtual QByteArray icon()
The "stream" icon found in the VFS_icons library.
virtual void read(VFS_request *r)
Read the list of logs available.
QMap< QString, QString > _iconColors
The colors returned for served icons.
virtual VFS_node * find(VFS_request *r)
Find a child of this node...
QJsonObject jsonResource(QString resource, bool *ok=nullptr)
Fetch the contents of a Qt resource as a QJsonObject.