Implemented base functionality of DirectSaleForm.

This commit is contained in:
2016-04-13 22:37:41 +02:00
parent 049314a245
commit 2ed7d7077b
15 changed files with 206 additions and 14 deletions
+11 -2
View File
@@ -1,11 +1,20 @@
#ifndef SHOPSERVICE_H
#define SHOPSERVICE_H
#include <QSharedPointer>
class ShopService
#include <core.h>
#include "data/shop-data.h"
#include "ishopitem.h"
class ShopService : public Service<Voucher>
{
public:
ShopService();
QSharedPointer<Voucher> createVoucher();
void addShopItem(QSharedPointer<Voucher> voucher, QSharedPointer<IShopItem> item, int count);
void calculate(QSharedPointer<Voucher> voucher);
};
#endif // SHOPSERVICE_H
#endif // SHOPSERVICE_H