Kodi Development
22.0
for Binary and Script based Add-Ons
Loading...
Searching...
No Matches
WsgiErrorStream.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/legacy/AddonClass.h"
12
13
#include <vector>
14
15
struct
HTTPPythonRequest;
16
17
namespace
XBMCAddon
18
{
19
namespace
xbmcwsgi
20
{
21
34
class
WsgiErrorStream
:
public
AddonClass
35
{
36
public
:
37
WsgiErrorStream
();
38
~WsgiErrorStream
()
override
;
39
40
#ifdef DOXYGEN_SHOULD_USE_THIS
47
flush
();
48
#else
49
inline
void
flush
() { }
50
#endif
51
52
#ifdef DOXYGEN_SHOULD_USE_THIS
62
write
(...);
63
#else
64
void
write
(
const
String& str);
65
#endif
66
67
#ifdef DOXYGEN_SHOULD_USE_THIS
76
writelines
(...);
77
#else
78
void
writelines
(
const
std::vector<String>& seq);
79
#endif
80
81
#ifndef SWIG
85
void
SetRequest
(HTTPPythonRequest* request);
86
87
HTTPPythonRequest* m_request;
88
#endif
89
};
91
}
92
}
XBMCAddon::xbmcwsgi::WsgiErrorStream
Definition
WsgiErrorStream.h:35
XBMCAddon::xbmcwsgi::WsgiErrorStream::SetRequest
void SetRequest(HTTPPythonRequest *request)
XBMCAddon::xbmcwsgi::WsgiErrorStream::write
write(...)
XBMCAddon::xbmcwsgi::WsgiErrorStream::flush
flush()
XBMCAddon::xbmcwsgi::WsgiErrorStream::writelines
writelines(...)
interfaces
legacy
wsgi
WsgiErrorStream.h
Generated by
1.12.0