Provides a ctkCmdLineModuleBackend implementation to pretend to run a command line process, but actually it returns a fixed, static piece of XML which can then be validated by the core library.
More...
#include <Libs/CommandLineModules/Backend/XMLChecker/ctkCmdLineModuleBackendXMLChecker.h>
Provides a ctkCmdLineModuleBackend implementation to pretend to run a command line process, but actually it returns a fixed, static piece of XML which can then be validated by the core library.
Definition at line 40 of file ctkCmdLineModuleBackendXMLChecker.h.
◆ ctkCmdLineModuleBackendXMLChecker() [1/2]
ctkCmdLineModuleBackendXMLChecker::ctkCmdLineModuleBackendXMLChecker |
( |
| ) |
|
◆ ctkCmdLineModuleBackendXMLChecker() [2/2]
ctkCmdLineModuleBackendXMLChecker::ctkCmdLineModuleBackendXMLChecker |
( |
const QString & |
xmlToValidate | ) |
|
◆ ~ctkCmdLineModuleBackendXMLChecker()
ctkCmdLineModuleBackendXMLChecker::~ctkCmdLineModuleBackendXMLChecker |
( |
| ) |
|
◆ description()
virtual QString ctkCmdLineModuleBackendXMLChecker::description |
( |
| ) |
const |
|
virtual |
Returns a brief description of the type of the backend.
- Returns
- A QString containing a description.
Implements ctkCmdLineModuleBackend.
◆ name()
virtual QString ctkCmdLineModuleBackendXMLChecker::name |
( |
| ) |
const |
|
virtual |
Returns the name of the type of the backend, not the name of the thing or application that is run.
- Returns
- A QString containing the name.
Implements ctkCmdLineModuleBackend.
◆ rawXmlDescription()
virtual QByteArray ctkCmdLineModuleBackendXMLChecker::rawXmlDescription |
( |
const QUrl & |
location, |
|
|
int |
timeout |
|
) |
| |
|
virtual |
Get the raw XML description from the module at location
.
- Parameters
-
location | The location URL of the module for which to get the XML description. |
- Returns
- The raw XML description.
This method always calls the executable with a ––xml
argument and returns the complete data emitted on the standard output channel.
Implements ctkCmdLineModuleBackend.
◆ run()
Run a front-end for this module in a local process.
- Parameters
-
frontend | The front-end to run. |
- Returns
- A future object for communicating with the running process.
Implements ctkCmdLineModuleBackend.
◆ schemes()
virtual QList<QString> ctkCmdLineModuleBackendXMLChecker::schemes |
( |
| ) |
const |
|
virtual |
This back-end can handle the "xml checker" URL scheme.
- Returns
- Returns the schemes this back-end can handle.
Implements ctkCmdLineModuleBackend.
◆ setXML()
void ctkCmdLineModuleBackendXMLChecker::setXML |
( |
const QString & |
xml | ) |
|
◆ timeStamp()
virtual qint64 ctkCmdLineModuleBackendXMLChecker::timeStamp |
( |
const QUrl & |
location | ) |
const |
|
virtual |
Returns the last modified time of the module at location
.
- Parameters
-
location | The location URL of the module for which to get the timestamp. |
- Returns
- A timestamp.
Implements ctkCmdLineModuleBackend.
◆ xml()
QString ctkCmdLineModuleBackendXMLChecker::xml |
( |
| ) |
const |
The documentation for this class was generated from the following file: