Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
+24
-7
@@ -5,17 +5,34 @@
|
||||
#include <QDecDouble.hh>
|
||||
#include <QString>
|
||||
#include <enums.h>
|
||||
#include <QObject>
|
||||
#include <QSharedPointer>
|
||||
|
||||
class SHOPSHARED_EXPORT IShopItem
|
||||
class SHOPSHARED_EXPORT IShopItem : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QString code READ code)
|
||||
Q_PROPERTY(QString name READ name)
|
||||
Q_PROPERTY(QString shortName READ shortName)
|
||||
Q_PROPERTY(QDecDouble unitPrice READ unitPrice)
|
||||
Q_PROPERTY(Enums::VatType vatType READ vatType)
|
||||
|
||||
public:
|
||||
virtual int id() = 0;
|
||||
virtual QString name() = 0;
|
||||
virtual QString shortName() = 0;
|
||||
virtual QDecDouble unitPrice() = 0;
|
||||
virtual Enums::VatType vatType() = 0;
|
||||
virtual QString pluginId() = 0;
|
||||
explicit IShopItem(QObject* parent = nullptr);
|
||||
~IShopItem() override = default;
|
||||
|
||||
virtual long id() { return {}; }
|
||||
virtual QString name() { return {}; }
|
||||
virtual QString code() { return {}; }
|
||||
virtual QString shortName() { return {}; }
|
||||
virtual QDecDouble unitPrice() { return {}; }
|
||||
virtual Enums::VatType vatType() { return {}; }
|
||||
virtual QString pluginId() { return {}; }
|
||||
};
|
||||
|
||||
using IShopItemPtr = QSharedPointer<IShopItem>;
|
||||
|
||||
QX_REGISTER_HPP_SHOP(IShopItem, QObject, 0)
|
||||
|
||||
#endif // ISHOPITEM_H
|
||||
|
||||
Reference in New Issue
Block a user