Commit 9cd01ad3 authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Update README accordingly to recent API changes

parent 71a3729f
Pipeline #572 passed with stage
in 6 seconds
#include "Base.h"
/// NO OUTPUT SCRIPT
// NO OUTPUT SCRIPT
QmlNoOutputScript::QmlNoOutputScript (QObject * parent)
: QObject (parent)
......@@ -11,7 +11,7 @@ void QmlNoOutputScript::execute (void) {
emit execution ();
}
/// EXPORTABLE OBJECT
// EXPORTABLE OBJECT
QmlAbstractExportableObject::QmlAbstractExportableObject (QObject * parent)
: QObject (parent)
......@@ -36,7 +36,7 @@ void QmlAbstractExportableObject::exportChildrenOuput (QString & output) const {
}
}
/// REPEATER
// REPEATER
QmlRepeater::QmlRepeater (QObject * parent)
: QmlAbstractExportableObject (parent)
......
#include "Html.h"
/// HTML SINGLETON
// HTML SINGLETON
QmlHtmlSingleton::QmlHtmlSingleton (QObject * parent)
: QObject (parent)
......@@ -19,7 +19,7 @@ QString QmlHtmlSingleton::escape (const QString & str) const {
}
/// HTML OBJECT
// HTML OBJECT
QmlAbstractHtmlObject::QmlAbstractHtmlObject (QObject * parent)
: QmlAbstractExportableObject (parent)
......@@ -30,7 +30,7 @@ QByteArray QmlAbstractHtmlObject::outputMimeType (void) const {
return ret;
}
/// HTML BLOCK
// HTML BLOCK
QmlHtmlBlock::QmlHtmlBlock (QObject * parent)
: QmlAbstractHtmlObject (parent)
......@@ -40,7 +40,7 @@ void QmlHtmlBlock::outputContent (QString & output) const {
output += m_html;
}
/// HTML BLOCK WITH CHILDREN
// HTML BLOCK WITH CHILDREN
QmlHtmlBlockWithChilren::QmlHtmlBlockWithChilren (QObject * parent)
: QmlAbstractHtmlObject (parent)
......@@ -52,7 +52,7 @@ void QmlHtmlBlockWithChilren::outputContent (QString & output) const {
output += m_htmlAfterChildren;
}
/// HTML PAGE
// HTML PAGE
QmlHtmlPage::QmlHtmlPage (QObject * parent)
: QmlAbstractHtmlObject (parent)
......
......@@ -3,7 +3,7 @@
#include <QJsonDocument>
/// JSON OBJECT
// JSON OBJECT
QmlJsonDocument::QmlJsonDocument (QObject * parent)
: QmlAbstractExportableObject (parent)
......
This diff is collapsed.
......@@ -13,7 +13,7 @@
#include <QMimeDatabase>
#include <QJsonDocument>
/// FILE UPLOAD
// FILE UPLOAD
QmlFileUpload::QmlFileUpload (QObject * parent)
: QObject (parent)
......@@ -32,13 +32,13 @@ bool QmlFileUpload::saveToDisk (const QString & filePath) const {
return ret;
}
/// WEBSITE METADATA
// WEBSITE METADATA
QmlWebsiteMetaData::QmlWebsiteMetaData (QObject * parent)
: QObject (parent)
{ }
/// STATIC FILE CACHE ENTRY
// STATIC FILE CACHE ENTRY
QmlHttpServer::StaticFileCacheEntry::StaticFileCacheEntry (const QString & mimeType, const QByteArray & content)
: mimeType (mimeType)
......
......@@ -49,13 +49,6 @@ public:
static const int CACHE_FILE_MAX_SIZE = (1024 * 1024);
struct StaticFileCacheEntry {
const QString mimeType;
const QByteArray content;
explicit StaticFileCacheEntry (const QString & mimeType, const QByteArray & content);
};
static QVariantMap parseUrlArgs (const QUrl & url);
static QVariantMap parseRequestHeaders (const QtHttpRequest * request);
static QVariantMap parseRequestData (const QtHttpRequest * request);
......@@ -71,6 +64,13 @@ protected slots:
void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply);
private:
struct StaticFileCacheEntry {
const QString mimeType;
const QByteArray content;
explicit StaticFileCacheEntry (const QString & mimeType, const QByteArray & content);
};
bool m_cacheDirty;
bool m_validFolder;
const QString m_rootPath;
......
#include "Sql.h"
/// SQL QUERY
// SQL QUERY
QmlSqlQuery::QmlSqlQuery (const QString & sql, QObject * parent)
: QObject (parent)
......@@ -40,7 +40,7 @@ QVariantList QmlSqlQuery::exec (void) {
return ret;
}
/// SQL INTERFACE
// SQL INTERFACE
QmlSqlSingleton::QmlSqlSingleton (QObject * parent)
: QObject (parent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment