![]() |
NDEVR
API Documentation
|
Handles creating and rendering transit incident reports. More...
Public Member Functions | |
| TransitIncidentReportHandler () | |
| Constructs the TransitIncidentReportHandler. | |
| virtual bool | canHandle (UUID id, QTModelManager *manager) const override |
| Checks whether this handler can produce a report for the given ID. | |
| virtual void | createReportJSON (const UUID &id, JSONNode &node, ReportJSONMaker &maker) const override |
| Serializes the report to JSON format. | |
| virtual Buffer< UUID > | defaultReportIDs (const Buffer< UUID > &objects_to_report, QTModelManager *manager) const override |
| Given a list of model objects, returns report IDs this handler requests to manage. | |
| virtual QWidget * | getReport (const UUID &id, QTModelManager *manager, const QRect &requested_geometry) const override |
| Generates the report widget for the given ID. | |
| virtual UUID | id () const override |
| Returns the unique identifier for this report handler type. | |
| Public Member Functions inherited from ReportHandler | |
| ReportHandler (const TranslatedString &name, const TranslatedString &description, const StringView &icon) | |
| Constructs a report handler with the given display properties. | |
| virtual bool | defaultEnabled () const |
| Checks whether this report handler is enabled by default. | |
| const TranslatedString & | description () const |
| Retrieves the description of this report handler. | |
| const String & | icon () const |
| Retrieves the icon identifier for this report handler. | |
| const TranslatedString & | name () const |
| Retrieves the display name of this report handler. | |
| virtual QMenu * | popupOptions () const |
| Retrieves an optional popup menu with additional report options. | |
Public Attributes | |
| TransitIncidentReport * | m_report = nullptr |
| Cached report instance. | |
Additional Inherited Members | |
| Protected Attributes inherited from ReportHandler | |
| bool | m_default_enabled = true |
| Whether this handler is enabled by default. | |
| TranslatedString | m_description |
| The description of this report handler. | |
| String | m_icon |
| The icon identifier for this report handler. | |
| TranslatedString | m_name |
| The display name of this report handler. | |
Handles creating and rendering transit incident reports.
Definition at line 19 of file IncidentReportHandler.h.
|
overridevirtual |
Checks whether this handler can produce a report for the given ID.
Reimplemented from ReportHandler.
|
overridevirtual |
Serializes the report to JSON format.
| [in] | id | The report UUID. |
| [in] | node | The JSON node to populate. |
| [in] | maker | The report JSON maker utility. |
Reimplemented from ReportHandler.
|
overridevirtual |
Given a list of model objects, returns report IDs this handler requests to manage.
| [in] | objects_to_report | The UUIDs of the objects to include in the report. |
| [in] | manager | The model manager for data access. |
Reimplemented from ReportHandler.
|
overridevirtual |
Generates the report widget for the given ID.
| [in] | id | The report UUID. |
| [in] | manager | The model manager for data access. |
| [in] | requested_geometry | The requested widget geometry. |
Reimplemented from ReportHandler.
|
inlineoverridevirtual |
Returns the unique identifier for this report handler type.
Reimplemented from ReportHandler.
Definition at line 51 of file IncidentReportHandler.h.
References UUID::CreateUUID().