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

#include <libmythupnp/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 52 of file serverSideScripting.cpp.

◆ ~ServerSideScripting()

ServerSideScripting::~ServerSideScripting ( )

Definition at line 87 of file serverSideScripting.cpp.

Member Function Documentation

◆ SetResourceRootPath()

QString ServerSideScripting::SetResourceRootPath ( const QString &  path)

Definition at line 102 of file serverSideScripting.cpp.

◆ RegisterMetaObjectType()

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

Definition at line 117 of file serverSideScripting.cpp.

◆ EvaluatePage()

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

Definition at line 151 of file serverSideScripting.cpp.

◆ Lock()

void ServerSideScripting::Lock ( )
inlineprotected

◆ Unlock()

void ServerSideScripting::Unlock ( )
inlineprotected

◆ GetLoadedScript()

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

Definition at line 133 of file serverSideScripting.cpp.

Referenced by EvaluatePage().

◆ ReadFileContents()

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

Definition at line 493 of file serverSideScripting.cpp.

Referenced by ProcessLine().

◆ CreateMethodFromFile()

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

Definition at line 447 of file serverSideScripting.cpp.

Referenced by EvaluatePage().

◆ ProcessLine()

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

Definition at line 522 of file serverSideScripting.cpp.

Referenced by CreateMethodFromFile().

Member Data Documentation

◆ m_engine

QScriptEngine ServerSideScripting::m_engine

Definition at line 53 of file serverSideScripting.h.

Referenced by EvaluatePage(), RegisterMetaObjectType(), and ServerSideScripting().

◆ 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: