|
| bool | onAdded (const drn::navigation::GuiElementIdentifier &id, const drn::budgeting::BudgetItemTypes &type, const drn::budgeting::BudgetedMoney &item, const std::optional< drn::banking::BankAccount > &ba, const drn::tagging::BudgetItemTags::ItemTags &itemTags) |
| | Adds a new budget item to the system based on its type, registers it with the appropriate ledger, marks the state as modified, and emits success or failure signals in response to the operation.
|
| void | onAddedAct (const drn::accounting::Account &act) |
| std::optional< drn::accounting::AccountCode > | onAddedBankAccount (const QString &name, const drn::banking::BankAccountTypes &type, const pecunia::Money &openingBalance) |
| void | onAddedTransaction (const drn::accounting::Transaction &txn) |
| void | onBankAdded (const drn::banking::Bank &b) |
| | Adds a new bank to the system.
|
| void | onBankClosed (const drn::banking::BankName &bn) |
| void | onBankOpened (const drn::banking::BankName &bn) |
| void | onBankRemoved (const drn::banking::BankName &bn) |
| void | onBankRenamed (const drn::banking::BankName &original, const drn::banking::BankName &change) |
| void | onBankUpdated (const drn::banking::Bank &b) |
| | Updates the provided bank’s details in the system.
|
| void | onCheckIsBudgetFileDirty () |
| void | onClosed (const drn::accounting::AccountCode &code) |
| void | onCompletedNewBudgetFirstTimeWizard (const pecunia::Currency &preferred, const std::set< pecunia::Currency > &usable, const drn::navigation::CurrencyDisplayOptions &displayAs, const drn::banking::BankName &primary, const drn::banking::BankAccountTypes &kind, const QString &accountName, const pecunia::Money &initialBalance, const drn::navigation::BudgetWizardTemplates &selectedTemplate) |
| void | onCompletedSurvey (const QDate &completedOn, const drn::banking::BankAccount &ba, const pecunia::Money &balance, const std::set< drn::accounting::TransactionNumber > &allReconciled, const drn::surveying::IndexedIncreaseDecreases< drn::budgeting::BudgetItemIdentifier > &allAdded, const drn::surveying::IndexedIncreaseDecreases< drn::accounting::AccountNumber > &allExtra, const std::map< drn::budgeting::BudgetItemIdentifier, drn::surveying::DistributedAmount > &distributed, const pecunia::Money &nonDistributed) |
| void | onConfigureUpdated (const drn::navigation::ConfigurationData &data) |
| | Updates user configuration preferences and validates the provided input. Emits signals indicating success or failure of the operation.
|
| void | onConfirmedLoadBudgetFile (const QString &filePathName, const bool isReloaded) |
| void | onConfirmedNewBudgetEmpty () |
| | Clears existing budget values and resets the system to prepare for displaying a new empty budget, then emits a signal to update the user interface.
|
| void | onConfirmedNewBudgetFirstTimeWizard () |
| | Processes the confirmation from the user to display the first-time wizard.
|
| void | onFetchExchangeRates (const std::set< pecunia::Currency > ¤cies) |
| void | onFetchReleaseNotes () |
| void | onGenerateMappingSurvey (const drn::banking::BankName &bn, const drn::accounting::AccountNumber &an, const QDate &surveyingOn) |
| void | onLoadBudgetFile (const QString &filePathName) |
| void | onLookUpBankAccounts (const drn::banking::BankName &bn, const drn::navigation::AllowSubAccounts &shouldAllow) |
| void | onLookUpBudgetItemSources (const drn::budgeting::BudgetItemDueIdentifier &requestedBy) |
| | Handles a lookup for sources associated with a specific budget item and emits the result. This method is used to retrieve all associated sources for a given budget item, categorized by its type. Once the lookup is completed, the results are emitted as a signal to notify other components.
|
| void | onLookUpLastReconciliation (const drn::accounting::AccountNumber &an) |
| | Looks up the last reconciliation data for a given account and emits a signal with the associated details.
|
| void | onLookUpRefundableTransactions (const drn::budgeting::BudgetItemIdentifier &bii) |
| | Handles a lookup for non-reconciled refundable transactions associated with a specific budget item and emits the result. It is used to retrieve transactions categorized as refundable for a specific budget item. Once the lookup is completed, the result is emitted as a signal to notify other components.
|
| void | onMarkCleared (const std::set< drn::accounting::TransactionNumber > &tns) |
| void | onMarkReconciled (const drn::accounting::TransactionNumber &tn) |
| void | onMarkUnreconciled (const std::set< drn::accounting::TransactionNumber > &tns) |
| void | onOpened (const drn::accounting::AccountCode &code) |
| void | onPostBudgetItemPosted (const drn::budgeting::BudgetItemAmountDue &bid, const drn::accounting::AccountCode &ac, const QDate &postOn) |
| | Posts a budget item to the budget bank ledger and emits the result as a signal. This function is used to update the financial ledger with a budget item due, associating it with a specific account and post date. Successful operation triggers a signal containing the posted item's ID and assigned transaction number. In case of failure, an error signal is emitted to notify the failure details.
|
| void | onPostBudgetItemPostedUnexpected (const drn::budgeting::BudgetItemDueIdentifier &bidi, const pecunia::Money &amount, const drn::accounting::AccountCode &ac, const QDate &postOn) |
| void | onPostBudgetItemSkipped (const drn::budgeting::BudgetItemDueIdentifier &bidi) |
| void | onPostRefund (const drn::accounting::TransactionNumber &txnNum, const pecunia::Money &refund) |
| | Handles the user request to post a refund to the budget ledgers.
|
| void | onPrepareNewBudgetEmpty () |
| | Prepares the system to start a new, empty budget and emits a confirmation signal if the current budget or state poses potential data overwrite risks.
|
| void | onPrepareNewBudgetFirstTimeWizard () |
| | Prepares and emits the signal to show the first-time wizard with the user's preferred settings. This method is used to initialize and indicate that the application should display the first-time wizard in the graphical interface.
|
| void | onPrepareShowAccounts () |
| void | onPrepareShowBanks () |
| void | onPrepareShowBills () |
| | Prepares and emits the necessary information to display bills in a GUI element.
|
| void | onPrepareShowBudgetItemRefund () |
| void | onPrepareShowConfigure () |
| void | onPrepareShowDashboard () |
| void | onPrepareShowDebts () |
| | Prepares and emits the necessary information to display debts in a GUI element.
|
| void | onPrepareShowExchangeRates () |
| void | onPrepareShowGoals () |
| | Prepares and emits the necessary information to display goals in a GUI element.
|
| void | onPrepareShowLedgers () |
| void | onPrepareShowMoneyTransfer () |
| void | onPrepareShowNontracks () |
| | Prepares and emits the necessary information to display non-tracks in a GUI element.
|
| void | onPrepareShowProcessBudgetItems () |
| void | onPrepareShowSurvey () |
| void | onPrepareShowWages () |
| | Prepares and emits the necessary information to display wages in a GUI element.
|
| void | onRecoded (const drn::accounting::AccountCode ¤t, const drn::accounting::AccountCode &changed) |
| void | onReloadBudgetFile () |
| void | onRemoved (const drn::navigation::GuiElementIdentifier &id, const drn::budgeting::BudgetItemTypes &type, const drn::budgeting::BudgetSource &source) |
| | Handles the removal of a budget item and ensures associated state is correct.
|
| void | onRemovedAct (const drn::accounting::AccountCode &code) |
| void | onRemovedBankAccount (const drn::accounting::AccountCode &ac) |
| void | onRemovedTransaction (const drn::accounting::TransactionNumber &tn) |
| void | onRenamed (const drn::navigation::GuiElementIdentifier &id, const drn::budgeting::BudgetItemTypes &type, const drn::budgeting::BudgetSource &original, const drn::budgeting::BudgetSource &changed) |
| | Handles the renaming of a specific budget item associated with a GUI element.
|
| void | onRenamedBankAccount (const drn::accounting::AccountCode &original, const drn::accounting::AccountCode &changed) |
| void | onSaveAsBudgetFile (const QString &filePathName) |
| void | onSaveBudgetFile () |
| void | onSelectedLedger (const drn::accounting::AccountCode &code) |
| void | onStoreExchangeRates (const drn::conversion::ConversionMap &conversions) |
| void | onTransferRequested (const drn::accounting::AccountNumber &from, const drn::accounting::AccountNumber &to, const pecunia::Money &amount, const QString &reason) |
| void | onUpdated (const drn::navigation::GuiElementIdentifier &id, const drn::budgeting::BudgetItemTypes &type, const drn::budgeting::BudgetedMoney &item, const std::optional< drn::banking::BankAccount > &ba, const drn::tagging::BudgetItemTags::ItemTags &itemTags) |
| | Updates a specific budget item and its associated data.
|
| void | onUpdatedTransaction (const drn::accounting::TransactionNumber &tn, const drn::accounting::Transaction &txn) |
|
| void | accountSaveFailed (const std::optional< drn::accounting::AccountCode > &original, const QString &errorMessage, const std::optional< drn::accounting::AccountCode > &displayed) |
| void | accountSaveSucceeded (const drn::accounting::AccountCode &code) |
| void | bankAccountSaveFailed (const std::optional< drn::accounting::AccountCode > &original, const QString &errorMessage, const std::optional< drn::accounting::AccountCode > &displayed) |
| void | bankAccountSaveSucceeded (const drn::accounting::AccountCode &ac) |
| void | bankSaveFailed (const std::optional< drn::banking::BankName > &original, const QString &errorMessage, const std::optional< drn::banking::BankName > &displayed) |
| void | bankSaveSucceeded (const drn::banking::BankName &bn) |
| void | checkedIsBudgetFileDirty (const bool isDirty) |
| void | completedSurveyFailed (const QString &errorMessage) |
| void | completedSurveySucceeded () |
| void | configureSaveFailed (const QString &errorMessage) |
| | Triggered when the system fails to save the configuration changes.
|
| void | configureSaveSucceeded () |
| | Triggered when the system successfully saves the configuration changes.
|
| void | fetchedExchangeRates (const std::set< pecunia::Currency > ¤cies, const drn::conversion::ConversionMap &conversions) |
| void | fetchedReleaseNotes (const std::set< drn::updating::ReleaseInformation > &versions) |
| void | generatedMappingSurvey (const drn::surveying::MappingSurvey &survey) |
| void | loadedBudgetFile (const QString &filePathName, const bool isReloaded) |
| void | lookedUpBankAccounts (const drn::banking::BankName &bn, const std::set< drn::banking::AccountNumberBankType > &accountTypes) |
| void | lookedUpBudgetItemSources (const drn::budgeting::BudgetItemDueIdentifier &requestedBy, const std::set< drn::budgeting::BudgetSource > &sources) |
| | Emits the result of a lookup for budget item sources associated with a specific budget item. This method is used to notify other components about the sources identified for a particular budget item.
|
| void | lookedUpLastReconciliation (const pecunia::Currency &code, const std::optional< drn::banking::ReconciledBalance > &reconciliation) |
| | Triggered when the most recent reconciliation record for a previously requested bank account is available. This is a signal indicating the completion of the lookup.
|
| void | lookedUpRefundableTransactions (const drn::budgeting::BudgetItemIdentifier &bii, const drn::accounting::AccountCode &ac, const std::set< drn::accounting::Transaction > &txns) |
| | Triggered when the result of a refundable transactions lookup for a specific budget item is completed.
|
| void | processBudgetItemSaveFailed (const drn::budgeting::BudgetItemDueIdentifier &bidi, const QString &errorMessage) |
| void | processBudgetItemSaveSucceeded (const drn::budgeting::BudgetItemDueIdentifier &bidi, const std::optional< drn::accounting::TransactionNumber > &txnNum) |
| void | savedBudgetFile (const QString &filePathName) |
| void | saveFailed (const drn::navigation::GuiElementIdentifier &id, const std::optional< drn::budgeting::BudgetSource > &original, const QString &errorMessage, const std::optional< drn::budgeting::BudgetSource > &displayed) |
| void | saveSucceeded (const drn::navigation::GuiElementIdentifier &id, const drn::budgeting::BudgetSource &source) |
| void | showAccounts (const std::set< drn::accounting::Account > &accounts, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| void | showBanks (const drn::banking::BankMap &banks, const std::set< drn::accounting::Account > &allAccounts, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when the GUI should display a list of banks in the system.
|
| void | showBills (const drn::budgeting::BillMap &bills, const pecunia::Currency &preferred, const drn::tagging::Tags &possibleTags, const drn::tagging::BudgetItemTags &associatedTags, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when the user requested to display a list of bills.
|
| void | showBudgetItemRefund (const std::set< pecunia::Currency > &codes, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| void | showConfigure (const drn::navigation::ConfigurationData &confData, const std::set< pecunia::Currency > &used) |
| | Triggered when the configuration should be displayed.
|
| void | showConfirmLoadBudgetFile (const QString &filePathName) |
| void | showConfirmNewBudget () |
| | Triggered when a user must confirm that a new budget should be created.
|
| void | showDashboard (const drn::budgeting::BudgetTotals &bt, const std::vector< drn::budgeting::BudgetItemAmountDue > &due, const drn::adviser::BudgetHealth &bh, const std::chrono::days &dueWithin, const pecunia::Currency &preferred, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| void | showDebts (const drn::budgeting::DebtMap &debts, const std::set< drn::navigation::BudgetBankAccount > &accounts, const std::set< drn::accounting::AccountCode > &codes, const std::set< drn::banking::BankName > &banks, const pecunia::Currency &preferred, const drn::tagging::Tags &possibleTags, const drn::tagging::BudgetItemTags &associatedTags, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when the user requested to display a list of debts.
|
| void | showExchangeRates (const drn::conversion::ConversionMap ¤tConversions, const std::set< pecunia::Currency > ¤cies) |
| void | showGoals (const drn::budgeting::GoalMap &goals, const std::set< drn::navigation::BudgetBankAccount > &accounts, const std::set< drn::accounting::AccountCode > &codes, const std::set< drn::banking::BankName > &banks, const pecunia::Currency &preferred, const drn::tagging::Tags &possibleTags, const drn::tagging::BudgetItemTags &associatedTags, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs, const pecunia::Money &wagesTotal) |
| | Triggered when the user requested to display a list of goals.
|
| void | showLedger (const drn::accounting::LedgerAccount &ledger) |
| void | showLedgers (const std::set< drn::accounting::Account > &accounts, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| void | showMoneyTransfer (const std::set< drn::navigation::BankAccountCode > &fromBanks, const std::set< drn::navigation::BankAccountCode > &toBanks, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| void | showNewBudget () |
| | Triggered when a new budget is created and should be displayed.
|
| void | showNewBudgetFirstTimeWizard (const pecunia::Currency &preferred, const std::set< pecunia::Currency > &usable, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when a first-time new budget wizard should be displayed.
|
| void | showNoBudgetFileOpened () |
| void | showNontracks (const drn::budgeting::NontrackMap &nontracks, const pecunia::Currency &preferred, const drn::tagging::Tags &possibleTags, const drn::tagging::BudgetItemTags &associatedTags, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when the user requested to display a list of nontracks.
|
| void | showProcessBudgetItems (const std::chrono::days &dueWithin, const std::vector< drn::budgeting::BudgetItemAmountDue > &items, const std::set< drn::banking::BankName > &banks, const pecunia::Currency &preferredCurrency, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs, const std::set< drn::accounting::AccountCode > &codes) |
| void | showSaveAsBudgetFile () |
| void | showSurvey (const std::set< drn::banking::BankName > &banks, const std::set< pecunia::Currency > &usable, const drn::navigation::CurrencyDisplayOptions &displayAs, const drn::foundation::Percentage &balanceWindow, const std::set< drn::accounting::AccountCode > &codes) |
| void | showWages (const drn::budgeting::WageMap &wages, const pecunia::Currency &preferred, const drn::tagging::Tags &possibleTags, const drn::tagging::BudgetItemTags &associatedTags, const std::set< pecunia::Currency > &usableCurrencies, const drn::navigation::CurrencyDisplayOptions &displayAs) |
| | Triggered when the user requested to display a list of wages.
|
| void | transactionSaveFailed (const std::optional< drn::accounting::TransactionNumber > &tn, const QString &errorMessage) |
| void | transactionSaveSucceeded (const std::optional< drn::accounting::TransactionNumber > &displayed, const std::optional< drn::accounting::TransactionNumber > &posted) |
| void | updateAvailableAcknowledged () |
| void | updateReleased (const drn::updating::SemanticVersion &latest) |
The Navigator class provides a set of functionalities to manage and update various budget, account, and transaction-related operations.
It acts as a central controller for handling interactions with both backend storage and GUI elements. It enables the addition, updating, reconciliation, and removal of entities like budget items, accounts, banks, and transactions. It also ensures proper state management and emits appropriate signals to maintain system responsiveness and to handle user commands effectively.