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

Exposes import overview, statement draft, and transaction draft state to QML. More...

#include <ImportViewModel.h>

Inheritance diagram for ui::ImportViewModel:
Collaboration diagram for ui::ImportViewModel:

Signals

void changed ()
 Emitted when import view model state changed.

Public Member Functions

 ImportViewModel (QObject *parent=nullptr)
 Creates the import view model.
void setImportWorkflow (ImportWorkflow *value)
 Sets the import workflow used for import runs and draft review.
void setSettings (Settings *value)
 Sets settings used for import defaults.
void setActions (Actions *value)
 Sets shell actions used for browsing files.
void setNavigation (Navigation *value)
 Sets shell navigation used by import transitions.
Navigation * navigation () const noexcept
 Returns shell navigation used by import transitions.
void setStatus (Status *value)
 Sets shell status output used by import actions.
void setWorkspaceRoles (WorkspaceStore *store, WorkspaceCommands *commands, WorkspaceSelection *selection, WorkspaceSelectors *selectors)
 Sets workspace roles used for import logs, catalog and selection.
int contentIndex () const noexcept
 Returns the active import content index.
bool hasImportWorkflow () const noexcept
 Returns whether an import workflow is attached.
bool hasDraft () const noexcept
 Returns whether a statement draft is active.
bool hasDraftNavigation () const noexcept
 Returns whether draft navigation is available.
bool canClearImport () const noexcept
 Returns whether the import form can be cleared.
bool canCancel () const noexcept
 Returns whether the current import can be canceled.
bool canPause () const noexcept
 Returns whether the current import can be paused.
bool canStart () const noexcept
 Returns whether import can be started.
bool importRunning () const noexcept
 Returns whether an import is running.
bool importPaused () const noexcept
 Returns whether the import workflow is paused.
QString pauseText () const
 Returns the pause/resume button text.
QString progressText () const
 Returns the import progress text.
bool progressHasError () const noexcept
 Returns whether progress currently represents an error.
double progressValue () const noexcept
 Returns the import progress value.
QString manualPathText () const
 Returns the manual import path field.
void setManualPathText (const QString &value)
 Updates the manual import path field.
QStringList importFiles () const
 Returns selected import files.
QString importFileSummary () const
 Returns a short summary of selected import files.
int queuedCount () const noexcept
 Returns queued import count.
QVariantList importLogs () const
 Returns import logs for the sidebar.
QString selectedDraftId () const
 Returns the active draft id.
QStringList importSourceLabels () const
 Returns import source labels.
QStringList statementStrategyLabels () const
 Returns statement strategy labels.
QString statementName () const
 Returns the active statement draft name field.
void setStatementName (const QString &value)
 Updates the active statement draft name field.
int currentTransactionNumber () const noexcept
 Returns the current transaction draft number.
int transactionCount () const noexcept
 Returns the transaction draft count.
bool canDeleteTransaction () const noexcept
 Returns whether the current transaction draft can be deleted.
bool canSelectPreviousTransactionDraft () const noexcept
 Returns whether the previous transaction draft can be selected.
bool canSelectNextTransactionDraft () const noexcept
 Returns whether the next transaction draft can be selected.
QString nameText () const
 Returns the transaction name field.
void setNameText (const QString &value)
 Updates the transaction name field.
QString bookingDateText () const
 Returns the booking date field.
void setBookingDateText (const QString &value)
 Updates the booking date field.
QString valutaText () const
 Returns the valuta field.
void setValutaText (const QString &value)
 Updates the valuta field.
QString amountText () const
 Returns the amount field.
void setAmountText (const QString &value)
 Updates the amount field.
QVariantList statusOptions () const
 Returns transaction status options.
int statusIndex () const
 Returns selected transaction status index.
QString metadataText () const
 Returns metadata text for the current transaction draft.
QString proofSource () const
 Returns proof image source for the current draft.
bool effectiveAllocatable () const
 Returns the effective allocatable state.
QVariantList actorOptions () const
 Returns actor dropdown options.
int selectedActorOptionIndex () const
 Returns selected actor option index.
QString actorName () const
 Returns the quick-create actor name field.
void setActorName (const QString &value)
 Updates the quick-create actor name field.
bool canAddActor () const
 Returns whether quick-create actor is available.
QVariantList contractOptions () const
 Returns contract dropdown options.
int selectedContractOptionIndex () const
 Returns selected contract option index.
QString contractName () const
 Returns the quick-create contract name field.
void setContractName (const QString &value)
 Updates the quick-create contract name field.
QString contractType () const
 Returns the quick-create contract type field.
void setContractType (const QString &value)
 Updates the quick-create contract type field.
QString contractNamePlaceholder () const
 Returns the quick-create contract name placeholder.
QVariantList contractAllocatableModes () const
 Returns contract allocatable mode options.
int contractAllocatableModeIndex () const
 Returns selected contract allocatable mode index.
void setContractAllocatableModeIndex (int index)
 Updates selected contract allocatable mode index.
QString selectedContractType () const
 Returns the selected contract type.
bool canAddContract () const
 Returns whether quick-create contract is available.
QVariantList propertyOptions () const
 Returns property checkbox options.
QString propertyName () const
 Returns the quick-create property name field.
void setPropertyName (const QString &value)
 Updates the quick-create property name field.
bool canAddProperty () const
 Returns whether quick-create property is available.
Q_INVOKABLE void initializeImportView ()
 Initializes import view state when the view is opened.
