kodi
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 
17 {
18 public:
19  ~CHTTPPythonInvoker() override;
20 
21  virtual HTTPPythonRequest* GetRequest() = 0;
22 
23 protected:
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 };
Definition: PythonInvoker.h:23
Definition: HTTPPythonRequest.h:18
Definition: ILanguageInvocationHandler.h:13
Definition: HTTPPythonInvoker.h:16