|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
The manager interface for interacting with a stored budget. More...
#include <BudgetStorage.hpp>
Classes | |
| struct | Data |
| Represents a data-bag for serialising the budget information. More... | |
Public Member Functions | |
| BudgetStorage ()=default | |
| BudgetStorage (BudgetStorage &&)=default | |
| BudgetStorage (const BudgetStorage &)=delete | |
| virtual | ~BudgetStorage ()=default |
| virtual void | changeLocation (const ::QString &location)=0 |
| When implemented, changes the storage location for storing or loading a budget. | |
| virtual Data | load () const =0 |
| When implemented, loads a budget file from a storage location. | |
| virtual const ::QString & | name () const noexcept=0 |
| When implemented, provides an accessor to the name of the budget stored, e.g. when stored on a file-system this would be the file-name. | |
| BudgetStorage & | operator= (BudgetStorage &&)=default |
| BudgetStorage & | operator= (const BudgetStorage &)=delete |
| virtual void | store (const Data &data) const =0 |
| When implemented, stores all budget information to a location. | |
The manager interface for interacting with a stored budget.
|
default |
|
delete |
|
default |
|
virtualdefault |
|
pure virtual |
When implemented, changes the storage location for storing or loading a budget.
| StorageError | When the path is invalid. |
| location | The path to the location of the budget. |
Implemented in drn::file_storage::BudgetFile.
|
nodiscardpure virtual |
When implemented, loads a budget file from a storage location.
| StorageError | When there's an issue loading the budget. |
Implemented in drn::file_storage::BudgetFile.
|
nodiscardpure virtualnoexcept |
When implemented, provides an accessor to the name of the budget stored, e.g. when stored on a file-system this would be the file-name.
Implemented in drn::file_storage::BudgetFile.
|
default |
|
delete |
|
pure virtual |
When implemented, stores all budget information to a location.
| StorageError | When the budget cannot be stored. |
| [in] | data | The budget data to store. |
Implemented in drn::file_storage::BudgetFile.