Q_INVOKABLE void browseImportPdf ()
 Opens a file browser for import PDFs.
Q_INVOKABLE void addSelectedImportFiles ()
 Adds the manual path field to the selected import files.
Q_INVOKABLE void clearImport ()
 Clears the local import selection and progress display.
Q_INVOKABLE void cancelCurrentImport ()
 Cancels the current import job.
Q_INVOKABLE void cancelQueuedImports ()
 Cancels queued import jobs.
Q_INVOKABLE void pauseImport ()
 Pauses the current import job.
Q_INVOKABLE void resumeImport ()
 Resumes a paused import job.
Q_INVOKABLE void startImport ()
 Starts importing the selected files.
Q_INVOKABLE void selectPreviousDraft ()
 Selects the previous statement draft.
Q_INVOKABLE void selectNextDraft ()
 Selects the next statement draft.
Q_INVOKABLE void openImportLog (const QString &logId, bool draftAttached, const QString &statementId, const QString &draftId)
 Opens an import log from the sidebar.
Q_INVOKABLE void deleteImportLog (const QString &logId, bool draftAttached, const QString &draftId)
 Deletes an import log and attached draft state when requested.
Q_INVOKABLE void returnToImport ()
 Returns from draft review to the import overview.
Q_INVOKABLE void discard ()
 Discards the active statement draft.
Q_INVOKABLE void addTransactionAfterCurrent ()
 Adds a transaction draft after the current one.
Q_INVOKABLE void deleteCurrentTransaction ()
 Deletes the current transaction draft.
Q_INVOKABLE void finalize ()
 Finalizes the active statement draft through the import workflow.
Q_INVOKABLE void selectPreviousTransactionDraft ()
 Selects the previous transaction draft.
Q_INVOKABLE void selectNextTransactionDraft ()
 Selects the next transaction draft.
Q_INVOKABLE void commitNameText ()
 Commits the transaction name field to the workflow draft.
Q_INVOKABLE void commitBookingDateText ()
 Commits the booking date field to the workflow draft.
Q_INVOKABLE void commitValutaText ()
 Commits the valuta field to the workflow draft.
Q_INVOKABLE void commitAmountText ()
 Commits the amount field to the workflow draft.
Q_INVOKABLE void selectStatusAtIndex (int index)
 Selects a transaction status option.
Q_INVOKABLE int suggestionTone (double confidence) const
 Maps suggestion confidence to a presentation tone.
Q_INVOKABLE void selectActorAtIndex (int index)
 Selects an actor option.
Q_INVOKABLE void addActor ()
 Creates and selects an actor for the current draft.
Q_INVOKABLE void selectContractAtIndex (int index)
 Selects a contract option.
Q_INVOKABLE void addContract ()
 Creates and selects a contract for the current draft.
Q_INVOKABLE bool isPropertySelected (const QString &propertyId) const
 Returns whether a property is selected for the current draft.
Q_INVOKABLE void setPropertySelected (const QString &propertyId, bool selected)
 Updates whether a property is selected for the current draft.
Q_INVOKABLE void addProperty ()
 Creates and selects a property for the current draft.
Q_INVOKABLE void toggleAllocatable ()
 Toggles the current draft allocatable state.
double actorSuggestionConfidence () const
 Returns actor suggestion confidence.
QString actorSuggestionSummary () const
 Returns actor suggestion summary text.
double propertySuggestionConfidence () const
 Returns property suggestion confidence.
QString propertySuggestionSummary () const
 Returns property suggestion summary text.
double contractSuggestionConfidence () const
 Returns contract suggestion confidence.
QString contractSuggestionSummary () const
 Returns contract suggestion summary text.
double allocatableSuggestionConfidence () const
 Returns allocatable suggestion confidence.
QString allocatableSuggestionText () const
 Returns allocatable suggestion text.

Properties

int contentIndex
bool hasImportWorkflow
bool hasDraft
bool hasDraftNavigation
bool canClearImport
bool canCancel
bool canPause
bool canStart
bool importRunning
bool importPaused
QString pauseText
QString progressText
bool progressHasError
double progressValue
QString manualPathText
QStringList importFiles
QString importFileSummary
ui::Navigation * navigation
int queuedCount
QVariantList importLogs
QString selectedDraftId
QStringList importSourceLabels
QStringList statementStrategyLabels
QString statementName
int currentTransactionNumber
int transactionCount
bool canDeleteTransaction
bool canSelectPreviousTransactionDraft READ canSelectPreviousTransactionDraft
bool canSelectNextTransactionDraft READ canSelectNextTransactionDraft
QString nameText
QString bookingDateText
QString valutaText
QString amountText
QVariantList statusOptions
int statusIndex
QString metadataText
QString proofSource
bool effectiveAllocatable
QVariantList actorOptions
int selectedActorOptionIndex
QString actorName
bool canAddActor
QVariantList contractOptions
int selectedContractOptionIndex
QString contractName
QString contractType
QString contractNamePlaceholder
QVariantList contractAllocatableModes
int contractAllocatableModeIndex
QString selectedContractType
bool canAddContract
QVariantList propertyOptions
QString propertyName
bool canAddProperty
double actorSuggestionConfidence
QString actorSuggestionSummary
double propertySuggestionConfidence READ propertySuggestionConfidence
QString propertySuggestionSummary
double contractSuggestionConfidence READ contractSuggestionConfidence
QString contractSuggestionSummary
double allocatableSuggestionConfidence READ allocatableSuggestionConfidence
QString allocatableSuggestionText

