FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::AnnualWorkflow Class Reference

Coordinates annual computation for UI states. More...

#include <AnnualWorkflow.h>

Inheritance diagram for ui::AnnualWorkflow:
Collaboration diagram for ui::AnnualWorkflow:

Public Types

using StateSnapshotProvider

Public Member Functions

 AnnualWorkflow (StateSnapshotProvider stateSnapshotProvider, std::shared_ptr< ui::adapters::AnnualAdapter > annualAdapter, QObject *parent=nullptr)
 Creates an annual workflow.
QVariantMap computeAnnualPreview (const QString &annualId, const QStringList &analysisIds, int year) const
 Computes an annual preview through the core runner.

Detailed Description

Coordinates annual computation for UI states.

Definition at line 27 of file AnnualWorkflow.h.

Member Typedef Documentation

◆ StateSnapshotProvider

Constructor & Destructor Documentation

◆ AnnualWorkflow()

ui::AnnualWorkflow::AnnualWorkflow ( StateSnapshotProvider stateSnapshotProvider,
std::shared_ptr< ui::adapters::AnnualAdapter > annualAdapter,
QObject * parent = nullptr )
explicit

Creates an annual workflow.

Parameters
stateSnapshotProviderProvider for the current workspace snapshot.
annualAdapterAdapter used to invoke the core annual runner.
parentOptional Qt parent.

Definition at line 18 of file AnnualWorkflow.cpp.

Member Function Documentation

◆ computeAnnualPreview()

QVariantMap ui::AnnualWorkflow::computeAnnualPreview ( const QString & annualId,
const QStringList & analysisIds,
int year ) const

Computes an annual preview through the core runner.

Parameters
annualIdAnnual id.
analysisIdsAnalysis ids assigned to the annual.
yearAnnual year.
Returns
QML annual result payload.

Definition at line 24 of file AnnualWorkflow.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: