The AExtXML is Ananas extension class for work with XML files. .
More...
#include <aextxml.h>
|
void | event (const QString &data) |
|
aDatabase * | db |
|
The AExtXML is Ananas extension class for work with XML files. .
Class for work with extensions
◆ AExtXML()
◆ ~AExtXML()
◆ attr
QString AExtXML::attr |
( |
const QString & | name | ) |
const |
|
slot |
Returns current node's attribute value.
- Parameters
-
name | (in) - attribute name. |
- Returns
- attribute value.
◆ childExists
bool AExtXML::childExists |
( |
| ) |
|
|
slot |
◆ createNew
void AExtXML::createNew |
( |
const QString & | rootnodename | ) |
|
|
slot |
Create new XML document. Old document content will be destroyed.
- Parameters
-
rootnodename | (in) - new XML docemrnt root node name. |
- Returns
- void.
◆ firstChild
bool AExtXML::firstChild |
( |
| ) |
|
|
slot |
◆ isRoot
Check current node is root node.
- Returns
- true if current node is root.
◆ lastChild
bool AExtXML::lastChild |
( |
| ) |
|
|
slot |
◆ newChild
bool AExtXML::newChild |
( |
const QString & | childname | ) |
|
|
slot |
◆ next
◆ nodeName
QString AExtXML::nodeName |
( |
| ) |
|
|
slot |
◆ parent
◆ prev
◆ read
bool AExtXML::read |
( |
const QString & | fname | ) |
|
|
slot |
Reads XML from file.
- Parameters
-
fname | (in) - name of XML file. |
- Returns
- true if OK.
◆ removeAttr
bool AExtXML::removeAttr |
( |
const QString & | name | ) |
|
|
slot |
◆ setAttr
bool AExtXML::setAttr |
( |
const QString & | name, |
|
|
const QString & | value ) |
|
slot |
Sets current node's attribute value.
- Parameters
-
name | (in) - attribute's name. |
value | (in) - new value. |
- Returns
- void.
◆ setText
bool AExtXML::setText |
( |
const QString & | text | ) |
|
|
slot |
Sets text for current node.
- Parameters
-
text | (in) - new text value. |
- Returns
- void.
References text().
◆ text
QString AExtXML::text |
( |
| ) |
const |
|
slot |
Returns text of current node.
- Returns
- string.
Referenced by setText().
◆ write
bool AExtXML::write |
( |
const QString & | fname | ) |
|
|
slot |
Writes XML file.
- Parameters
-
fname | (in) - name of XML file. |
- Returns
- error code.
The documentation for this class was generated from the following files: