summaryrefslogtreecommitdiffstats
path: root/src/common/global/xml_data_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/global/xml_data_file.h')
-rw-r--r--src/common/global/xml_data_file.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/common/global/xml_data_file.h b/src/common/global/xml_data_file.h
index dfcbc73..bae5d1f 100644
--- a/src/common/global/xml_data_file.h
+++ b/src/common/global/xml_data_file.h
@@ -9,37 +9,37 @@
#ifndef XML_DATA_FILE_H
#define XML_DATA_FILE_H
-#include <qdom.h>
+#include <tqdom.h>
#include "common/global/purl.h"
class XmlDataFile
{
public:
- XmlDataFile(const PURL::Url &url, const QString &name);
+ XmlDataFile(const PURL::Url &url, const TQString &name);
virtual ~XmlDataFile() {}
PURL::Url url() const { return _url; }
- virtual bool load(QString &error);
- bool save(QString &error) const;
+ virtual bool load(TQString &error);
+ bool save(TQString &error) const;
- QString value(const QString &group, const QString &key, const QString &defaultValue) const;
- void setValue(const QString &group, const QString &key, const QString &value);
- QStringList listValues(const QString &group, const QString &key, const QStringList &defaultValues) const;
- void setListValues(const QString &group, const QString &key, const QStringList &values);
- void appendListValue(const QString &group, const QString &key, const QString &value);
- void removeListValue(const QString &group, const QString &key, const QString &value);
- void clearList(const QString &group, const QString &key);
+ TQString value(const TQString &group, const TQString &key, const TQString &defaultValue) const;
+ void setValue(const TQString &group, const TQString &key, const TQString &value);
+ TQStringList listValues(const TQString &group, const TQString &key, const TQStringList &defaultValues) const;
+ void setListValues(const TQString &group, const TQString &key, const TQStringList &values);
+ void appendListValue(const TQString &group, const TQString &key, const TQString &value);
+ void removeListValue(const TQString &group, const TQString &key, const TQString &value);
+ void clearList(const TQString &group, const TQString &key);
protected:
PURL::Url _url;
private:
- QString _name;
- QDomDocument _document;
+ TQString _name;
+ TQDomDocument _document;
- QDomElement findChildElement(QDomElement element, const QString &tag) const;
- QDomElement createChildElement(QDomElement element, const QString &tag);
- void removeChilds(QDomNode node) const;
+ TQDomElement findChildElement(TQDomElement element, const TQString &tag) const;
+ TQDomElement createChildElement(TQDomElement element, const TQString &tag);
+ void removeChilds(TQDomNode node) const;
};
#endif