ORE Studio 0.0.4
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
LeiEntityPicker Class Referencefinal

Reusable widget for searching and selecting an LEI entity. More...

#include <LeiEntityPicker.hpp>

Inherits QWidget.

Collaboration diagram for LeiEntityPicker:
Collaboration graph

Signals

void entitySelected (const QString &lei, const QString &name)
 Emitted when the user selects an entity.
 
void selectionCleared ()
 Emitted when the selection is cleared.
 
void loadCompleted (int entityCount)
 Emitted when entities are successfully loaded from the server.
 
void loadFailed (const QString &errorMessage)
 Emitted when loading entities fails.
 

Public Member Functions

 LeiEntityPicker (ClientManager *clientManager, QWidget *parent=nullptr)
 
QString selectedLei () const
 Get the LEI of the currently selected entity.
 
QString selectedName () const
 Get the entity legal name of the currently selected entity.
 
bool hasSelection () const
 Check whether an entity is currently selected.
 
void load ()
 Trigger an asynchronous load of LEI entities from the server.
 

Detailed Description

Reusable widget for searching and selecting an LEI entity.

Loads LEI entity summaries from the DQ staging data via the binary protocol and presents them in a filterable table. Users can search by entity legal name and select an entity to use in other screens.

Member Function Documentation

◆ selectedLei()

QString selectedLei ( ) const

Get the LEI of the currently selected entity.

Returns
LEI string, or empty if no selection.

◆ selectedName()

QString selectedName ( ) const

Get the entity legal name of the currently selected entity.

Returns
Entity legal name, or empty if no selection.

◆ entitySelected

void entitySelected ( const QString &  lei,
const QString &  name 
)
signal

Emitted when the user selects an entity.

Parameters
leiThe LEI of the selected entity
nameThe entity legal name of the selected entity

◆ loadCompleted

void loadCompleted ( int  entityCount)
signal

Emitted when entities are successfully loaded from the server.

Parameters
entityCountNumber of entities loaded

◆ loadFailed

void loadFailed ( const QString &  errorMessage)
signal

Emitted when loading entities fails.

Parameters
errorMessageDescription of the failure