Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
JSONRPC::CJSONRPC Class Reference

JSON RPC handler. More...

#include <JSONRPC.h>

Static Public Member Functions

static void Initialize ()
 Initializes the JSON-RPC handler.
 
static void Cleanup ()
 
static std::string MethodCall (const std::string &inputString, ITransportLayer *transport, IClient *client)
 
static JSONRPC_STATUS Introspect (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS Version (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS Permission (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS Ping (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS GetConfiguration (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS SetConfiguration (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 
static JSONRPC_STATUS NotifyAll (const std::string &method, ITransportLayer *transport, IClient *client, const CVariant &parameterObject, CVariant &result)
 

Detailed Description

JSON RPC handler.

Sets up and manages all needed information to process JSON-RPC requests and answering with the appropriate JSON-RPC response (actual response or error message).

Member Function Documentation

◆ Cleanup()

void CJSONRPC::Cleanup ( )
static

◆ GetConfiguration()

JSONRPC_STATUS CJSONRPC::GetConfiguration ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ Initialize()

void CJSONRPC::Initialize ( )
static

Initializes the JSON-RPC handler.

◆ Introspect()

JSONRPC_STATUS CJSONRPC::Introspect ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ MethodCall()

std::string CJSONRPC::MethodCall ( const std::string & inputString,
ITransportLayer * transport,
IClient * client )
static

◆ NotifyAll()

JSONRPC_STATUS CJSONRPC::NotifyAll ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ Permission()

JSONRPC_STATUS CJSONRPC::Permission ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ Ping()

JSONRPC_STATUS CJSONRPC::Ping ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ SetConfiguration()

JSONRPC_STATUS CJSONRPC::SetConfiguration ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

◆ Version()

JSONRPC_STATUS CJSONRPC::Version ( const std::string & method,
ITransportLayer * transport,
IClient * client,
const CVariant & parameterObject,
CVariant & result )
static

The documentation for this class was generated from the following files: