kodi
GUIOperations.h
1 /*
2  * Copyright (C) 2012-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 "JSONRPC.h"
12 #include "rendering/RenderSystemTypes.h"
13 
14 class CVariant;
15 
16 namespace JSONRPC
17 {
19  {
20  public:
21  static JSONRPC_STATUS GetProperties(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
22 
23  static JSONRPC_STATUS ActivateWindow(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
24 
25  static JSONRPC_STATUS ShowNotification(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
26  static JSONRPC_STATUS SetFullscreen(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
27  static JSONRPC_STATUS SetStereoscopicMode(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
28  static JSONRPC_STATUS GetStereoscopicModes(const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result);
29  static JSONRPC_STATUS ActivateScreenSaver(const std::string& method,
30  ITransportLayer* transport,
31  IClient* client,
32  const CVariant& parameterObject,
33  CVariant& result);
34  private:
35  static JSONRPC_STATUS GetPropertyValue(const std::string &property, CVariant &result);
36  static CVariant GetStereoModeObjectFromGuiMode(const RENDER_STEREO_MODE &mode);
37  };
38 }
Definition: AddonsOperations.h:23
Definition: Variant.h:31
JSONRPC_STATUS
Possible statuc codes of a response to a JSON-RPC request.
Definition: JSONRPCUtils.h:29
Definition: GUIOperations.h:18
Definition: ITransportLayer.h:27
Definition: IClient.h:13