#ifndef CAMPSETTINGS_H #define CAMPSETTINGS_H #include #include #include #include class CampSettings : public QObject { Q_OBJECT Q_PROPERTY(QDecDouble accFee READ accFee WRITE setAccFee) Q_PROPERTY(Enums::Rounding rounding READ rounding WRITE setRounding) Q_PROPERTY(int decimalPlaces READ decimalPlaces WRITE setDecimalPlaces) public: explicit CampSettings(QObject *parent = 0); QDecDouble accFee() const; void setAccFee(QDecDouble accFee); Enums::Rounding rounding() const; void setRounding(const Enums::Rounding &rounding); int decimalPlaces() const; void setDecimalPlaces(int decimalPlaces); private: int m_accFee; Enums::Rounding m_rounding; int m_decimalPlaces; }; typedef QSharedPointer CampSettingsPtr; #endif // CAMPSETTINGS_H