Skip to content

Components model: API: toolbar messages #2367

@DmitryAstafyev

Description

@DmitryAstafyev

When a session is created, auxiliary information may be displayed in the bottom toolbar. For example, for DLT and SomeIP files (or TCP/UDP connections), this could be information about the associated FIBEX file.

In the previous version, the client had knowledge about the used parser/source, so this information was generated directly on the client side.

Due to the updated paradigm, where the client "knows nothing" about the parsers and sources being used, an additional API on the rustcore side is required. This API provides the "messages" that need to be displayed in the toolbar.

There are two possible approaches to implementing this functionality:

First approach:

After the session is created, the client sends a request to rustcore with the UUID of the source and parser, and receives in response the messages to be displayed in the toolbar, if such messages are defined.

Second approach:

During session creation (or when starting an observe operation), rustcore generates an event (containing the session UUID) that includes a list of messages to be displayed in the toolbar.

The second approach is likely preferable, as it does not require rustcore to store additional information about toolbar messages.
As soon as the parser and source configuration is processed, rustcore can immediately send an event to the client containing the messages to be shown.

Metadata

Metadata

Labels

components modelComponents model is a major refactoring aimed at fully isolating the core logic from the client.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions