|
FOSSredder 0.5.0
|
Exposes import overview, statement draft, and transaction draft state to QML. More...
#include <ImportViewModel.h>


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. | |
Exposes import overview, statement draft, and transaction draft state to QML.
Definition at line 32 of file ImportViewModel.h.
|
explicit |
Creates the import view model.
| parent | Optional Qt parent object. |
Definition at line 35 of file ImportViewModel.cpp.
|
inline |
Returns the quick-create actor name field.
Definition at line 467 of file ImportViewModel.h.
| QVariantList ui::ImportViewModel::actorOptions | ( | ) | const |
Returns actor dropdown options.
Definition at line 790 of file ImportViewModel.cpp.
| double ui::ImportViewModel::actorSuggestionConfidence | ( | ) | const |
Returns actor suggestion confidence.
Definition at line 995 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::actorSuggestionSummary | ( | ) | const |
Returns actor suggestion summary text.
Definition at line 999 of file ImportViewModel.cpp.
| void ui::ImportViewModel::addActor | ( | ) |
Creates and selects an actor for the current draft.
Definition at line 825 of file ImportViewModel.cpp.
| void ui::ImportViewModel::addContract | ( | ) |
Creates and selects a contract for the current draft.
Definition at line 959 of file ImportViewModel.cpp.

| void ui::ImportViewModel::addProperty | ( | ) |
Creates and selects a property for the current draft.
Definition at line 861 of file ImportViewModel.cpp.

| void ui::ImportViewModel::addSelectedImportFiles | ( | ) |
Adds the manual path field to the selected import files.
Definition at line 254 of file ImportViewModel.cpp.

| void ui::ImportViewModel::addTransactionAfterCurrent | ( | ) |
Adds a transaction draft after the current one.
Definition at line 616 of file ImportViewModel.cpp.

| double ui::ImportViewModel::allocatableSuggestionConfidence | ( | ) | const |
Returns allocatable suggestion confidence.
Definition at line 1022 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::allocatableSuggestionText | ( | ) | const |
Returns allocatable suggestion text.
Definition at line 1026 of file ImportViewModel.cpp.
|
inline |
|
inline |
Returns the booking date field.
Definition at line 383 of file ImportViewModel.h.
| void ui::ImportViewModel::browseImportPdf | ( | ) |
Opens a file browser for import PDFs.
Definition at line 248 of file ImportViewModel.cpp.
| bool ui::ImportViewModel::canAddActor | ( | ) | const |
Returns whether quick-create actor is available.
Definition at line 807 of file ImportViewModel.cpp.

| bool ui::ImportViewModel::canAddContract | ( | ) | const |
Returns whether quick-create contract is available.
Definition at line 941 of file ImportViewModel.cpp.

| bool ui::ImportViewModel::canAddProperty | ( | ) | const |
Returns whether quick-create property is available.
Definition at line 844 of file ImportViewModel.cpp.

|
noexcept |
Returns whether the current import can be canceled.
Definition at line 335 of file ImportViewModel.cpp.
| void ui::ImportViewModel::cancelCurrentImport | ( | ) |
Cancels the current import job.
Definition at line 413 of file ImportViewModel.cpp.
| void ui::ImportViewModel::cancelQueuedImports | ( | ) |
Cancels queued import jobs.
Definition at line 419 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the import form can be cleared.
Definition at line 331 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the current transaction draft can be deleted.
Definition at line 587 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the current import can be paused.
Definition at line 339 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the next transaction draft can be selected.
Definition at line 595 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the previous transaction draft can be selected.
Definition at line 591 of file ImportViewModel.cpp.
|
noexcept |
Returns whether import can be started.
Definition at line 343 of file ImportViewModel.cpp.
|
signal |
Emitted when import view model state changed.

| void ui::ImportViewModel::clearImport | ( | ) |
Clears the local import selection and progress display.
Definition at line 403 of file ImportViewModel.cpp.

| void ui::ImportViewModel::commitAmountText | ( | ) |
Commits the amount field to the workflow draft.
Definition at line 768 of file ImportViewModel.cpp.
| void ui::ImportViewModel::commitBookingDateText | ( | ) |
Commits the booking date field to the workflow draft.
Definition at line 753 of file ImportViewModel.cpp.
| void ui::ImportViewModel::commitNameText | ( | ) |
Commits the transaction name field to the workflow draft.
Definition at line 746 of file ImportViewModel.cpp.
| void ui::ImportViewModel::commitValutaText | ( | ) |
Commits the valuta field to the workflow draft.
Definition at line 761 of file ImportViewModel.cpp.
|
noexcept |
Returns the active import content index.
Definition at line 315 of file ImportViewModel.cpp.
| int ui::ImportViewModel::contractAllocatableModeIndex | ( | ) | const |
Returns selected contract allocatable mode index.
Definition at line 926 of file ImportViewModel.cpp.

