kodi
xbmc
network
httprequesthandler
python
HTTPPythonInvoker.h
1
/*
2
* Copyright (C) 2015-2018 Team Kodi
3
* This file is part of Kodi - https://kodi.tv
4
*
5
* SPDX-License-Identifier: GPL-2.0-or-later
6
* See LICENSES/README.md for more information.
7
*/
8
9
#pragma once
10
11
#include "interfaces/python/PythonInvoker.h"
12
#include "network/httprequesthandler/python/HTTPPythonRequest.h"
13
14
#include <string>
15
16
class
CHTTPPythonInvoker
:
public
CPythonInvoker
17
{
18
public
:
19
~
CHTTPPythonInvoker
()
override
;
20
21
virtual
HTTPPythonRequest
* GetRequest() = 0;
22
23
protected
:
24
CHTTPPythonInvoker
(
ILanguageInvocationHandler
* invocationHandler,
HTTPPythonRequest
* request);
25
26
// overrides of CPythonInvoker
27
void
onAbort()
override
;
28
void
onError(
const
std::string& exceptionType =
""
,
const
std::string& exceptionValue =
""
,
const
std::string& exceptionTraceback =
""
)
override
;
29
30
HTTPPythonRequest
* m_request;
31
bool
m_internalError =
false
;
32
};
CPythonInvoker
Definition:
PythonInvoker.h:23
HTTPPythonRequest
Definition:
HTTPPythonRequest.h:18
ILanguageInvocationHandler
Definition:
ILanguageInvocationHandler.h:13
CHTTPPythonInvoker
Definition:
HTTPPythonInvoker.h:16
Generated by
1.8.13