[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/librss
From: Richard Lärkäng <richard () goteborg ! utfors ! se>
Date: 2003-12-29 20:12:53
[Download RAW message or body]
CVS commit by larkang:
Look for rss 2.0 too, so it will be parsed correct.
Ok'd by Frerich
M +4 -1 document.cpp 1.16
M +2 -1 global.h 1.9
--- kdenetwork/librss/document.cpp #1.15:1.16
@@ -97,4 +97,6 @@ Document::Document(const QDomDocument &d
else if (attr == QString::fromLatin1("0.94"))
d->version = v0_94;
+ else if (attr == QString::fromLatin1("2.0"))
+ d->version = v2_0;
}
}
@@ -109,5 +111,5 @@ Document::Document(const QDomDocument &d
/* This is ugly but necessary since RSS 0.90 and 1.0 have a different parent
- * node for <image>, <textinput> and <item> than RSS 0.91-0.94.
+ * node for <image>, <textinput> and <item> than RSS 0.91-0.94 and RSS 2.0.
*/
QDomNode parentNode;
@@ -406,4 +408,5 @@ QString Document::verbVersion() const
case v0_94: return QString::fromLatin1("0.94");
case v1_0: return QString::fromLatin1("1.0");
+ case v2_0: return QString::fromLatin1("2.0");
}
return QString::null;
--- kdenetwork/librss/global.h #1.8:1.9
@@ -29,5 +29,6 @@ namespace RSS
v0_93, /// RSS v0.93
v0_94, /// RSS v0.94
- v1_0 /// RSS v1.0
+ v1_0, /// RSS v1.0
+ v2_0 /// RSS v2.0
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic