Added typedefs for QSharedPointer types
This commit is contained in:
+12
-12
@@ -13,16 +13,16 @@ 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);
|
||||
void calculateItem(QSharedPointer<VoucherItem> item);
|
||||
void loadItems(QSharedPointer<Voucher> voucher);
|
||||
void pay(QSharedPointer<Voucher> voucher);
|
||||
QList<QSharedPointer<Voucher> > savedVouchers();
|
||||
QList<QSharedPointer<Voucher> > tempVouchers();
|
||||
QList<QSharedPointer<Voucher> > paiedVouchers();
|
||||
QList<QSharedPointer<ShopItem> > allSellableItems();
|
||||
VoucherPtr createVoucher();
|
||||
void addShopItem(VoucherPtr voucher, QSharedPointer<IShopItem> item, int count);
|
||||
void calculate(VoucherPtr voucher);
|
||||
void calculateItem(VoucherItemPtr item);
|
||||
void loadItems(VoucherPtr voucher);
|
||||
void pay(VoucherPtr voucher);
|
||||
QList<VoucherPtr> savedVouchers();
|
||||
QList<VoucherPtr> tempVouchers();
|
||||
QList<VoucherPtr> paiedVouchers();
|
||||
QList<ShopItemPtr> allSellableItems();
|
||||
|
||||
private:
|
||||
QDecDouble includeVat(QDecDouble price, Enums::VatType vatType);
|
||||
@@ -32,8 +32,8 @@ private:
|
||||
QDecDouble vatRate(Enums::VatType vatType);
|
||||
|
||||
public:
|
||||
void saveVoucher(QSharedPointer<Voucher> entity);
|
||||
void updateVoucher(QSharedPointer<Voucher> entity);
|
||||
void saveVoucher(VoucherPtr entity);
|
||||
void updateVoucher(VoucherPtr entity);
|
||||
};
|
||||
|
||||
#endif // SHOPSERVICE_H
|
||||
|
||||
Reference in New Issue
Block a user