Detailed Description

Exposes import overview, statement draft, and transaction draft state to QML.

Definition at line 32 of file ImportViewModel.h.

Constructor & Destructor Documentation

◆ ImportViewModel()

ui::ImportViewModel::ImportViewModel ( QObject * parent = nullptr)
explicit

Creates the import view model.

Parameters
parentOptional Qt parent object.

Definition at line 35 of file ImportViewModel.cpp.

Member Function Documentation

◆ actorName()

QString ui::ImportViewModel::actorName ( ) const
inline

Returns the quick-create actor name field.

Returns
Actor name text.

Definition at line 467 of file ImportViewModel.h.

◆ actorOptions()

QVariantList ui::ImportViewModel::actorOptions ( ) const

Returns actor dropdown options.

Returns
Actor option rows.

Definition at line 790 of file ImportViewModel.cpp.

◆ actorSuggestionConfidence()

double ui::ImportViewModel::actorSuggestionConfidence ( ) const

Returns actor suggestion confidence.

Returns
Confidence between 0 and 1.

Definition at line 995 of file ImportViewModel.cpp.

◆ actorSuggestionSummary()

QString ui::ImportViewModel::actorSuggestionSummary ( ) const

Returns actor suggestion summary text.

Returns
Summary text.

Definition at line 999 of file ImportViewModel.cpp.

◆ addActor()

void ui::ImportViewModel::addActor ( )

Creates and selects an actor for the current draft.

Definition at line 825 of file ImportViewModel.cpp.

◆ addContract()

void ui::ImportViewModel::addContract ( )

Creates and selects a contract for the current draft.

Definition at line 959 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ addProperty()

void ui::ImportViewModel::addProperty ( )

Creates and selects a property for the current draft.

Definition at line 861 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ addSelectedImportFiles()

void ui::ImportViewModel::addSelectedImportFiles ( )

Adds the manual path field to the selected import files.

Definition at line 254 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ addTransactionAfterCurrent()

void ui::ImportViewModel::addTransactionAfterCurrent ( )

Adds a transaction draft after the current one.

Definition at line 616 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ allocatableSuggestionConfidence()

double ui::ImportViewModel::allocatableSuggestionConfidence ( ) const

Returns allocatable suggestion confidence.

Returns
Confidence between 0 and 1.

Definition at line 1022 of file ImportViewModel.cpp.

◆ allocatableSuggestionText()

QString ui::ImportViewModel::allocatableSuggestionText ( ) const

Returns allocatable suggestion text.

Returns
Suggestion text.

Definition at line 1026 of file ImportViewModel.cpp.

◆ amountText()

QString ui::ImportViewModel::amountText ( ) const
inline

Returns the amount field.

Returns
Amount text.

Definition at line 411 of file ImportViewModel.h.

◆ bookingDateText()

QString ui::ImportViewModel::bookingDateText ( ) const
inline

Returns the booking date field.

Returns
Booking date text.

Definition at line 383 of file ImportViewModel.h.

◆ browseImportPdf()

void ui::ImportViewModel::browseImportPdf ( )

Opens a file browser for import PDFs.

Definition at line 248 of file ImportViewModel.cpp.

◆ canAddActor()

bool ui::ImportViewModel::canAddActor ( ) const

Returns whether quick-create actor is available.

Returns
True when actor can be added.

Definition at line 807 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ canAddContract()

bool ui::ImportViewModel::canAddContract ( ) const

Returns whether quick-create contract is available.

Returns
True when contract can be added.

Definition at line 941 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ canAddProperty()

bool ui::ImportViewModel::canAddProperty ( ) const

Returns whether quick-create property is available.

Returns
True when property can be added.

Definition at line 844 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ canCancel()

bool ui::ImportViewModel::canCancel ( ) const
noexcept

Returns whether the current import can be canceled.

Returns
True when cancel is available.

Definition at line 335 of file ImportViewModel.cpp.

◆ cancelCurrentImport()

void ui::ImportViewModel::cancelCurrentImport ( )

Cancels the current import job.

Definition at line 413 of file ImportViewModel.cpp.

◆ cancelQueuedImports()

void ui::ImportViewModel::cancelQueuedImports ( )

Cancels queued import jobs.

Definition at line 419 of file ImportViewModel.cpp.

◆ canClearImport()

bool ui::ImportViewModel::canClearImport ( ) const
noexcept

Returns whether the import form can be cleared.

Returns
True when local import selection can be cleared.

Definition at line 331 of file ImportViewModel.cpp.

◆ canDeleteTransaction()

bool ui::ImportViewModel::canDeleteTransaction ( ) const
noexcept

Returns whether the current transaction draft can be deleted.

Returns
True when deletion is available.

Definition at line 587 of file ImportViewModel.cpp.

◆ canPause()

bool ui::ImportViewModel::canPause ( ) const
noexcept

Returns whether the current import can be paused.

Returns
True when pause is available.

Definition at line 339 of file ImportViewModel.cpp.

◆ canSelectNextTransactionDraft()

bool ui::ImportViewModel::canSelectNextTransactionDraft ( ) const
noexcept

Returns whether the next transaction draft can be selected.

Returns
True when next draft navigation is available.

Definition at line 595 of file ImportViewModel.cpp.

◆ canSelectPreviousTransactionDraft()

