[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-21 16:40:35
[Download RAW message or body]

CVS commit by larkang: 

Look for versions 0.92-0.94 too, otherwise they will be treated the same as
0.90 which doesn't work. Now they will be treated the same as 0.91

Approved by Frerich


  M +10 -1     document.cpp   1.15
  M +3 -0      global.h   1.8


--- kdenetwork/librss/document.cpp  #1.14:1.15
@@ -91,4 +91,10 @@ Document::Document(const QDomDocument &d
                         if (attr == QString::fromLatin1("0.91"))
                                 d->version = v0_91;
+                        else if (attr == QString::fromLatin1("0.92"))
+                                d->version = v0_92;
+                        else if (attr == QString::fromLatin1("0.93"))
+                                d->version = v0_93;
+                        else if (attr == QString::fromLatin1("0.94"))
+                                d->version = v0_94;
                 }
         }
@@ -103,5 +109,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 and 0.92.
+         * node for <image>, <textinput> and <item> than RSS 0.91-0.94.
          */
         QDomNode parentNode;
@@ -396,4 +402,7 @@ QString Document::verbVersion() const
                 case v0_90: return QString::fromLatin1("0.90");
                 case v0_91: return QString::fromLatin1("0.91");
+                case v0_92: return QString::fromLatin1("0.92");
+                case v0_93: return QString::fromLatin1("0.93");
+                case v0_94: return QString::fromLatin1("0.94");
                 case v1_0: return QString::fromLatin1("1.0");
         }

--- kdenetwork/librss/global.h  #1.7:1.8
@@ -26,4 +26,7 @@ namespace RSS
                 v0_90,    /// RSS v0.90
                 v0_91,    /// RSS v0.91
+                v0_92,    /// RSS v0.92
+                v0_93,    /// RSS v0.93
+                v0_94,    /// RSS v0.94
                 v1_0      /// RSS v1.0
         };


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic