asn1editor.interfaces package

Submodules

asn1editor.interfaces.BitstringInterface module

class asn1editor.interfaces.BitstringInterface.BitstringInterface

Bases: object

Interface for a bit string view to get and set selected bit string values.

Needs to be provided by the view factory that creates the bit string view.

get_values() List[int]
set_values(values: List[int])

asn1editor.interfaces.OptionalInterface module

class asn1editor.interfaces.OptionalInterface.OptionalInterface

Bases: object

Interface for optional elements.

Needs to be provided by the view factory that creates the elements.

get_default_has_value() bool
get_has_value() bool
register_optional_event(callback: Callable)

Called by the controller to register a callback that needs to be called whenever the optional status of an element changes.

set_has_value(val: bool)

asn1editor.interfaces.ValueInterface module

class asn1editor.interfaces.ValueInterface.ValueInterface

Bases: object

Interface for a value view to get and set the values and handle changes.

Needs to be provided by the view factory that creates a value view.

get_value() str | bytes | bool
register_change_event(callback: Callable)

Called by the controller to register a callback that needs to be called whenever the value of an element changes.

set_value(val: str | bytes | bool)

Module contents