bool ui::ImportViewModel::canSelectPreviousTransactionDraft ( ) const
noexcept

Returns whether the previous transaction draft can be selected.

Returns
True when previous draft navigation is available.

Definition at line 591 of file ImportViewModel.cpp.

◆ canStart()

bool ui::ImportViewModel::canStart ( ) const
noexcept

Returns whether import can be started.

Returns
True when selected files can be queued.

Definition at line 343 of file ImportViewModel.cpp.

◆ changed

void ui::ImportViewModel::changed ( )
signal

Emitted when import view model state changed.

Here is the caller graph for this function:

◆ clearImport()

void ui::ImportViewModel::clearImport ( )

Clears the local import selection and progress display.

Definition at line 403 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ commitAmountText()

void ui::ImportViewModel::commitAmountText ( )

Commits the amount field to the workflow draft.

Definition at line 768 of file ImportViewModel.cpp.

◆ commitBookingDateText()

void ui::ImportViewModel::commitBookingDateText ( )

Commits the booking date field to the workflow draft.

Definition at line 753 of file ImportViewModel.cpp.

◆ commitNameText()

void ui::ImportViewModel::commitNameText ( )

Commits the transaction name field to the workflow draft.

Definition at line 746 of file ImportViewModel.cpp.

◆ commitValutaText()

void ui::ImportViewModel::commitValutaText ( )

Commits the valuta field to the workflow draft.

Definition at line 761 of file ImportViewModel.cpp.

◆ contentIndex()

int ui::ImportViewModel::contentIndex ( ) const
noexcept

Returns the active import content index.

Returns
Content stack index.

Definition at line 315 of file ImportViewModel.cpp.

◆ contractAllocatableModeIndex()

int ui::ImportViewModel::contractAllocatableModeIndex ( ) const

Returns selected contract allocatable mode index.

Returns
Index into contractAllocatableModes().

Definition at line 926 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ contractAllocatableModes()

QVariantList ui::ImportViewModel::contractAllocatableModes ( ) const

Returns contract allocatable mode options.

Returns
Allocatable mode rows.

Definition at line 921 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ contractName()

QString ui::ImportViewModel::contractName ( ) const
inline

Returns the quick-create contract name field.

Returns
Contract name text.

Definition at line 499 of file ImportViewModel.h.

◆ contractNamePlaceholder()

QString ui::ImportViewModel::contractNamePlaceholder ( ) const

Returns the quick-create contract name placeholder.

Returns
Placeholder text.

Definition at line 914 of file ImportViewModel.cpp.

◆ contractOptions()

QVariantList ui::ImportViewModel::contractOptions ( ) const

Returns contract dropdown options.

Returns
Contract option rows.

Definition at line 871 of file ImportViewModel.cpp.

◆ contractSuggestionConfidence()

double ui::ImportViewModel::contractSuggestionConfidence ( ) const

Returns contract suggestion confidence.

Returns
Confidence between 0 and 1.

Definition at line 1013 of file ImportViewModel.cpp.

◆ contractSuggestionSummary()

QString ui::ImportViewModel::contractSuggestionSummary ( ) const

Returns contract suggestion summary text.

Returns
Summary text.

Definition at line 1017 of file ImportViewModel.cpp.

◆ contractType()

QString ui::ImportViewModel::contractType ( ) const
inline

Returns the quick-create contract type field.

Returns
Contract type text.

Definition at line 513 of file ImportViewModel.h.

◆ currentTransactionNumber()

int ui::ImportViewModel::currentTransactionNumber ( ) const
noexcept

Returns the current transaction draft number.

Returns
One-based transaction number.

Definition at line 576 of file ImportViewModel.cpp.

◆ deleteCurrentTransaction()

void ui::ImportViewModel::deleteCurrentTransaction ( )

Deletes the current transaction draft.

Definition at line 625 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ deleteImportLog()

void ui::ImportViewModel::deleteImportLog ( const QString & logId,
bool draftAttached,
const QString & draftId )

Deletes an import log and attached draft state when requested.

Parameters
logIdImport log id.
draftAttachedTrue when a draft is attached.
draftIdDraft id associated with the log.

Definition at line 547 of file ImportViewModel.cpp.

◆ discard()

void ui::ImportViewModel::discard ( )

Discards the active statement draft.

Definition at line 608 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ effectiveAllocatable()

bool ui::ImportViewModel::effectiveAllocatable ( ) const

Returns the effective allocatable state.

Returns
True when the transaction draft is allocatable.

Definition at line 742 of file ImportViewModel.cpp.

◆ finalize()

void ui::ImportViewModel::finalize ( )

Finalizes the active statement draft through the import workflow.

Definition at line 634 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ hasDraft()

bool ui::ImportViewModel::hasDraft ( ) const
noexcept

Returns whether a statement draft is active.

Returns
True when draft review content is available.

Definition at line 323 of file ImportViewModel.cpp.

◆ hasDraftNavigation()

bool ui::ImportViewModel::hasDraftNavigation ( ) const
noexcept

Returns whether draft navigation is available.

Returns
True when previous/next draft actions can be shown.

Definition at line 327 of file ImportViewModel.cpp.

◆ hasImportWorkflow()

bool ui::ImportViewModel::hasImportWorkflow ( ) const
noexcept

Returns whether an import workflow is attached.

Returns
True when workflow commands can run.

Definition at line 319 of file ImportViewModel.cpp.

◆ importFiles()

