summaryrefslogtreecommitdiffstats
path: root/akregator/src/librss/enclosure.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/librss/enclosure.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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;
}