EBackend.UserPrompterServerExtension

g EBackend.UserPrompterServerExtension EBackend.UserPrompterServerExtension EDataServer.Extension EDataServer.Extension EDataServer.Extension->EBackend.UserPrompterServerExtension GObject.Object GObject.Object GObject.Object->EDataServer.Extension

Subclasses:

None

Methods

Inherited:

EDataServer.Extension (1), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

prompt (prompt_id, dialog_name, parameters)

response (prompt_id, response, values)

Virtual Methods

Inherited:

GObject.Object (7)

do_prompt (prompt_id, dialog_name, parameters)

Properties

Inherited:

EDataServer.Extension (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

EDataServer.Extension

r

Class Details

class EBackend.UserPrompterServerExtension(**kwargs)
Bases:

EDataServer.Extension

Abstract:

Yes

Structure:

EBackend.UserPrompterServerExtensionClass

Contains only private data that should be read and manipulated using the functions below.

New in version 3.8.

prompt(prompt_id, dialog_name, parameters)
Parameters:
Returns:

Whether dialog was found and shown.

Return type:

bool

Instructs extension to show dialog dialog_name. If it cannot be found, or any error, then return False. The caller can pass optional parameters, if self uses any. Meaning of parameters is known only to the caller and to the dialog implementor, it’s not interpretted nor checked for correctness in any way in EBackend.UserPrompterServer. The only limitation of parameters is that the array elements are strings.

The prompt_id is used as an identificator of the prompt itself, and is used in EBackend.UserPrompterServerExtension.response() call, which finishes the prompt.

Note: The function call should not block main loop, it should just show dialog and return.

New in version 3.8.

response(prompt_id, response, values)
Parameters:
  • prompt_id (int) – Prompt identificator

  • response (int) – Response of the prompt

  • values (EDataServer.NamedParameters or None) – Additional response values, if extension defines any

A conveniente wrapper function around EBackend.UserPrompterServer.response(), which ends previous call of EBackend.UserPrompterServerExtension.prompt(). The response and values is known only to the caller and to the dialog implementor, it’s not interpretted nor checked for correctness in any way in EBackend.UserPrompterServer. The only limitation of values is that the array elements are strings.

New in version 3.8.

do_prompt(prompt_id, dialog_name, parameters) virtual
Parameters:
Returns:

Whether dialog was found and shown.

Return type:

bool

Instructs extension to show dialog dialog_name. If it cannot be found, or any error, then return False. The caller can pass optional parameters, if extension uses any. Meaning of parameters is known only to the caller and to the dialog implementor, it’s not interpretted nor checked for correctness in any way in EBackend.UserPrompterServer. The only limitation of parameters is that the array elements are strings.

The prompt_id is used as an identificator of the prompt itself, and is used in EBackend.UserPrompterServerExtension.response() call, which finishes the prompt.

Note: The function call should not block main loop, it should just show dialog and return.

New in version 3.8.