summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/xmltree.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/xmltree.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/xmltree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie2/opiecore/xmltree.h b/libopie2/opiecore/xmltree.h
index 7f1b7b7..7f50365 100644
--- a/libopie2/opiecore/xmltree.h
+++ b/libopie2/opiecore/xmltree.h
@@ -63,48 +63,50 @@ 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;
88 void setAttribute( const QString &attr, const QString &value );
87 void save( QTextStream &stream, uint indent = 0 ); 89 void save( QTextStream &stream, uint indent = 0 );
88 90
89 XMLElement *namedItem( const QString &name ); 91 XMLElement *namedItem( const QString &name );
90 92
91 XMLElement *clone() const; 93 XMLElement *clone() const;
92 94
93 static XMLElement *load( const QString &fileName ); 95 static XMLElement *load( const QString &fileName );
94 96
95private: 97private:
96 QString m_tag; 98 QString m_tag;
97 QString m_value; 99 QString m_value;
98 AttributeMap m_attributes; 100 AttributeMap m_attributes;
99 101
100 XMLElement *m_parent; 102 XMLElement *m_parent;
101 XMLElement *m_next; 103 XMLElement *m_next;
102 XMLElement *m_prev; 104 XMLElement *m_prev;
103 XMLElement *m_first; 105 XMLElement *m_first;
104 XMLElement *m_last; 106 XMLElement *m_last;
105 107
106 XMLElement( const XMLElement &rhs ); 108 XMLElement( const XMLElement &rhs );
107 XMLElement &operator=( const XMLElement &rhs ); 109 XMLElement &operator=( const XMLElement &rhs );
108}; 110};
109 111
110#endif 112#endif