-rw-r--r-- | include/opie/xmltree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/opie/xmltree.h b/include/opie/xmltree.h index 7f50365..ed93c23 100644 --- a/include/opie/xmltree.h +++ b/include/opie/xmltree.h | |||
@@ -63,49 +63,49 @@ public: | |||
63 | * The ownership gets dropped. You need to delete the | 63 | * The ownership gets dropped. You need to delete the |
64 | * child yourself. | 64 | * child yourself. |
65 | */ | 65 | */ |
66 | void removeChild( XMLElement *child ); | 66 | void removeChild( XMLElement *child ); |
67 | 67 | ||
68 | /** parent() returns the parent of this XMLElement | 68 | /** parent() returns the parent of this XMLElement |
69 | * If there is no parent 0l gets returned | 69 | * If there is no parent 0l gets returned |
70 | */ | 70 | */ |
71 | XMLElement *parent() const { return m_parent; } | 71 | XMLElement *parent() const { return m_parent; } |
72 | XMLElement *firstChild() const { return m_first; } | 72 | XMLElement *firstChild() const { return m_first; } |
73 | XMLElement *nextChild() const { return m_next; } | 73 | XMLElement *nextChild() const { return m_next; } |
74 | XMLElement *prevChild() const { return m_prev; } | 74 | XMLElement *prevChild() const { return m_prev; } |
75 | XMLElement *lastChild() const { return m_last; } | 75 | XMLElement *lastChild() const { return m_last; } |
76 | 76 | ||
77 | void setTagName( const QString &tag ) { m_tag = tag; } | 77 | void setTagName( const QString &tag ) { m_tag = tag; } |
78 | QString tagName() const { return m_tag; } | 78 | QString tagName() const { return m_tag; } |
79 | 79 | ||
80 | void setValue( const QString &val ) { m_value = val; } | 80 | void setValue( const QString &val ) { m_value = val; } |
81 | QString value() const { return m_value; } | 81 | QString value() const { return m_value; } |
82 | 82 | ||
83 | void setAttributes( const AttributeMap &attrs ) { m_attributes = attrs; } | 83 | void setAttributes( const AttributeMap &attrs ) { m_attributes = attrs; } |
84 | AttributeMap attributes() const { return m_attributes; } | 84 | AttributeMap attributes() const { return m_attributes; } |
85 | AttributeMap &attributes() { return m_attributes; } | 85 | AttributeMap &attributes() { return m_attributes; } |
86 | 86 | ||
87 | QString attribute(const QString &)const; | 87 | QString attribute( const QString & ) const; |
88 | void setAttribute( const QString &attr, const QString &value ); | 88 | void setAttribute( const QString &attr, const QString &value ); |
89 | void save( QTextStream &stream, uint indent = 0 ); | 89 | void save( QTextStream &stream, uint indent = 0 ); |
90 | 90 | ||
91 | XMLElement *namedItem( const QString &name ); | 91 | XMLElement *namedItem( const QString &name ); |
92 | 92 | ||
93 | XMLElement *clone() const; | 93 | XMLElement *clone() const; |
94 | 94 | ||
95 | static XMLElement *load( const QString &fileName ); | 95 | static XMLElement *load( const QString &fileName ); |
96 | 96 | ||
97 | private: | 97 | private: |
98 | QString m_tag; | 98 | QString m_tag; |
99 | QString m_value; | 99 | QString m_value; |
100 | AttributeMap m_attributes; | 100 | AttributeMap m_attributes; |
101 | 101 | ||
102 | XMLElement *m_parent; | 102 | XMLElement *m_parent; |
103 | XMLElement *m_next; | 103 | XMLElement *m_next; |
104 | XMLElement *m_prev; | 104 | XMLElement *m_prev; |
105 | XMLElement *m_first; | 105 | XMLElement *m_first; |
106 | XMLElement *m_last; | 106 | XMLElement *m_last; |
107 | 107 | ||
108 | XMLElement( const XMLElement &rhs ); | 108 | XMLElement( const XMLElement &rhs ); |
109 | XMLElement &operator=( const XMLElement &rhs ); | 109 | XMLElement &operator=( const XMLElement &rhs ); |
110 | }; | 110 | }; |
111 | 111 | ||