author | simon <simon> | 2002-03-20 21:26:34 (UTC) |
---|---|---|
committer | simon <simon> | 2002-03-20 21:26:34 (UTC) |
commit | a209ccfd83698cf14ec7302275f7425f5023d81f (patch) (unidiff) | |
tree | af73c0b7384024bdb2a0e166067668a27cfa52ea | |
parent | 60b86269c6087dfb6674de6dc01d71a9a6d6d180 (diff) | |
download | opie-a209ccfd83698cf14ec7302275f7425f5023d81f.zip opie-a209ccfd83698cf14ec7302275f7425f5023d81f.tar.gz opie-a209ccfd83698cf14ec7302275f7425f5023d81f.tar.bz2 |
- consistent indentation within this file :)
-rw-r--r-- | include/opie/xmltree.h | 2 | ||||
-rw-r--r-- | libopie/xmltree.h | 2 | ||||
-rw-r--r-- | libopie2/opiecore/xmltree.h | 2 |
3 files changed, 3 insertions, 3 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 | ||
diff --git a/libopie/xmltree.h b/libopie/xmltree.h index 7f50365..ed93c23 100644 --- a/libopie/xmltree.h +++ b/libopie/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 | ||
diff --git a/libopie2/opiecore/xmltree.h b/libopie2/opiecore/xmltree.h index 7f50365..ed93c23 100644 --- a/libopie2/opiecore/xmltree.h +++ b/libopie2/opiecore/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 | ||