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.
36 lines
810 B
C++
36 lines
810 B
C++
#ifndef SHOPITEM_H
|
|
#define SHOPITEM_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "shop_global.h"
|
|
#include "ishopitem.h"
|
|
|
|
class SHOPSHARED_EXPORT ShopItem : public QObject, public IShopItem
|
|
{
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(QString name READ name)
|
|
Q_PROPERTY(QDecDouble unitPrice READ unitPrice)
|
|
Q_PROPERTY(Enums::VatType vatType READ vatType)
|
|
|
|
public:
|
|
explicit ShopItem(QObject *parent = 0);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
// IShopItem interface
|
|
public:
|
|
virtual int id() override { return 0; }
|
|
virtual QString name() override { return ""; }
|
|
virtual QDecDouble unitPrice() override { return QDecDouble(); }
|
|
virtual Enums::VatType vatType() override { return Enums::NONE; }
|
|
virtual QString pluginId() override { return ""; }
|
|
};
|
|
|
|
typedef QSharedPointer<ShopItem> ShopItemPtr;
|
|
|
|
#endif // SHOPITEM_H
|