QStringList ui::ImportViewModel::importFiles ( ) const

Returns selected import files.

Returns
File path list.

Definition at line 197 of file ImportViewModel.cpp.

◆ importFileSummary()

QString ui::ImportViewModel::importFileSummary ( ) const

Returns a short summary of selected import files.

Returns
Localized file summary text.

Definition at line 209 of file ImportViewModel.cpp.

◆ importLogs()

QVariantList ui::ImportViewModel::importLogs ( ) const

Returns import logs for the sidebar.

Returns
Import log rows.

Definition at line 387 of file ImportViewModel.cpp.

◆ importPaused()

bool ui::ImportViewModel::importPaused ( ) const
noexcept

Returns whether the import workflow is paused.

Returns
True when paused.

Definition at line 355 of file ImportViewModel.cpp.

◆ importRunning()

bool ui::ImportViewModel::importRunning ( ) const
noexcept

Returns whether an import is running.

Returns
True while import work is active.

Definition at line 351 of file ImportViewModel.cpp.

◆ importSourceLabels()

QStringList ui::ImportViewModel::importSourceLabels ( ) const

Returns import source labels.

Returns
Source labels.

Definition at line 395 of file ImportViewModel.cpp.

◆ initializeImportView()

void ui::ImportViewModel::initializeImportView ( )

Initializes import view state when the view is opened.

Definition at line 224 of file ImportViewModel.cpp.

◆ isPropertySelected()

bool ui::ImportViewModel::isPropertySelected ( const QString & propertyId) const

Returns whether a property is selected for the current draft.

Parameters
propertyIdProperty id.
Returns
True when selected.

Definition at line 849 of file ImportViewModel.cpp.

◆ manualPathText()

QString ui::ImportViewModel::manualPathText ( ) const
inline

Returns the manual import path field.

Returns
Manual path text.

Definition at line 271 of file ImportViewModel.h.

◆ metadataText()

QString ui::ImportViewModel::metadataText ( ) const

Returns metadata text for the current transaction draft.

Returns
Metadata text.

Definition at line 734 of file ImportViewModel.cpp.

◆ nameText()

QString ui::ImportViewModel::nameText ( ) const
inline

Returns the transaction name field.

Returns
Transaction name text.

Definition at line 369 of file ImportViewModel.h.

◆ navigation()

Navigation * ui::ImportViewModel::navigation ( ) const
inlinenoexcept

Returns shell navigation used by import transitions.

Returns
Navigation state or nullptr.

Definition at line 162 of file ImportViewModel.h.

◆ openImportLog()

void ui::ImportViewModel::openImportLog ( const QString & logId,
bool draftAttached,
const QString & statementId,
const QString & draftId )

Opens an import log from the sidebar.

Parameters
logIdImport log id.
draftAttachedTrue when a draft is attached.
statementIdStatement id associated with finished logs.
draftIdDraft id associated with draft logs.

Definition at line 512 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ pauseImport()

void ui::ImportViewModel::pauseImport ( )

Pauses the current import job.

Definition at line 425 of file ImportViewModel.cpp.

◆ pauseText()

QString ui::ImportViewModel::pauseText ( ) const

Returns the pause/resume button text.

Returns
Localized pause state text.

Definition at line 359 of file ImportViewModel.cpp.

◆ progressHasError()

bool ui::ImportViewModel::progressHasError ( ) const
noexcept

Returns whether progress currently represents an error.

Returns
True when the progress state has an error.

Definition at line 375 of file ImportViewModel.cpp.

◆ progressText()

QString ui::ImportViewModel::progressText ( ) const

Returns the import progress text.

Returns
Localized progress text.

Definition at line 364 of file ImportViewModel.cpp.

◆ progressValue()

double ui::ImportViewModel::progressValue ( ) const
noexcept

Returns the import progress value.

Returns
Progress value between 0 and 1 when available.

Definition at line 379 of file ImportViewModel.cpp.

◆ proofSource()

QString ui::ImportViewModel::proofSource ( ) const

Returns proof image source for the current draft.

Returns
QML image source string.

Definition at line 738 of file ImportViewModel.cpp.

◆ propertyName()

QString ui::ImportViewModel::propertyName ( ) const
inline

Returns the quick-create property name field.

Returns
Property name text.

Definition at line 569 of file ImportViewModel.h.

◆ propertyOptions()

QVariantList ui::ImportViewModel::propertyOptions ( ) const

Returns property checkbox options.

Returns
Property option rows.

Definition at line 832 of file ImportViewModel.cpp.

◆ propertySuggestionConfidence()

double ui::ImportViewModel::propertySuggestionConfidence ( ) const

Returns property suggestion confidence.

Returns
Confidence between 0 and 1.

Definition at line 1004 of file ImportViewModel.cpp.

◆ propertySuggestionSummary()

QString ui::ImportViewModel::propertySuggestionSummary ( ) const

Returns property suggestion summary text.

Returns
Summary text.

Definition at line 1008 of file ImportViewModel.cpp.

◆ queuedCount()

int ui::ImportViewModel::queuedCount ( ) const
noexcept

Returns queued import count.

Returns
Number of queued import files.

Definition at line 383 of file ImportViewModel.cpp.

◆ resumeImport()

void ui::ImportViewModel::resumeImport ( )

Resumes a paused import job.

Definition at line 432 of file ImportViewModel.cpp.

◆ returnToImport()

void ui::ImportViewModel::returnToImport ( )

