Continue refactor
This commit is contained in:
parent
18cf2b01bd
commit
219fbfb4c7
14 changed files with 104 additions and 125 deletions
|
|
@ -33,21 +33,21 @@ signals:
|
|||
|
||||
void itemDeleted(ItemData item);
|
||||
void itemAdded(std::weak_ptr<Item> Item);
|
||||
void itemUpdated(std::weak_ptr<Item> Item);
|
||||
void itemUpdated(ItemUpdateRequest update);
|
||||
void sigRefresh();
|
||||
|
||||
public slots:
|
||||
|
||||
void removeItem(const ItemData& item);
|
||||
void addItem(std::shared_ptr<Item> item, bool inform = true);
|
||||
void addItems(const std::vector<std::shared_ptr<Item>>& itemsIn, bool inform = true);
|
||||
void addItem(const std::shared_ptr<Item>& item, item_update_type_t updateType);
|
||||
void addItems(const std::vector<std::shared_ptr<Item>>& itemsIn, item_update_type_t updateType);
|
||||
void replaceItems(const std::vector<std::shared_ptr<Item>>& items);
|
||||
void updateItems(std::vector<ItemData> items, bool inform = true);
|
||||
void updateItem(const ItemData& item, bool inform = true);
|
||||
void updateItems(const std::vector<ItemUpdateRequest>& updates);
|
||||
void updateItem(const ItemUpdateRequest& update);
|
||||
void refresh();
|
||||
|
||||
private slots:
|
||||
void itemUpdateSlot(ItemData data);
|
||||
void itemUpdateSlot(ItemUpdateRequest update);
|
||||
};
|
||||
|
||||
extern ItemStore globalItems;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue