summaryrefslogtreecommitdiffstats
path: root/src/common/global/xml_data_file.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 00:15:53 +0000
commit0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch)
treeb95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/common/global/xml_data_file.h
parentb79a2c28534cf09987eeeba3077fff9236df182a (diff)
downloadpiklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz
piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip
TQt4 port piklab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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