|
cutelystforms
0.0.1
A Cutelyst plugin to load forms data from QML files.
|
Provides loading and processing HTML form data written in QML. More...
#include <CutelystForms/Forms>
Inherits Plugin.
Public Member Functions | |
| Forms (Cutelyst::Application *parent) | |
| Constructs a new Forms plugin object with the given parent. More... | |
| ~Forms () override | |
| Destroys the Forms object. More... | |
| void | addImportPath (const QString &path) |
| Adds an import path to the internal QQmlEngine. More... | |
| QStringList | importPaths () const noexcept |
| Returns the current list of import paths used by the internal QQmlEngine. More... | |
| QStringList | includePaths () const noexcept |
| Returns the list of include paths. More... | |
| void | setIncludePaths (const QStringList &paths) |
| Sets the list of include paths. More... | |
Protected Member Functions | |
| bool | setup (Cutelyst::Application *app) override |
| Sets the Forms plugin up to be used by app. More... | |
Provides loading and processing HTML form data written in QML.
Information is logged to the cutelyst.forms logging category. Warnings from the internal QQmlEngine will also be redirected to this category.
The plugin is linked to Cutelyst Core API, QtCore and QtQml. If the CSRFProtection plugin is enabled, it will also be linked against that. To use it in your application, link your application to Cutelyst::Forms.
The Forms plugin class.
|
explicit |
Constructs a new Forms plugin object with the given parent.
|
override |
Destroys the Forms object.
| void Forms::addImportPath | ( | const QString & | path | ) |
Adds an import path to the internal QQmlEngine.
|
noexcept |
Returns the current list of import paths used by the internal QQmlEngine.
|
noexcept |
Returns the list of include paths.
The include paths are used to load QML files that define a HTML form.
Use setIncludePahts() to set the list of paths.
| void Forms::setIncludePaths | ( | const QStringList & | paths | ) |
Sets the list of include paths.
The include paths are used to load QML files that define a HTML form.
Use includePaths() to return a list of currently set paths.
|
overrideprotected |
Sets the Forms plugin up to be used by app.
1.8.14