Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CScriptRunner Class Referenceabstract

#include <ScriptRunner.h>

Inheritance diagram for CScriptRunner:
CRunningScriptsHandler< CPluginDirectory > CRunningScriptsHandler< TScript > XFILE::CPluginDirectory

Protected Member Functions

 CScriptRunner ()
 
virtual ~CScriptRunner ()=default
 
virtual bool IsSuccessful () const =0
 
virtual bool IsCancelled () const =0
 
ADDON::AddonPtr GetAddon () const
 
bool StartScript (const ADDON::AddonPtr &addon, const std::string &path)
 
bool RunScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume)
 
void SetDone ()
 

Static Protected Member Functions

static int ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, bool resume)
 
static int ExecuteScript (const ADDON::AddonPtr &addon, const std::string &path, int handle, bool resume)
 

Constructor & Destructor Documentation

◆ CScriptRunner()

CScriptRunner::CScriptRunner ( )
protected

◆ ~CScriptRunner()

virtual CScriptRunner::~CScriptRunner ( )
protectedvirtualdefault

Member Function Documentation

◆ ExecuteScript() [1/2]

int CScriptRunner::ExecuteScript ( const ADDON::AddonPtr & addon,
const std::string & path,
bool resume )
staticprotected

◆ ExecuteScript() [2/2]

int CScriptRunner::ExecuteScript ( const ADDON::AddonPtr & addon,
const std::string & path,
int handle,
bool resume )
staticprotected

◆ GetAddon()

ADDON::AddonPtr CScriptRunner::GetAddon ( ) const
protected

◆ IsCancelled()

virtual bool CScriptRunner::IsCancelled ( ) const
protectedpure virtual

Implemented in XFILE::CPluginDirectory.

◆ IsSuccessful()

virtual bool CScriptRunner::IsSuccessful ( ) const
protectedpure virtual

Implemented in XFILE::CPluginDirectory.

◆ RunScript()

bool CScriptRunner::RunScript ( const ADDON::AddonPtr & addon,
const std::string & path,
int handle,
bool resume )
protected

◆ SetDone()

void CScriptRunner::SetDone ( )
protected

◆ StartScript()

bool CScriptRunner::StartScript ( const ADDON::AddonPtr & addon,
const std::string & path )
protected

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