Remoto - VFS
|
#include <VFS_pamPlugin.h>
Public Member Functions | |
virtual QString | arguments (QString type) |
Describe the arguments needed to create a node. 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 () |
The plugin initializer. More... | |
virtual QStringList | provides () |
A string list of node names that this plugin is prepared to create. More... | |
![]() | |
virtual | ~VFS_node_interface () |
virtual QString | code (QString nodename, QString libname, QString &error) |
Request code or other resource from a plugin bundle. More... | |
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... | |
Definition at line 6 of file VFS_pamPlugin.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 22 of file VFS_pamPlugin.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 VFS_pamPlugin.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 14 of file VFS_pamPlugin.cpp.
|
virtual |
The plugin initializer.
This is an opportunity to register filetypes, log data, or perform any other prep work needed.
For instance:
If a plugin fails to initialize, it can return false
here and will not be added to the plugin registry.
This may also be used to create a (network or other) license check for this node group so future licensed() requests don't have to do network validation. In practice nodes should be licensed per use, not globally when the application starts, and should be checked at some interval for validity.
Reimplemented from VFS_node_interface.
Definition at line 8 of file VFS_pamPlugin.cpp.
|
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 30 of file VFS_pamPlugin.cpp.