| QVariantList ui::ImportViewModel::contractAllocatableModes | ( | ) | const |
Returns contract allocatable mode options.
Definition at line 921 of file ImportViewModel.cpp.

|
inline |
Returns the quick-create contract name field.
Definition at line 499 of file ImportViewModel.h.
| QString ui::ImportViewModel::contractNamePlaceholder | ( | ) | const |
Returns the quick-create contract name placeholder.
Definition at line 914 of file ImportViewModel.cpp.
| QVariantList ui::ImportViewModel::contractOptions | ( | ) | const |
Returns contract dropdown options.
Definition at line 871 of file ImportViewModel.cpp.
| double ui::ImportViewModel::contractSuggestionConfidence | ( | ) | const |
Returns contract suggestion confidence.
Definition at line 1013 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::contractSuggestionSummary | ( | ) | const |
Returns contract suggestion summary text.
Definition at line 1017 of file ImportViewModel.cpp.
|
inline |
Returns the quick-create contract type field.
Definition at line 513 of file ImportViewModel.h.
|
noexcept |
Returns the current transaction draft number.
Definition at line 576 of file ImportViewModel.cpp.
| void ui::ImportViewModel::deleteCurrentTransaction | ( | ) |
Deletes the current transaction draft.
Definition at line 625 of file ImportViewModel.cpp.

| void ui::ImportViewModel::deleteImportLog | ( | const QString & | logId, |
| bool | draftAttached, | ||
| const QString & | draftId ) |
Deletes an import log and attached draft state when requested.
| logId | Import log id. |
| draftAttached | True when a draft is attached. |
| draftId | Draft id associated with the log. |
Definition at line 547 of file ImportViewModel.cpp.
| void ui::ImportViewModel::discard | ( | ) |
Discards the active statement draft.
Definition at line 608 of file ImportViewModel.cpp.

| bool ui::ImportViewModel::effectiveAllocatable | ( | ) | const |
Returns the effective allocatable state.
Definition at line 742 of file ImportViewModel.cpp.
| void ui::ImportViewModel::finalize | ( | ) |
Finalizes the active statement draft through the import workflow.
Definition at line 634 of file ImportViewModel.cpp.

|
noexcept |
Returns whether a statement draft is active.
Definition at line 323 of file ImportViewModel.cpp.
|
noexcept |
Returns whether draft navigation is available.
Definition at line 327 of file ImportViewModel.cpp.
|
noexcept |
Returns whether an import workflow is attached.
Definition at line 319 of file ImportViewModel.cpp.
| QStringList ui::ImportViewModel::importFiles | ( | ) | const |
Returns selected import files.
Definition at line 197 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::importFileSummary | ( | ) | const |
Returns a short summary of selected import files.
Definition at line 209 of file ImportViewModel.cpp.
| QVariantList ui::ImportViewModel::importLogs | ( | ) | const |
Returns import logs for the sidebar.
Definition at line 387 of file ImportViewModel.cpp.
|
noexcept |
Returns whether the import workflow is paused.
Definition at line 355 of file ImportViewModel.cpp.
|
noexcept |
Returns whether an import is running.
Definition at line 351 of file ImportViewModel.cpp.
| QStringList ui::ImportViewModel::importSourceLabels | ( | ) | const |
Returns import source labels.
Definition at line 395 of file ImportViewModel.cpp.
| void ui::ImportViewModel::initializeImportView | ( | ) |
Initializes import view state when the view is opened.
Definition at line 224 of file ImportViewModel.cpp.
| bool ui::ImportViewModel::isPropertySelected | ( | const QString & | propertyId | ) | const |
Returns whether a property is selected for the current draft.
| propertyId | Property id. |
Definition at line 849 of file ImportViewModel.cpp.
|
inline |
Returns the manual import path field.
Definition at line 271 of file ImportViewModel.h.
| QString ui::ImportViewModel::metadataText | ( | ) | const |
Returns metadata text for the current transaction draft.
Definition at line 734 of file ImportViewModel.cpp.
|
inline |
Returns the transaction name field.
Definition at line 369 of file ImportViewModel.h.
|
inlinenoexcept |
Returns shell navigation used by import transitions.
Definition at line 162 of file ImportViewModel.h.
| void ui::ImportViewModel::openImportLog | ( | const QString & | logId, |
| bool | draftAttached, | ||
| const QString & | statementId, | ||
| const QString & | draftId ) |
Opens an import log from the sidebar.
| logId | Import log id. |
| draftAttached | True when a draft is attached. |
| statementId | Statement id associated with finished logs. |
| draftId | Draft id associated with draft logs. |
Definition at line 512 of file ImportViewModel.cpp.

