kodi
xbmc
interfaces
json-rpc
SystemOperations.h
1
/*
2
* Copyright (C) 2005-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
13
class
CVariant
;
14
15
namespace
JSONRPC
16
{
17
class
CSystemOperations
18
{
19
public
:
20
static
JSONRPC_STATUS
GetProperties(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
21
22
static
JSONRPC_STATUS
EjectOpticalDrive(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
23
24
static
JSONRPC_STATUS
Shutdown(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
25
static
JSONRPC_STATUS
Suspend(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
26
static
JSONRPC_STATUS
Hibernate(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
27
static
JSONRPC_STATUS
Reboot(
const
std::string &method,
ITransportLayer
*transport,
IClient
*client,
const
CVariant
¶meterObject,
CVariant
&result);
28
private
:
29
static
JSONRPC_STATUS
GetPropertyValue(
int
permissions,
const
std::string &property,
CVariant
&result);
30
};
31
}
JSONRPC
Definition:
AddonsOperations.h:23
JSONRPC::CSystemOperations
Definition:
SystemOperations.h:17
CVariant
Definition:
Variant.h:31
JSONRPC::JSONRPC_STATUS
JSONRPC_STATUS
Possible statuc codes of a response to a JSON-RPC request.
Definition:
JSONRPCUtils.h:29
JSONRPC::ITransportLayer
Definition:
ITransportLayer.h:27
JSONRPC::IClient
Definition:
IClient.h:13
Generated by
1.8.13