return ret;
}
+
+bool FavoritesXmlParser::startElement( const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts )
+{
+ return true;
+}
+
+bool FavoritesXmlParser::endElement( const QString& namespaceURI, const QString& localName, const QString& qName )
+{
+ return true;
+}
+
+bool FavoritesXmlParser::characters( const QString& ch )
+{
+ return true;
+}
+
#include <kurl.h>
#include <qmap.h>
+#include <qxml.h>
+#include <qptrlist.h>
#include "thread.h"
const QString toXml() const;
};
+class FavoritesXmlParser : public QXmlDefaultHandler
+{
+ bool m_inFavorites;
+ bool m_inThread;
+ bool m_isValid;
+ QPtrList<Kita::Thread> m_threadList;
+public:
+ FavoritesXmlParser() : m_inFavorites(false), m_inThread(false), m_isValid(false) {};
+ ~FavoritesXmlParser() {};
+ bool startElement( const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts );
+ bool endElement( const QString& namespaceURI, const QString& localName, const QString& qName );
+ bool characters( const QString& ch );
+ bool isValid() const { return m_isValid; }
+ QPtrList<Kita::Thread> getThreads() const { return m_threadList; }
+};
+
#endif