Added seller interface for preparing shop items from other plugins.

This commit is contained in:
2017-05-31 16:11:15 +02:00
parent 1e785fd488
commit 397ec82d06
7 changed files with 68 additions and 8 deletions
+5
View File
@@ -35,3 +35,8 @@ ShopItemPtr CommodityService::shopItem(int itemId)
CommodityDataPtr item = this->loadById(itemId);
return qSharedPointerDynamicCast<ShopItem, CommodityData>(item);
}
ISeller *CommodityService::seller()
{
return NULL;
}
+1 -1
View File
@@ -15,7 +15,7 @@ public:
QList<ShopItemPtr> shopItems() override;
void addedToVoucher(int itemId, int countAdded) override;
virtual ShopItemPtr shopItem(int itemId) override;
ISeller *seller() override;
};
#endif // COMMODITYSERVICE_H