summaryrefslogtreecommitdiffstats
path: root/akregator/src/librss/enclosure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/librss/enclosure.cpp')
-rw-r--r--akregator/src/librss/enclosure.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/akregator/src/librss/enclosure.cpp b/akregator/src/librss/enclosure.cpp
index 60898f1bf..602a25588 100644
--- a/akregator/src/librss/enclosure.cpp
+++ b/akregator/src/librss/enclosure.cpp
@@ -25,8 +25,8 @@
#include "enclosure.h"
#include "tools_p.h"
-#include <qdom.h>
-#include <qstring.h>
+#include <tqdom.h>
+#include <tqstring.h>
#include <kdebug.h>
@@ -39,9 +39,9 @@ class Enclosure::EnclosurePrivate : public Shared
public:
bool isNull;
- QString url;
+ TQString url;
int length;
- QString type;
+ TQString type;
bool operator==(const EnclosurePrivate &other) const
{
@@ -52,35 +52,35 @@ class Enclosure::EnclosurePrivate : public Shared
};
-Enclosure Enclosure::fromXML(const QDomElement& e)
+Enclosure Enclosure::fromXML(const TQDomElement& e)
{
- QString url, type;
+ TQString url, type;
int length = -1;
- if (e.hasAttribute(QString::fromLatin1("url")))
- url = e.attribute(QString::fromLatin1("url"));
+ if (e.hasAttribute(TQString::fromLatin1("url")))
+ url = e.attribute(TQString::fromLatin1("url"));
- if (e.hasAttribute(QString::fromLatin1("length")))
+ if (e.hasAttribute(TQString::fromLatin1("length")))
{
bool ok;
- int c = e.attribute(QString::fromLatin1("length")).toInt(&ok);
+ int c = e.attribute(TQString::fromLatin1("length")).toInt(&ok);
length = ok ? c : -1;
}
- if (e.hasAttribute(QString::fromLatin1("type")))
- type = e.attribute(QString::fromLatin1("type"));
+ if (e.hasAttribute(TQString::fromLatin1("type")))
+ type = e.attribute(TQString::fromLatin1("type"));
return Enclosure(url, length, type);
}
-QDomElement Enclosure::toXML(QDomDocument document) const
+TQDomElement Enclosure::toXML(TQDomDocument document) const
{
- QDomElement e = document.createElement(QString::fromLatin1("enclosure"));
+ TQDomElement e = document.createElement(TQString::fromLatin1("enclosure"));
if (!d->url.isNull())
- e.setAttribute(QString::fromLatin1("url"), d->url);
+ e.setAttribute(TQString::fromLatin1("url"), d->url);
if (d->length != -1)
- e.setAttribute(QString::fromLatin1("length"), QString::number(d->length));
+ e.setAttribute(TQString::fromLatin1("length"), TQString::number(d->length));
if (!d->type.isNull())
- e.setAttribute(QString::fromLatin1("type"), d->type);
+ e.setAttribute(TQString::fromLatin1("type"), d->type);
return e;
}
@@ -96,7 +96,7 @@ Enclosure::Enclosure(const Enclosure& other) : d(0)
*this = other;
}
-Enclosure::Enclosure(const QString& url, int length, const QString& type) : d(new EnclosurePrivate)
+Enclosure::Enclosure(const TQString& url, int length, const TQString& type) : d(new EnclosurePrivate)
{
d->isNull = false;
d->url = url;
@@ -135,7 +135,7 @@ bool Enclosure::isNull() const
return d->isNull;
}
-QString Enclosure::url() const
+TQString Enclosure::url() const
{
return d->url;
}
@@ -145,7 +145,7 @@ int Enclosure::length() const
return d->length;
}
-QString Enclosure::type() const
+TQString Enclosure::type() const
{
return d->type;
}