Returns from draft review to the import overview.

Definition at line 600 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectActorAtIndex()

void ui::ImportViewModel::selectActorAtIndex ( int index)

Selects an actor option.

Parameters
indexIndex into actorOptions().

Definition at line 812 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectContractAtIndex()

void ui::ImportViewModel::selectContractAtIndex ( int index)

Selects a contract option.

Parameters
indexIndex into contractOptions().

Definition at line 885 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectedActorOptionIndex()

int ui::ImportViewModel::selectedActorOptionIndex ( ) const

Returns selected actor option index.

Returns
Index into actorOptions().

Definition at line 794 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectedContractOptionIndex()

int ui::ImportViewModel::selectedContractOptionIndex ( ) const

Returns selected contract option index.

Returns
Index into contractOptions().

Definition at line 875 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectedContractType()

QString ui::ImportViewModel::selectedContractType ( ) const

Returns the selected contract type.

Returns
Contract type key.

Definition at line 880 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectedDraftId()

QString ui::ImportViewModel::selectedDraftId ( ) const

Returns the active draft id.

Returns
Draft id or an empty string.

Definition at line 391 of file ImportViewModel.cpp.

◆ selectNextDraft()

void ui::ImportViewModel::selectNextDraft ( )

Selects the next statement draft.

Definition at line 490 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectNextTransactionDraft()

void ui::ImportViewModel::selectNextTransactionDraft ( )

Selects the next transaction draft.

Definition at line 650 of file ImportViewModel.cpp.

◆ selectPreviousDraft()

void ui::ImportViewModel::selectPreviousDraft ( )

Selects the previous statement draft.

Definition at line 468 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ selectPreviousTransactionDraft()

void ui::ImportViewModel::selectPreviousTransactionDraft ( )

Selects the previous transaction draft.

Definition at line 642 of file ImportViewModel.cpp.

◆ selectStatusAtIndex()

void ui::ImportViewModel::selectStatusAtIndex ( int index)

Selects a transaction status option.

Parameters
indexIndex into statusOptions().

Definition at line 775 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setActions()

void ui::ImportViewModel::setActions ( Actions * value)

Sets shell actions used for browsing files.

Parameters
valueActions object or nullptr.

Definition at line 62 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setActorName()

void ui::ImportViewModel::setActorName ( const QString & value)

Updates the quick-create actor name field.

Parameters
valueActor name text.

Definition at line 799 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setAmountText()

void ui::ImportViewModel::setAmountText ( const QString & value)

Updates the amount field.

Parameters
valueAmount text.

Definition at line 713 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setBookingDateText()

void ui::ImportViewModel::setBookingDateText ( const QString & value)

Updates the booking date field.

Parameters
valueBooking date text.

Definition at line 697 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setContractAllocatableModeIndex()

void ui::ImportViewModel::setContractAllocatableModeIndex ( int index)

Updates selected contract allocatable mode index.

Parameters
indexIndex into contractAllocatableModes().

Definition at line 931 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setContractName()

void ui::ImportViewModel::setContractName ( const QString & value)

Updates the quick-create contract name field.

Parameters
valueContract name text.

Definition at line 898 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setContractType()

void ui::ImportViewModel::setContractType ( const QString & value)

Updates the quick-create contract type field.

Parameters
valueContract type text.

Definition at line 906 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setImportWorkflow()

void ui::ImportViewModel::setImportWorkflow ( ImportWorkflow * value)

Sets the import workflow used for import runs and draft review.

Parameters
valueImport workflow or nullptr.

Definition at line 39 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setManualPathText()

void ui::ImportViewModel::setManualPathText ( const QString & value)

Updates the manual import path field.

Parameters
valueManual path text.

Definition at line 188 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setNameText()

void ui::ImportViewModel::setNameText ( const QString & value)

Updates the transaction name field.

Parameters
valueTransaction name text.

Definition at line 689 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setNavigation()

void ui::ImportViewModel::setNavigation ( Navigation * value)

Sets shell navigation used by import transitions.

Parameters
valueNavigation state or nullptr.

Definition at line 70 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setPropertyName()

void ui::ImportViewModel::setPropertyName ( const QString & value)

Updates the quick-create property name field.

Parameters
valueProperty name text.

Definition at line 836 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setPropertySelected()

void ui::ImportViewModel::setPropertySelected ( const QString & propertyId,
bool selected )

Updates whether a property is selected for the current draft.

Parameters
propertyIdProperty id.
selectedTrue to select, false to remove.

Definition at line 853 of file ImportViewModel.cpp.

◆ setSettings()

void ui::ImportViewModel::setSettings ( Settings * value)

Sets settings used for import defaults.

Parameters
valueSettings object or nullptr.

Definition at line 53 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setStatementName()

void ui::ImportViewModel::setStatementName ( const QString & value)

Updates the active statement draft name field.

Parameters
valueStatement name.

Definition at line 567 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setStatus()

void ui::ImportViewModel::setStatus ( Status * value)

Sets shell status output used by import actions.

Parameters
valueStatus state or nullptr.

Definition at line 78 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setValutaText()

void ui::ImportViewModel::setValutaText ( const QString & value)

Updates the valuta field.

Parameters
valueValuta text.

Definition at line 705 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ setWorkspaceRoles()

void ui::ImportViewModel::setWorkspaceRoles ( WorkspaceStore * store,
WorkspaceCommands * commands,
WorkspaceSelection * selection,
WorkspaceSelectors * selectors )

