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.
37 lines
777 B
C++
37 lines
777 B
C++
#ifndef CAMPSHOPITEM_H
|
|
#define CAMPSHOPITEM_H
|
|
|
|
#include <shopitem.h>
|
|
|
|
class CampShopItem : public IShopItem
|
|
{
|
|
public:
|
|
explicit CampShopItem(QObject *parent = nullptr);
|
|
|
|
// IShopItem interface
|
|
public:
|
|
long id() const override;
|
|
QString name() override;
|
|
QString shortName() override;
|
|
QDecDouble unitPrice() override;
|
|
Enums::VatType vatType() override;
|
|
QString pluginId() const override;
|
|
|
|
// ShopItem interface
|
|
public:
|
|
QString code() override;
|
|
|
|
void setUnitPrice(const QDecDouble &unitPrice);
|
|
void setVatType(const Enums::VatType &vatType);
|
|
void setId(long id);
|
|
|
|
private:
|
|
long m_id;
|
|
QDecDouble m_unitPrice;
|
|
Enums::VatType m_vatType;
|
|
};
|
|
|
|
typedef QSharedPointer<CampShopItem> CampShopItemPtr;
|
|
|
|
#endif // CAMPSHOPITEM_H
|