You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
564 B
C++
23 lines
564 B
C++
#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() = default;
|
|
|
|
// ISellableService interface
|
|
public:
|
|
QList<IShopItemPtr> shopItems() override;
|
|
void addedToVoucher(int itemId, int countAdded) override;
|
|
IShopItemPtr shopItem(int itemId) override;
|
|
ISeller *seller() override;
|
|
QString defaultSort() override;
|
|
};
|
|
|
|
#endif // COMMODITYSERVICE_H
|