Sets workspace roles used for import logs, catalog and selection.

Parameters
storeWorkspace store or nullptr.
commandsWorkspace command API or nullptr.
selectionWorkspace selection API or nullptr.
selectorsWorkspace selector API or nullptr.

Definition at line 86 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ startImport()

void ui::ImportViewModel::startImport ( )

Starts importing the selected files.

Definition at line 439 of file ImportViewModel.cpp.

◆ statementName()

QString ui::ImportViewModel::statementName ( ) const

Returns the active statement draft name field.

Returns
Statement name.

Definition at line 563 of file ImportViewModel.cpp.

◆ statementStrategyLabels()

QStringList ui::ImportViewModel::statementStrategyLabels ( ) const

Returns statement strategy labels.

Returns
Strategy labels.

Definition at line 399 of file ImportViewModel.cpp.

◆ statusIndex()

int ui::ImportViewModel::statusIndex ( ) const

Returns selected transaction status index.

Returns
Index into statusOptions().

Definition at line 729 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ statusOptions()

QVariantList ui::ImportViewModel::statusOptions ( ) const

Returns transaction status options.

Returns
Status option rows.

Definition at line 721 of file ImportViewModel.cpp.

Here is the call graph for this function:

◆ suggestionTone()

int ui::ImportViewModel::suggestionTone ( double confidence) const

Maps suggestion confidence to a presentation tone.

Parameters
confidenceSuggestion confidence.
Returns
Tone index for QML styling.

Definition at line 985 of file ImportViewModel.cpp.

◆ toggleAllocatable()

void ui::ImportViewModel::toggleAllocatable ( )

Toggles the current draft allocatable state.

Definition at line 783 of file ImportViewModel.cpp.

◆ transactionCount()

int ui::ImportViewModel::transactionCount ( ) const
noexcept

Returns the transaction draft count.

Returns
Transaction count.

Definition at line 583 of file ImportViewModel.cpp.

◆ valutaText()

QString ui::ImportViewModel::valutaText ( ) const
inline

Returns the valuta field.

Returns
Valuta text.

Definition at line 397 of file ImportViewModel.h.

Property Documentation

◆ actorName

QString ui::ImportViewModel::actorName
readwrite

Definition at line 88 of file ImportViewModel.h.

◆ actorOptions

QVariantList ui::ImportViewModel::actorOptions
read

Definition at line 85 of file ImportViewModel.h.

◆ actorSuggestionConfidence

double ui::ImportViewModel::actorSuggestionConfidence
read

Definition at line 110 of file ImportViewModel.h.

◆ actorSuggestionSummary

QString ui::ImportViewModel::actorSuggestionSummary
read

Definition at line 112 of file ImportViewModel.h.

◆ allocatableSuggestionConfidence

double allocatableSuggestionConfidence READ ui::ImportViewModel::allocatableSuggestionConfidence

Definition at line 122 of file ImportViewModel.h.

◆ allocatableSuggestionText

QString ui::ImportViewModel::allocatableSuggestionText
read

Definition at line 124 of file ImportViewModel.h.

◆ amountText

QString ui::ImportViewModel::amountText
readwrite

Definition at line 78 of file ImportViewModel.h.

◆ bookingDateText

QString ui::ImportViewModel::bookingDateText
read

Definition at line 74 of file ImportViewModel.h.

◆ canAddActor

bool ui::ImportViewModel::canAddActor
read

Definition at line 89 of file ImportViewModel.h.

◆ canAddContract

bool ui::ImportViewModel::canAddContract
read

Definition at line 105 of file ImportViewModel.h.

◆ canAddProperty

bool ui::ImportViewModel::canAddProperty
read

Definition at line 109 of file ImportViewModel.h.

◆ canCancel

bool ui::ImportViewModel::canCancel
read

Definition at line 41 of file ImportViewModel.h.

◆ canClearImport

bool ui::ImportViewModel::canClearImport
read

Definition at line 40 of file ImportViewModel.h.

◆ canDeleteTransaction

bool ui::ImportViewModel::canDeleteTransaction
read

Definition at line 67 of file ImportViewModel.h.

◆ canPause

bool ui::ImportViewModel::canPause
read

Definition at line 42 of file ImportViewModel.h.

◆ canSelectNextTransactionDraft

bool canSelectNextTransactionDraft READ ui::ImportViewModel::canSelectNextTransactionDraft

Definition at line 70 of file ImportViewModel.h.

◆ canSelectPreviousTransactionDraft

bool canSelectPreviousTransactionDraft READ ui::ImportViewModel::canSelectPreviousTransactionDraft

Definition at line 68 of file ImportViewModel.h.

◆ canStart

bool ui::ImportViewModel::canStart
read

Definition at line 43 of file ImportViewModel.h.

◆ contentIndex

int ui::ImportViewModel::contentIndex
read

Definition at line 36 of file ImportViewModel.h.

◆ contractAllocatableModeIndex

int ui::ImportViewModel::contractAllocatableModeIndex
readwrite

Definition at line 101 of file ImportViewModel.h.

◆ contractAllocatableModes

QVariantList ui::ImportViewModel::contractAllocatableModes
read

Definition at line 99 of file ImportViewModel.h.

◆ contractName

QString ui::ImportViewModel::contractName
readwrite

Definition at line 93 of file ImportViewModel.h.

◆ contractNamePlaceholder