| void ui::ImportViewModel::pauseImport | ( | ) |
Pauses the current import job.
Definition at line 425 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::pauseText | ( | ) | const |
Returns the pause/resume button text.
Definition at line 359 of file ImportViewModel.cpp.
|
noexcept |
Returns whether progress currently represents an error.
Definition at line 375 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::progressText | ( | ) | const |
Returns the import progress text.
Definition at line 364 of file ImportViewModel.cpp.
|
noexcept |
Returns the import progress value.
Definition at line 379 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::proofSource | ( | ) | const |
Returns proof image source for the current draft.
Definition at line 738 of file ImportViewModel.cpp.
|
inline |
Returns the quick-create property name field.
Definition at line 569 of file ImportViewModel.h.
| QVariantList ui::ImportViewModel::propertyOptions | ( | ) | const |
Returns property checkbox options.
Definition at line 832 of file ImportViewModel.cpp.
| double ui::ImportViewModel::propertySuggestionConfidence | ( | ) | const |
Returns property suggestion confidence.
Definition at line 1004 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::propertySuggestionSummary | ( | ) | const |
Returns property suggestion summary text.
Definition at line 1008 of file ImportViewModel.cpp.
|
noexcept |
Returns queued import count.
Definition at line 383 of file ImportViewModel.cpp.
| void ui::ImportViewModel::resumeImport | ( | ) |
Resumes a paused import job.
Definition at line 432 of file ImportViewModel.cpp.
| void ui::ImportViewModel::returnToImport | ( | ) |
Returns from draft review to the import overview.
Definition at line 600 of file ImportViewModel.cpp.

| void ui::ImportViewModel::selectActorAtIndex | ( | int | index | ) |
Selects an actor option.
| index | Index into actorOptions(). |
Definition at line 812 of file ImportViewModel.cpp.

| void ui::ImportViewModel::selectContractAtIndex | ( | int | index | ) |
Selects a contract option.
| index | Index into contractOptions(). |
Definition at line 885 of file ImportViewModel.cpp.

| int ui::ImportViewModel::selectedActorOptionIndex | ( | ) | const |
Returns selected actor option index.
Definition at line 794 of file ImportViewModel.cpp.

| int ui::ImportViewModel::selectedContractOptionIndex | ( | ) | const |
Returns selected contract option index.
Definition at line 875 of file ImportViewModel.cpp.

| QString ui::ImportViewModel::selectedContractType | ( | ) | const |
Returns the selected contract type.
Definition at line 880 of file ImportViewModel.cpp.

| QString ui::ImportViewModel::selectedDraftId | ( | ) | const |
Returns the active draft id.
Definition at line 391 of file ImportViewModel.cpp.
| void ui::ImportViewModel::selectNextDraft | ( | ) |
Selects the next statement draft.
Definition at line 490 of file ImportViewModel.cpp.

| void ui::ImportViewModel::selectNextTransactionDraft | ( | ) |
Selects the next transaction draft.
Definition at line 650 of file ImportViewModel.cpp.
| void ui::ImportViewModel::selectPreviousDraft | ( | ) |
Selects the previous statement draft.
Definition at line 468 of file ImportViewModel.cpp.

