Changeset View
Changeset View
Standalone View
Standalone View
src/core/attributestorage_p.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
43 | void swap(AttributeStorage &other) noexcept; | 43 | void swap(AttributeStorage &other) noexcept; | ||
44 | ~AttributeStorage(); | 44 | ~AttributeStorage(); | ||
45 | 45 | | |||
46 | void addAttribute(Attribute *attr); | 46 | void addAttribute(Attribute *attr); | ||
47 | void removeAttribute(const QByteArray &type); | 47 | void removeAttribute(const QByteArray &type); | ||
48 | bool hasAttribute(const QByteArray &type) const; | 48 | bool hasAttribute(const QByteArray &type) const; | ||
49 | Attribute::List attributes() const; | 49 | Attribute::List attributes() const; | ||
50 | void clearAttributes(); | 50 | void clearAttributes(); | ||
51 | Attribute *attribute(const QByteArray &type) const; | 51 | const Attribute *attribute(const QByteArray &type) const; | ||
52 | Attribute *attribute(const QByteArray &type); | ||||
52 | void markAttributeModified(const QByteArray &type); | 53 | void markAttributeModified(const QByteArray &type); | ||
53 | void resetChangeLog(); | 54 | void resetChangeLog(); | ||
54 | 55 | | |||
55 | QSet<QByteArray> deletedAttributes() const; | 56 | QSet<QByteArray> deletedAttributes() const; | ||
56 | bool hasModifiedAttributes() const; | 57 | bool hasModifiedAttributes() const; | ||
57 | std::vector<Attribute *> modifiedAttributes() const; | 58 | std::vector<Attribute *> modifiedAttributes() const; | ||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | QHash<QByteArray, Attribute *> mAttributes; | 61 | QHash<QByteArray, Attribute *> mAttributes; | ||
61 | std::set<QByteArray> mModifiedAttributes; | 62 | std::set<QByteArray> mModifiedAttributes; | ||
62 | QSet<QByteArray> mDeletedAttributes; | 63 | QSet<QByteArray> mDeletedAttributes; | ||
63 | }; | 64 | }; | ||
64 | 65 | | |||
65 | } | 66 | } | ||
66 | 67 | | |||
67 | #endif // ATTRIBUTESTORAGE_P_H | 68 | #endif // ATTRIBUTESTORAGE_P_H |