Evd.Jsonrpc

g Evd.IpcMechanism Evd.IpcMechanism Evd.Jsonrpc Evd.Jsonrpc Evd.IpcMechanism->Evd.Jsonrpc GObject.Object GObject.Object GObject.Object->Evd.IpcMechanism

Subclasses:

None

Methods

Inherited:

Evd.IpcMechanism (2), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

call_method (method_name, params, context, cancellable, callback, *user_data)

call_method_finish (result)

respond (invocation_id, result, context)

respond_error (invocation_id, json_error, context)

respond_from_error (invocation_id, result_error, context)

send_notification (notification_name, params, context)

set_callbacks (method_call_cb, notification_cb, *user_data)

transport_error (invocation_id, error)

transport_receive (message, context, invocation_id)

transport_set_send_callback (callback, *user_data)

Virtual Methods

Inherited:

Evd.IpcMechanism (2), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Evd.IpcMechanism

r

Class Details

class Evd.Jsonrpc(**kwargs)
Bases:

Evd.IpcMechanism

Abstract:

No

Structure:

Evd.JsonrpcClass

classmethod new()
Return type:

Evd.Jsonrpc

call_method(method_name, params, context, cancellable, callback, *user_data)
Parameters:
call_method_finish(result)
Parameters:

result (Gio.AsyncResult) –

Raises:

GLib.Error

Return type:

(bool, result_json: Json.Node, error_json: Json.Node)

respond(invocation_id, result, context)
Parameters:
Raises:

GLib.Error

Return type:

bool

respond_error(invocation_id, json_error, context)
Parameters:
Raises:

GLib.Error

Return type:

bool

respond_from_error(invocation_id, result_error, context)
Parameters:
Raises:

GLib.Error

Return type:

bool

send_notification(notification_name, params, context)
Parameters:
Raises:

GLib.Error

Return type:

bool

set_callbacks(method_call_cb, notification_cb, *user_data)
Parameters:
transport_error(invocation_id, error)
Parameters:
transport_receive(message, context, invocation_id)
Parameters:
Raises:

GLib.Error

Return type:

bool

transport_set_send_callback(callback, *user_data)
Parameters: