Camp wizard is now able to open from shop plugin

This commit is contained in:
2017-05-31 16:16:22 +02:00
parent 397ec82d06
commit 13d90445cc
8 changed files with 177 additions and 6 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef CAMPSHOPITEM_H
#define CAMPSHOPITEM_H
#include <shopitem.h>
class CampShopItem : public ShopItem
{
public:
CampShopItem(QObject *parent = 0);
// IShopItem interface
public:
QString name();
QString shortName();
QDecDouble unitPrice();
Enums::VatType vatType();
QString pluginId();
// ShopItem interface
public:
QString code();
void setUnitPrice(const QDecDouble &unitPrice);
void setVatType(const Enums::VatType &vatType);
private:
QDecDouble m_unitPrice;
Enums::VatType m_vatType;
};
typedef QSharedPointer<CampShopItem> CampShopItemPtr;
#endif // CAMPSHOPITEM_H