13 #ifndef SERVERSIDESCRIPTING_H_
14 #define SERVERSIDESCRIPTING_H_
22 #include <QScriptEngine>
23 #include <QScriptable>
25 #include <QTextStream>
33 #include <QScriptEngineDebugger>
62 QString SetResourceRootPath(
const QString &path );
64 void RegisterMetaObjectType(
const QString &sName,
65 const QMetaObject *pMetaObject,
66 QScriptEngine::FunctionSignature pFunction);
68 bool EvaluatePage( QTextStream *pOutStream,
const QString &sFileName,
77 void Lock () { m_mutex.lock(); }
80 ScriptInfo *GetLoadedScript (
const QString &sFileName );
82 static QString ReadFileContents (
const QString &sFileName ) ;
84 QString CreateMethodFromFile(
const QString &sFileName )
const;
86 bool ProcessLine ( QTextStream &sCode,
89 QString &sTransBuffer )
const;
99 explicit OutputStream( QTextStream *pStream, QObject *parent =
nullptr )