MythTV  master
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
ServerSideScripting Class Reference

#include <serverSideScripting.h>

Public Member Functions

 ServerSideScripting ()
 
 ~ServerSideScripting ()
 
QString SetResourceRootPath (const QString &path)
 
void RegisterMetaObjectType (const QString &sName, const QMetaObject *pMetaObject, QScriptEngine::FunctionSignature pFunction)
 
bool EvaluatePage (QTextStream *pOutStream, const QString &sFileName, HTTPRequest *pRequest, const QByteArray &cspToken)
 

Public Attributes

QScriptEngine m_engine
 
QScriptEngineDebugger m_debugger
 

Protected Member Functions

void Lock ()
 
void Unlock ()
 
ScriptInfoGetLoadedScript (const QString &sFileName)
 
QString CreateMethodFromFile (const QString &sFileName) const
 
bool ProcessLine (QTextStream &sCode, QString &sLine, bool bInCode, QString &sTransBuffer) const
 

Static Protected Member Functions

static QString ReadFileContents (const QString &sFileName)
 

Protected Attributes

QMutex m_mutex
 
QMap< QString, ScriptInfo * > m_mapScripts
 
QString m_sResRootPath
 

Detailed Description

Definition at line 49 of file serverSideScripting.h.

Constructor & Destructor Documentation

◆ ServerSideScripting()

ServerSideScripting::ServerSideScripting ( )

Definition at line 51 of file serverSideScripting.cpp.

◆ ~ServerSideScripting()

ServerSideScripting::~ServerSideScripting ( )

Definition at line 86 of file serverSideScripting.cpp.

Member Function Documentation

◆ SetResourceRootPath()

QString ServerSideScripting::SetResourceRootPath ( const QString &  path)

Definition at line 101 of file serverSideScripting.cpp.

Referenced by HtmlServerExtension::HtmlServerExtension().

◆ RegisterMetaObjectType()

void ServerSideScripting::RegisterMetaObjectType ( const QString &  sName,
const QMetaObject *  pMetaObject,
QScriptEngine::FunctionSignature  pFunction 
)

Definition at line 116 of file serverSideScripting.cpp.

◆ EvaluatePage()

bool ServerSideScripting::EvaluatePage ( QTextStream *  pOutStream,
const QString &  sFileName,
HTTPRequest pRequest,
const QByteArray &  cspToken 
)

Definition at line 150 of file serverSideScripting.cpp.

Referenced by HtmlServerExtension::ProcessRequest().

◆ Lock()

void ServerSideScripting::Lock ( void  )
inlineprotected

◆ Unlock()

void ServerSideScripting::Unlock ( void  )
inlineprotected

◆ GetLoadedScript()

ScriptInfo * ServerSideScripting::GetLoadedScript ( const QString &  sFileName)
protected

Definition at line 132 of file serverSideScripting.cpp.

Referenced by EvaluatePage().

◆ ReadFileContents()

QString ServerSideScripting::ReadFileContents ( const QString &  sFileName)
staticprotected

Definition at line 486 of file serverSideScripting.cpp.

Referenced by ProcessLine().

◆ CreateMethodFromFile()

QString ServerSideScripting::CreateMethodFromFile ( const QString &  sFileName) const
protected

Definition at line 440 of file serverSideScripting.cpp.

Referenced by EvaluatePage().

◆ ProcessLine()

bool ServerSideScripting::ProcessLine ( QTextStream &  sCode,
QString &  sLine,
bool  bInCode,
QString &  sTransBuffer 
) const
protected

Definition at line 515 of file serverSideScripting.cpp.

Referenced by CreateMethodFromFile().

Member Data Documentation

◆ m_engine

QScriptEngine ServerSideScripting::m_engine

◆ m_debugger

QScriptEngineDebugger ServerSideScripting::m_debugger

Definition at line 56 of file serverSideScripting.h.

Referenced by ServerSideScripting().

◆ m_mutex

QMutex ServerSideScripting::m_mutex
protected

Definition at line 73 of file serverSideScripting.h.

◆ m_mapScripts

QMap< QString, ScriptInfo* > ServerSideScripting::m_mapScripts
protected

Definition at line 74 of file serverSideScripting.h.

Referenced by EvaluatePage(), GetLoadedScript(), and ~ServerSideScripting().

◆ m_sResRootPath

QString ServerSideScripting::m_sResRootPath
protected

Definition at line 75 of file serverSideScripting.h.

Referenced by ProcessLine(), and SetResourceRootPath().


The documentation for this class was generated from the following files: