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" #include "Base.h"
/// NO OUTPUT SCRIPT // NO OUTPUT SCRIPT
QmlNoOutputScript::QmlNoOutputScript (QObject * parent) QmlNoOutputScript::QmlNoOutputScript (QObject * parent)
: QObject (parent) : QObject (parent)
...@@ -11,7 +11,7 @@ void QmlNoOutputScript::execute (void) { ...@@ -11,7 +11,7 @@ void QmlNoOutputScript::execute (void) {
emit execution (); emit execution ();
} }
/// EXPORTABLE OBJECT // EXPORTABLE OBJECT
QmlAbstractExportableObject::QmlAbstractExportableObject (QObject * parent) QmlAbstractExportableObject::QmlAbstractExportableObject (QObject * parent)
: QObject (parent) : QObject (parent)
...@@ -36,7 +36,7 @@ void QmlAbstractExportableObject::exportChildrenOuput (QString & output) const { ...@@ -36,7 +36,7 @@ void QmlAbstractExportableObject::exportChildrenOuput (QString & output) const {
} }
} }
/// REPEATER // REPEATER
QmlRepeater::QmlRepeater (QObject * parent) QmlRepeater::QmlRepeater (QObject * parent)
: QmlAbstractExportableObject (parent) : QmlAbstractExportableObject (parent)
......
#include "Html.h" #include "Html.h"
/// HTML SINGLETON // HTML SINGLETON
QmlHtmlSingleton::QmlHtmlSingleton (QObject * parent) QmlHtmlSingleton::QmlHtmlSingleton (QObject * parent)
: QObject (parent) : QObject (parent)
...@@ -19,7 +19,7 @@ QString QmlHtmlSingleton::escape (const QString & str) const { ...@@ -19,7 +19,7 @@ QString QmlHtmlSingleton::escape (const QString & str) const {
} }
/// HTML OBJECT // HTML OBJECT
QmlAbstractHtmlObject::QmlAbstractHtmlObject (QObject * parent) QmlAbstractHtmlObject::QmlAbstractHtmlObject (QObject * parent)
: QmlAbstractExportableObject (parent) : QmlAbstractExportableObject (parent)
...@@ -30,7 +30,7 @@ QByteArray QmlAbstractHtmlObject::outputMimeType (void) const { ...@@ -30,7 +30,7 @@ QByteArray QmlAbstractHtmlObject::outputMimeType (void) const {
return ret; return ret;
} }
/// HTML BLOCK // HTML BLOCK
QmlHtmlBlock::QmlHtmlBlock (QObject * parent) QmlHtmlBlock::QmlHtmlBlock (QObject * parent)
: QmlAbstractHtmlObject (parent) : QmlAbstractHtmlObject (parent)
...@@ -40,7 +40,7 @@ void QmlHtmlBlock::outputContent (QString & output) const { ...@@ -40,7 +40,7 @@ void QmlHtmlBlock::outputContent (QString & output) const {
output += m_html; output += m_html;
} }
/// HTML BLOCK WITH CHILDREN // HTML BLOCK WITH CHILDREN
QmlHtmlBlockWithChilren::QmlHtmlBlockWithChilren (QObject * parent) QmlHtmlBlockWithChilren::QmlHtmlBlockWithChilren (QObject * parent)
: QmlAbstractHtmlObject (parent) : QmlAbstractHtmlObject (parent)
...@@ -52,7 +52,7 @@ void QmlHtmlBlockWithChilren::outputContent (QString & output) const { ...@@ -52,7 +52,7 @@ void QmlHtmlBlockWithChilren::outputContent (QString & output) const {
output += m_htmlAfterChildren; output += m_htmlAfterChildren;
} }
/// HTML PAGE // HTML PAGE
QmlHtmlPage::QmlHtmlPage (QObject * parent) QmlHtmlPage::QmlHtmlPage (QObject * parent)
: QmlAbstractHtmlObject (parent) : QmlAbstractHtmlObject (parent)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <QJsonDocument> #include <QJsonDocument>
/// JSON OBJECT // JSON OBJECT
QmlJsonDocument::QmlJsonDocument (QObject * parent) QmlJsonDocument::QmlJsonDocument (QObject * parent)
: QmlAbstractExportableObject (parent) : QmlAbstractExportableObject (parent)
......
This diff is collapsed.
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include <QMimeDatabase> #include <QMimeDatabase>
#include <QJsonDocument> #include <QJsonDocument>
/// FILE UPLOAD // FILE UPLOAD
QmlFileUpload::QmlFileUpload (QObject * parent) QmlFileUpload::QmlFileUpload (QObject * parent)
: QObject (parent) : QObject (parent)
...@@ -32,13 +32,13 @@ bool QmlFileUpload::saveToDisk (const QString & filePath) const { ...@@ -32,13 +32,13 @@ bool QmlFileUpload::saveToDisk (const QString & filePath) const {
return ret; return ret;
} }
/// WEBSITE METADATA // WEBSITE METADATA
QmlWebsiteMetaData::QmlWebsiteMetaData (QObject * parent) QmlWebsiteMetaData::QmlWebsiteMetaData (QObject * parent)
: QObject (parent) : QObject (parent)
{ } { }
/// STATIC FILE CACHE ENTRY // STATIC FILE CACHE ENTRY
QmlHttpServer::StaticFileCacheEntry::StaticFileCacheEntry (const QString & mimeType, const QByteArray & content) QmlHttpServer::StaticFileCacheEntry::StaticFileCacheEntry (const QString & mimeType, const QByteArray & content)
: mimeType (mimeType) : mimeType (mimeType)
......
...@@ -49,13 +49,6 @@ public: ...@@ -49,13 +49,6 @@ public:
static const int CACHE_FILE_MAX_SIZE = (1024 * 1024); 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 parseUrlArgs (const QUrl & url);
static QVariantMap parseRequestHeaders (const QtHttpRequest * request); static QVariantMap parseRequestHeaders (const QtHttpRequest * request);
static QVariantMap parseRequestData (const QtHttpRequest * request); static QVariantMap parseRequestData (const QtHttpRequest * request);
...@@ -71,6 +64,13 @@ protected slots: ...@@ -71,6 +64,13 @@ protected slots:
void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply); void onRequestNeedsReply (QtHttpRequest * request, QtHttpReply * reply);
private: private:
struct StaticFileCacheEntry {
const QString mimeType;
const QByteArray content;
explicit StaticFileCacheEntry (const QString & mimeType, const QByteArray & content);
};
bool m_cacheDirty; bool m_cacheDirty;
bool m_validFolder; bool m_validFolder;
const QString m_rootPath; const QString m_rootPath;
......
#include "Sql.h" #include "Sql.h"
/// SQL QUERY // SQL QUERY
QmlSqlQuery::QmlSqlQuery (const QString & sql, QObject * parent) QmlSqlQuery::QmlSqlQuery (const QString & sql, QObject * parent)
: QObject (parent) : QObject (parent)
...@@ -40,7 +40,7 @@ QVariantList QmlSqlQuery::exec (void) { ...@@ -40,7 +40,7 @@ QVariantList QmlSqlQuery::exec (void) {
return ret; return ret;
} }
/// SQL INTERFACE // SQL INTERFACE
QmlSqlSingleton::QmlSqlSingleton (QObject * parent) QmlSqlSingleton::QmlSqlSingleton (QObject * parent)
: 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