2016-07-13 15:15:18 +02:00
|
|
|
#ifndef COMMODITYSERVICE_H
|
|
|
|
|
#define COMMODITYSERVICE_H
|
|
|
|
|
|
|
|
|
|
#include <service.h>
|
|
|
|
|
#include <isellableservice.h>
|
|
|
|
|
#include "data/commodity-data.h"
|
|
|
|
|
|
|
|
|
|
class CommodityService : public Service<CommodityData>, public ISellableService
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CommodityService();
|
|
|
|
|
|
|
|
|
|
// ISellableService interface
|
|
|
|
|
public:
|
2017-03-28 22:13:54 +02:00
|
|
|
QList<ShopItemPtr> shopItems() override;
|
2016-07-21 16:24:07 +02:00
|
|
|
void addedToVoucher(int itemId, int countAdded) override;
|
2017-03-28 22:13:54 +02:00
|
|
|
virtual ShopItemPtr shopItem(int itemId) override;
|
|
|
|
|
|
2016-07-13 15:15:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // COMMODITYSERVICE_H
|