mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
WIP: Slowly bringing back viewmodels
This commit is contained in:
parent
9abee12658
commit
228f81984b
17 changed files with 292 additions and 96 deletions
|
@ -33,6 +33,16 @@ namespace Model {
|
|||
|
||||
class Item : public DTO::BaseItemDto {
|
||||
public:
|
||||
/**
|
||||
* @brief Constructor that creates an empty item.
|
||||
*/
|
||||
Item();
|
||||
|
||||
/**
|
||||
* @brief Copies the data from the DTO into this model and attaches an ApiClient
|
||||
* @param data The DTO to copy information from
|
||||
* @param apiClient The ApiClient to attach to, to listen for updates and so on.
|
||||
*/
|
||||
Item(const DTO::BaseItemDto &data, ApiClient *apiClient = nullptr);
|
||||
virtual ~Item();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue