Remoto - VFS
|
The plugin wrapper for creating an admin application entry. More...
#include <adminPlugin.h>
Public Member Functions | |
virtual QString | arguments (QString type) |
Describe the arguments needed to create a node. More... | |
virtual QString | code (QString nodename, QString libname, QString &error) |
Request code or other resource from a plugin bundle. More... | |
virtual VFS_node * | create (QString type, QVariantMap env, QDomElement child) |
Create a new node instance. More... | |
virtual QString | description (QString type) |
Descriptive text about an individual node. More... | |
virtual bool | initialize () |
adminPlugin::initialize More... | |
virtual QStringList | provides () |
A string list of node names that this plugin is prepared to create. More... | |
![]() | |
virtual | ~VFS_node_interface () |
QString | describe () |
Describe all the nodes in a plugin. More... | |
bool | isRemote () |
If a plugin represents a remote resource, this value will be true. More... | |
virtual bool | licensed (QString type) |
A licensing mechanism for node creation. More... | |
VFS_node * | remoteNode () |
Return the node needed to satisfy a remote request. More... | |
Additional Inherited Members | |
![]() | |
VFS_node_interface (VFS_node *remoteNode=nullptr) | |
VFS_node_interface::VFS_node_interface. More... | |
QString | argumentString (QMetaObject s) |
Format a constructor string based on a node's metadata object. More... | |
![]() | |
bool | _remote |
Does this plugin exist on another resource? More... | |
VFS_node * | _remoteNode |
The node responding to requests for remote resources. More... | |
The plugin wrapper for creating an admin application entry.
Definition at line 7 of file adminPlugin.h.
|
virtual |
Describe the arguments needed to create a node.
type | The node name |
The implementation of this pure method will look something like:
Reimplemented from VFS_node_interface.
Definition at line 95 of file adminPlugin.cpp.
|
virtual |
Request code or other resource from a plugin bundle.
nodename | The node providing the code |
libname | The library requested |
error | A reference to an error string, for writing errors back to the caller |
This will generally result in javascript code for a user interface, but could return anything, including base64-encoded images, css, xml, json, etc.
When code is requested, the request is routed to a plugin by nodename. A plugin can service the request itself, or pass it on to a node's static code function. Larger plugins with many nodes will probably want to bundle all their resources together.
It is highly reccommended that if a library is not found, it will call VFS_node::code() for error handling.
Reimplemented from VFS_node_interface.
Definition at line 115 of file adminPlugin.cpp.
|
virtual |
Create a new node instance.
Base implementation that does nothing.
Plugins bundle groups of node definitions together. This is the factory function for creating new nodes.
For example:
Please note the entries for a config file:
As a pure virtual function, this must be implemented in all plugins.
type | The node type, as listed in provides() and referenced in a config.xml |
env | The constructor environment |
child | The config DOM element |
Subclasses must implement this for a plugin to be useful. This base implementation is present so that a minimal plugin can implement initialize() without providing any nodes.
Reimplemented from VFS_node_interface.
Definition at line 39 of file adminPlugin.cpp.
|
virtual |
Descriptive text about an individual node.
type | The node name |
The implementation of this pure method will look something like:
Reimplemented from VFS_node_interface.
Definition at line 75 of file adminPlugin.cpp.
|
virtual |
|
virtual |
A string list of node names that this plugin is prepared to create.
Base implementation that returns an empty list.
Plugins bundle groups of node definitions together. This is the list of nodes.
For example:
As a pure virtual function, this must be implemented in all plugins.
Subclasses must implement this for a plugin to be useful. This base implementation is present so that a minimal plugin can implement initialize() without providing any nodes.
Reimplemented from VFS_node_interface.
Definition at line 26 of file adminPlugin.cpp.