25 admin::admin(QString authPaths, QString sessionsPath, QString browserURL)
33 if (!browserURL.isEmpty())
73 a[
"type"] =
"openLayout";
96 addACLDefault( acl,
true,
"Access to the VFS admin tools.\n\nIt is recommended to turn the default to off once admin groups have been added." );
100 r->
_data.setObject(acl);
A common base class for all things that want to act like an application or include ACL support.
static char * get(QString which="")
Fetch an icon from the library.
VFS_iframe is a button for opening an iframe in a panel.
virtual VFS_node * append(QString name, VFS_node *node, bool containerCheck=true, QString user="server")
Append a VFS_node as a child of this node.
virtual void read(VFS_request *r)
Return the data contents of this node, or if it's a container call ls()
void addACLGroup(QJsonObject &acl, QString group, bool value)
Add a group to the acl object.
virtual void metadata(VFS_request *r)
Fetch the metadata of this node.
void addACLDefault(QJsonObject &acl, bool value, QString description="")
Add a default value to the acl object.
The base class for all requests between nodes.
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
QJsonDocument _data
the request payload
QJsonObject _metadata
the request payload
virtual void aclDefaults(VFS_request *r)
Return default values and features associated wth this node.
Q_INVOKABLE admin(QString authPaths, QString sessions, QString browserURL="")
admin constructor
virtual void read(VFS_request *r)
Read the list of admin modules.
virtual void metadata(VFS_request *r)
Return metadata about this node.
virtual QByteArray icon()
Return the icon.
A VFS_application plugin for reporting CPU and RAM usage over time.
The logView node is a VFS_application plugin for viewing logs.
A VFS_application plugin for reporting current and registered.
QJsonObject jsonResource(QString resource, bool *ok=nullptr)
Fetch the contents of a Qt resource as a QJsonObject.