summaryrefslogtreecommitdiff
path: root/libopie/xmltree.h
Unidiff
Diffstat (limited to 'libopie/xmltree.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/xmltree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/xmltree.h b/libopie/xmltree.h
index 7f1b7b7..7f50365 100644
--- a/libopie/xmltree.h
+++ b/libopie/xmltree.h
@@ -71,32 +71,34 @@ public:
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;