equal
deleted
inserted
replaced
59 class QVersitPropertyPrivate; |
59 class QVersitPropertyPrivate; |
60 |
60 |
61 class Q_VERSIT_EXPORT QVersitProperty |
61 class Q_VERSIT_EXPORT QVersitProperty |
62 { |
62 { |
63 public: |
63 public: |
|
64 enum ValueType { |
|
65 PlainType, |
|
66 CompoundType, |
|
67 ListType, |
|
68 BinaryType, |
|
69 VersitDocumentType |
|
70 }; |
|
71 |
64 QVersitProperty(); |
72 QVersitProperty(); |
65 QVersitProperty(const QVersitProperty& other); |
73 QVersitProperty(const QVersitProperty& other); |
66 ~QVersitProperty(); |
74 ~QVersitProperty(); |
67 |
75 |
68 QVersitProperty& operator=(const QVersitProperty& other); |
76 QVersitProperty& operator=(const QVersitProperty& other); |
88 { |
96 { |
89 return variantValue().value<T>(); |
97 return variantValue().value<T>(); |
90 } |
98 } |
91 QString value() const; |
99 QString value() const; |
92 |
100 |
|
101 void setValueType(ValueType type); |
|
102 ValueType valueType() const; |
|
103 |
93 bool isEmpty() const; |
104 bool isEmpty() const; |
94 void clear(); |
105 void clear(); |
95 |
106 |
96 private: |
107 private: |
97 |
108 |
98 QSharedDataPointer<QVersitPropertyPrivate> d; |
109 QSharedDataPointer<QVersitPropertyPrivate> d; |
99 }; |
110 }; |
100 |
111 |
|
112 Q_VERSIT_EXPORT uint qHash(const QVersitProperty& key); |
|
113 #ifndef QT_NO_DEBUG_STREAM |
|
114 Q_VERSIT_EXPORT QDebug operator<<(QDebug dbg, const QVersitProperty& property); |
|
115 #endif |
|
116 |
101 QTM_END_NAMESPACE |
117 QTM_END_NAMESPACE |
102 |
118 |
103 #endif // QVERSITPROPERTY_H |
119 #endif // QVERSITPROPERTY_H |