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

#include <HTTPPythonInvoker.h>

Inheritance diagram for CHTTPPythonInvoker:
CPythonInvoker ILanguageInvoker CHTTPPythonWsgiInvoker

Public Member Functions

 ~CHTTPPythonInvoker () override
 
virtual HTTPPythonRequestGetRequest ()=0
 
- Public Member Functions inherited from CPythonInvoker
 CPythonInvoker (ILanguageInvocationHandler *invocationHandler)
 
 ~CPythonInvoker () override
 
bool Execute (const std::string &script, const std::vector< std::string > &arguments=std::vector< std::string >()) override
 
bool IsStopping () const override
 
- Public Member Functions inherited from ILanguageInvoker
 ILanguageInvoker (ILanguageInvocationHandler *invocationHandler)
 
virtual ~ILanguageInvoker ()
 
virtual bool Stop (bool abort=false)
 
void SetId (int id)
 
int GetId () const
 
const ADDON::AddonPtrGetAddon () const
 
void SetAddon (const ADDON::AddonPtr &addon)
 
InvokerState GetState () const
 
bool IsActive () const
 
bool IsRunning () const
 
void Reset ()
 

Protected Member Functions

 CHTTPPythonInvoker (ILanguageInvocationHandler *invocationHandler, HTTPPythonRequest *request)
 
void onAbort () override
 
void onError (const std::string &exceptionType="", const std::string &exceptionValue="", const std::string &exceptionTraceback="") override
 
- Protected Member Functions inherited from CPythonInvoker
bool execute (const std::string &script, const std::vector< std::string > &arguments) override
 
virtual void executeScript (FILE *fp, const std::string &script, PyObject *moduleDict)
 
bool stop (bool abort) override
 
void onExecutionDone () override
 
void onExecutionFailed () override
 
virtual const char * getInitializationScript () const =0
 
virtual void onInitialization ()
 
virtual void onPythonModuleInitialization (void *moduleDict)
 
virtual void onDeinitialization ()
 
virtual void onSuccess ()
 
- Protected Member Functions inherited from ILanguageInvoker
virtual void AbortNotification ()
 
virtual void pulseGlobalEvent ()
 
virtual bool onExecutionInitialized ()
 
virtual void onExecutionFinalized ()
 
void setState (InvokerState state)
 

Protected Attributes

HTTPPythonRequestm_request
 
bool m_internalError = false
 
- Protected Attributes inherited from CPythonInvoker
std::string m_sourceFile
 
CCriticalSection m_critical
 
- Protected Attributes inherited from ILanguageInvoker
ADDON::AddonPtr m_addon
 

Additional Inherited Members

- Public Types inherited from CPythonInvoker
typedef std::unique_ptr< PyObject, PyObjectDeleter > PyObjectPtr
 

Constructor & Destructor Documentation

◆ ~CHTTPPythonInvoker()

CHTTPPythonInvoker::~CHTTPPythonInvoker ( )
override

◆ CHTTPPythonInvoker()

CHTTPPythonInvoker::CHTTPPythonInvoker ( ILanguageInvocationHandler * invocationHandler,
HTTPPythonRequest * request )
protected

Member Function Documentation

◆ GetRequest()

virtual HTTPPythonRequest * CHTTPPythonInvoker::GetRequest ( )
pure virtual

Implemented in CHTTPPythonWsgiInvoker.

◆ onAbort()

void CHTTPPythonInvoker::onAbort ( )
overrideprotectedvirtual

Reimplemented from CPythonInvoker.

◆ onError()

void CHTTPPythonInvoker::onError ( const std::string & exceptionType = "",
const std::string & exceptionValue = "",
const std::string & exceptionTraceback = "" )
overrideprotectedvirtual

Reimplemented from CPythonInvoker.

Member Data Documentation

◆ m_internalError

bool CHTTPPythonInvoker::m_internalError = false
protected

◆ m_request

HTTPPythonRequest* CHTTPPythonInvoker::m_request
protected

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