QString ui::ImportViewModel::contractNamePlaceholder
read

Definition at line 97 of file ImportViewModel.h.

◆ contractOptions

QVariantList ui::ImportViewModel::contractOptions
read

Definition at line 90 of file ImportViewModel.h.

◆ contractSuggestionConfidence

double contractSuggestionConfidence READ ui::ImportViewModel::contractSuggestionConfidence

Definition at line 118 of file ImportViewModel.h.

◆ contractSuggestionSummary

QString ui::ImportViewModel::contractSuggestionSummary
read

Definition at line 120 of file ImportViewModel.h.

◆ contractType

QString ui::ImportViewModel::contractType
readwrite

Definition at line 95 of file ImportViewModel.h.

◆ currentTransactionNumber

int ui::ImportViewModel::currentTransactionNumber
read

Definition at line 64 of file ImportViewModel.h.

◆ effectiveAllocatable

bool ui::ImportViewModel::effectiveAllocatable
read

Definition at line 84 of file ImportViewModel.h.

◆ hasDraft

bool ui::ImportViewModel::hasDraft
read

Definition at line 38 of file ImportViewModel.h.

◆ hasDraftNavigation

bool ui::ImportViewModel::hasDraftNavigation
read

Definition at line 39 of file ImportViewModel.h.

◆ hasImportWorkflow

bool ui::ImportViewModel::hasImportWorkflow
read

Definition at line 37 of file ImportViewModel.h.

◆ importFiles

QStringList ui::ImportViewModel::importFiles
read

Definition at line 52 of file ImportViewModel.h.

◆ importFileSummary

QString ui::ImportViewModel::importFileSummary
read

Definition at line 53 of file ImportViewModel.h.

◆ importLogs

QVariantList ui::ImportViewModel::importLogs
read

Definition at line 56 of file ImportViewModel.h.

◆ importPaused

bool ui::ImportViewModel::importPaused
read

Definition at line 45 of file ImportViewModel.h.

◆ importRunning

bool ui::ImportViewModel::importRunning
read

Definition at line 44 of file ImportViewModel.h.

◆ importSourceLabels

QStringList ui::ImportViewModel::importSourceLabels
read

Definition at line 58 of file ImportViewModel.h.

◆ manualPathText

QString ui::ImportViewModel::manualPathText
readwrite

Definition at line 50 of file ImportViewModel.h.

◆ metadataText

QString ui::ImportViewModel::metadataText
read

Definition at line 82 of file ImportViewModel.h.

◆ nameText

QString ui::ImportViewModel::nameText
readwrite

Definition at line 73 of file ImportViewModel.h.

◆ navigation

ui::Navigation* ui::ImportViewModel::navigation
read

Definition at line 54 of file ImportViewModel.h.

◆ pauseText

QString ui::ImportViewModel::pauseText
read

Definition at line 46 of file ImportViewModel.h.

◆ progressHasError

bool ui::ImportViewModel::progressHasError
read

Definition at line 48 of file ImportViewModel.h.

◆ progressText

QString ui::ImportViewModel::progressText
read

Definition at line 47 of file ImportViewModel.h.

◆ progressValue

double ui::ImportViewModel::progressValue
read

Definition at line 49 of file ImportViewModel.h.

◆ proofSource

QString ui::ImportViewModel::proofSource
read

Definition at line 83 of file ImportViewModel.h.

◆ propertyName

QString ui::ImportViewModel::propertyName
readwrite

Definition at line 107 of file ImportViewModel.h.

◆ propertyOptions

QVariantList ui::ImportViewModel::propertyOptions
read

Definition at line 106 of file ImportViewModel.h.

◆ propertySuggestionConfidence

double propertySuggestionConfidence READ ui::ImportViewModel::propertySuggestionConfidence

Definition at line 114 of file ImportViewModel.h.

◆ propertySuggestionSummary

QString ui::ImportViewModel::propertySuggestionSummary
read

Definition at line 116 of file ImportViewModel.h.

◆ queuedCount

int ui::ImportViewModel::queuedCount
read

Definition at line 55 of file ImportViewModel.h.

◆ selectedActorOptionIndex

int ui::ImportViewModel::selectedActorOptionIndex
read

Definition at line 86 of file ImportViewModel.h.

◆ selectedContractOptionIndex

int ui::ImportViewModel::selectedContractOptionIndex
read

Definition at line 91 of file ImportViewModel.h.

◆ selectedContractType

QString ui::ImportViewModel::selectedContractType
read

Definition at line 103 of file ImportViewModel.h.

◆ selectedDraftId

QString ui::ImportViewModel::selectedDraftId
read

Definition at line 57 of file ImportViewModel.h.

◆ statementName

QString ui::ImportViewModel::statementName
readwrite

Definition at line 62 of file ImportViewModel.h.

◆ statementStrategyLabels

QStringList ui::ImportViewModel::statementStrategyLabels
read

Definition at line 59 of file ImportViewModel.h.

◆ statusIndex

int ui::ImportViewModel::statusIndex
read

Definition at line 81 of file ImportViewModel.h.

◆ statusOptions

QVariantList ui::ImportViewModel::statusOptions
read

Definition at line 80 of file ImportViewModel.h.

◆ transactionCount

int ui::ImportViewModel::transactionCount
read

Definition at line 66 of file ImportViewModel.h.

◆ valutaText

QString ui::ImportViewModel::valutaText
readwrite

Definition at line 76 of file ImportViewModel.h.


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