78 virtual QDataStream& serialize(QDataStream& stream) const; |
78 virtual QDataStream& serialize(QDataStream& stream) const; |
79 virtual QDataStream& deserialize(QDataStream& stream); |
79 virtual QDataStream& deserialize(QDataStream& stream); |
80 virtual Type typeIdentifier() const = 0; |
80 virtual Type typeIdentifier() const = 0; |
81 virtual QString toLDrawCode() const = 0; |
81 virtual QString toLDrawCode() const = 0; |
82 virtual QString iconName() const; |
82 virtual QString iconName() const; |
|
83 virtual QString typeName() const = 0; |
83 |
84 |
84 protected: |
85 protected: |
85 template<Property property, typename Function> |
86 template<Property property, typename Function> |
86 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function); |
87 void handle(SetPropertyResult* result, const PropertyKeyValue& pair, Function function); |
87 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair); |
88 virtual void setProperty(SetPropertyResult* result, const PropertyKeyValue& pair); |