| void ui::ImportViewModel::selectPreviousTransactionDraft | ( | ) |
Selects the previous transaction draft.
Definition at line 642 of file ImportViewModel.cpp.
| void ui::ImportViewModel::selectStatusAtIndex | ( | int | index | ) |
Selects a transaction status option.
| index | Index into statusOptions(). |
Definition at line 775 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setActions | ( | Actions * | value | ) |
Sets shell actions used for browsing files.
| value | Actions object or nullptr. |
Definition at line 62 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setActorName | ( | const QString & | value | ) |
Updates the quick-create actor name field.
| value | Actor name text. |
Definition at line 799 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setAmountText | ( | const QString & | value | ) |
Updates the amount field.
| value | Amount text. |
Definition at line 713 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setBookingDateText | ( | const QString & | value | ) |
Updates the booking date field.
| value | Booking date text. |
Definition at line 697 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setContractAllocatableModeIndex | ( | int | index | ) |
Updates selected contract allocatable mode index.
| index | Index into contractAllocatableModes(). |
Definition at line 931 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setContractName | ( | const QString & | value | ) |
Updates the quick-create contract name field.
| value | Contract name text. |
Definition at line 898 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setContractType | ( | const QString & | value | ) |
Updates the quick-create contract type field.
| value | Contract type text. |
Definition at line 906 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setImportWorkflow | ( | ImportWorkflow * | value | ) |
Sets the import workflow used for import runs and draft review.
| value | Import workflow or nullptr. |
Definition at line 39 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setManualPathText | ( | const QString & | value | ) |
Updates the manual import path field.
| value | Manual path text. |
Definition at line 188 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setNameText | ( | const QString & | value | ) |
Updates the transaction name field.
| value | Transaction name text. |
Definition at line 689 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setNavigation | ( | Navigation * | value | ) |
Sets shell navigation used by import transitions.
| value | Navigation state or nullptr. |
Definition at line 70 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setPropertyName | ( | const QString & | value | ) |
Updates the quick-create property name field.
| value | Property name text. |
Definition at line 836 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setPropertySelected | ( | const QString & | propertyId, |
| bool | selected ) |
Updates whether a property is selected for the current draft.
| propertyId | Property id. |
| selected | True to select, false to remove. |
Definition at line 853 of file ImportViewModel.cpp.
| void ui::ImportViewModel::setSettings | ( | Settings * | value | ) |
Sets settings used for import defaults.
| value | Settings object or nullptr. |
Definition at line 53 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setStatementName | ( | const QString & | value | ) |
Updates the active statement draft name field.
| value | Statement name. |
Definition at line 567 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setStatus | ( | Status * | value | ) |
Sets shell status output used by import actions.
| value | Status state or nullptr. |
Definition at line 78 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setValutaText | ( | const QString & | value | ) |
Updates the valuta field.
| value | Valuta text. |
Definition at line 705 of file ImportViewModel.cpp.

| void ui::ImportViewModel::setWorkspaceRoles | ( | WorkspaceStore * | store, |
| WorkspaceCommands * | commands, | ||
| WorkspaceSelection * | selection, | ||
| WorkspaceSelectors * | selectors ) |
Sets workspace roles used for import logs, catalog and selection.
| store | Workspace store or nullptr. |
| commands | Workspace command API or nullptr. |
| selection | Workspace selection API or nullptr. |
| selectors | Workspace selector API or nullptr. |
Definition at line 86 of file ImportViewModel.cpp.

| void ui::ImportViewModel::startImport | ( | ) |
Starts importing the selected files.
Definition at line 439 of file ImportViewModel.cpp.
| QString ui::ImportViewModel::statementName | ( | ) | const |
Returns the active statement draft name field.
Definition at line 563 of file ImportViewModel.cpp.
| QStringList ui::ImportViewModel::statementStrategyLabels | ( | ) | const |
Returns statement strategy labels.
Definition at line 399 of file ImportViewModel.cpp.
| int ui::ImportViewModel::statusIndex | ( | ) | const |
Returns selected transaction status index.
Definition at line 729 of file ImportViewModel.cpp.

| QVariantList ui::ImportViewModel::statusOptions | ( | ) | const |
Returns transaction status options.
Definition at line 721 of file ImportViewModel.cpp.

