xmlobj.h
author insilmaril
Mon Jul 27 12:53:17 2009 +0000 (2009-07-27)
changeset 783 85dec6a8c12c
parent 621 c60984c46f9f
child 791 f1006de05c54
permissions -rw-r--r--
Playing with dbus, fixed name of TW translation file
insilmaril@621
     1
#ifndef XMLOBJ_H
insilmaril@621
     2
#define XMLOBJ_H
insilmaril@621
     3
insilmaril@721
     4
class QString;
insilmaril@621
     5
insilmaril@621
     6
QString quotemeta(const QString&);	
insilmaril@621
     7
insilmaril@621
     8
/////////////////////////////////////////////////////////////////////////////
insilmaril@621
     9
class XMLObj
insilmaril@621
    10
{
insilmaril@621
    11
public:
insilmaril@621
    12
    XMLObj();
insilmaril@621
    13
    QString singleElement(QString,QString);			// name,attr
insilmaril@621
    14
    QString beginElement(QString,QString);			// name,attr
insilmaril@621
    15
    QString beginElement(QString);					// name
insilmaril@621
    16
    QString endElement  (QString);					// name
insilmaril@621
    17
    QString attribut    (QString,QString);			// name, val
insilmaril@621
    18
    QString valueElement(QString,QString);			// name, val
insilmaril@621
    19
    QString valueElement(QString,QString,QString);	// name, attr, val
insilmaril@621
    20
    void incIndent();
insilmaril@621
    21
    void decIndent();
insilmaril@621
    22
    static int actindent;
insilmaril@621
    23
insilmaril@621
    24
protected:  
insilmaril@621
    25
    QString indent();
insilmaril@621
    26
    int indentwidth;
insilmaril@621
    27
};
insilmaril@621
    28
insilmaril@621
    29
#endif