Evd.Jsonrpc¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Evd.Jsonrpc(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- call_method(method_name, params, context, cancellable, callback, *user_data)¶
- Parameters:
method_name (
str
) –params (
Json.Node
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- call_method_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) –- Raises:
- Return type:
- respond(invocation_id, result, context)¶
- Parameters:
invocation_id (
int
) –context (
GObject.Object
orNone
) –
- Raises:
- Return type:
- respond_error(invocation_id, json_error, context)¶
- respond_from_error(invocation_id, result_error, context)¶
- Parameters:
invocation_id (
int
) –result_error (
GLib.Error
) –
- Raises:
- Return type:
- send_notification(notification_name, params, context)¶
- set_callbacks(method_call_cb, notification_cb, *user_data)¶
- Parameters:
method_call_cb (
Evd.JsonrpcMethodCallCb
orNone
) –notification_cb (
Evd.JsonrpcNotificationCb
orNone
) –
- transport_error(invocation_id, error)¶
- Parameters:
invocation_id (
int
) –error (
GLib.Error
) –
- transport_receive(message, context, invocation_id)¶
- transport_set_send_callback(callback, *user_data)¶
- Parameters:
callback (
Evd.JsonrpcTransportSendCb
orNone
) –