| int ui::ImportViewModel::suggestionTone | ( | double | confidence | ) | const |
Maps suggestion confidence to a presentation tone.
| confidence | Suggestion confidence. |
Definition at line 985 of file ImportViewModel.cpp.
| void ui::ImportViewModel::toggleAllocatable | ( | ) |
Toggles the current draft allocatable state.
Definition at line 783 of file ImportViewModel.cpp.
|
noexcept |
Returns the transaction draft count.
Definition at line 583 of file ImportViewModel.cpp.
|
inline |
|
readwrite |
Definition at line 88 of file ImportViewModel.h.
|
read |
Definition at line 85 of file ImportViewModel.h.
|
read |
Definition at line 110 of file ImportViewModel.h.
|
read |
Definition at line 112 of file ImportViewModel.h.
| double allocatableSuggestionConfidence READ ui::ImportViewModel::allocatableSuggestionConfidence |
Definition at line 122 of file ImportViewModel.h.
|
read |
Definition at line 124 of file ImportViewModel.h.
|
readwrite |
Definition at line 78 of file ImportViewModel.h.
|
read |
Definition at line 74 of file ImportViewModel.h.
|
read |
Definition at line 89 of file ImportViewModel.h.
|
read |
Definition at line 105 of file ImportViewModel.h.
|
read |
Definition at line 109 of file ImportViewModel.h.
|
read |
Definition at line 41 of file ImportViewModel.h.
|
read |
Definition at line 40 of file ImportViewModel.h.
|
read |
Definition at line 67 of file ImportViewModel.h.
|
read |
Definition at line 42 of file ImportViewModel.h.
| bool canSelectNextTransactionDraft READ ui::ImportViewModel::canSelectNextTransactionDraft |
Definition at line 70 of file ImportViewModel.h.
| bool canSelectPreviousTransactionDraft READ ui::ImportViewModel::canSelectPreviousTransactionDraft |
Definition at line 68 of file ImportViewModel.h.
|
read |
Definition at line 43 of file ImportViewModel.h.
|
read |
Definition at line 36 of file ImportViewModel.h.
|
readwrite |
Definition at line 101 of file ImportViewModel.h.
|
read |
Definition at line 99 of file ImportViewModel.h.
|
readwrite |
Definition at line 93 of file ImportViewModel.h.
|
read |
Definition at line 97 of file ImportViewModel.h.
|
read |
Definition at line 90 of file ImportViewModel.h.
| double contractSuggestionConfidence READ ui::ImportViewModel::contractSuggestionConfidence |
Definition at line 118 of file ImportViewModel.h.
|
read |
Definition at line 120 of file ImportViewModel.h.
|
readwrite |
Definition at line 95 of file ImportViewModel.h.
|
read |
Definition at line 64 of file ImportViewModel.h.
|
read |
Definition at line 84 of file ImportViewModel.h.
|
read |
Definition at line 38 of file ImportViewModel.h.
|
read |
Definition at line 39 of file ImportViewModel.h.
|
read |
Definition at line 37 of file ImportViewModel.h.
|
read |
Definition at line 52 of file ImportViewModel.h.
|
read |
Definition at line 53 of file ImportViewModel.h.
|
read |
Definition at line 56 of file ImportViewModel.h.
|
read |
Definition at line 45 of file ImportViewModel.h.
|
read |
Definition at line 44 of file ImportViewModel.h.
|
read |
Definition at line 58 of file ImportViewModel.h.
|
readwrite |
Definition at line 50 of file ImportViewModel.h.
|
read |
Definition at line 82 of file ImportViewModel.h.
|
readwrite |
Definition at line 73 of file ImportViewModel.h.
|
read |
Definition at line 54 of file ImportViewModel.h.
|
read |
Definition at line 46 of file ImportViewModel.h.
|
read |
Definition at line 48 of file ImportViewModel.h.
|
read |
Definition at line 47 of file ImportViewModel.h.
|
read |
Definition at line 49 of file ImportViewModel.h.
|
read |
Definition at line 83 of file ImportViewModel.h.
|
readwrite |
Definition at line 107 of file ImportViewModel.h.
|
read |
Definition at line 106 of file ImportViewModel.h.
| double propertySuggestionConfidence READ ui::ImportViewModel::propertySuggestionConfidence |
Definition at line 114 of file ImportViewModel.h.
|
read |
Definition at line 116 of file ImportViewModel.h.
|
read |
Definition at line 55 of file ImportViewModel.h.
|
read |
Definition at line 86 of file ImportViewModel.h.
|
read |
Definition at line 91 of file ImportViewModel.h.
|
read |
Definition at line 103 of file ImportViewModel.h.
|
read |
Definition at line 57 of file ImportViewModel.h.
|
readwrite |
Definition at line 62 of file ImportViewModel.h.
|
read |
Definition at line 59 of file ImportViewModel.h.
|
read |
Definition at line 81 of file ImportViewModel.h.
|
read |
Definition at line 80 of file ImportViewModel.h.
|
read |
Definition at line 66 of file ImportViewModel.h.
|
readwrite |
Definition at line 76 of file ImportViewModel.h.