return document.toString( 0 );
}
-const QString FavoriteThreads::toXml() const
-{
- QString ret;
-
- ret += "<favorites xmlns=\"http://kita.sourceforge.jp/ns/favorites\">\n";
-
- // FavoriteThreads::const_iterator it;
- QDictIterator<Kita::Thread> it( threads() );
- for ( ; it.current(); ++it ) {
- ret += it.current() ->toXmlFragment();
- }
- ret += "</favorites>\n";
-
- return ret;
-}
-
bool FavoritesXmlParser::startElement( const QString& namespaceURI, const QString& localName, const QString& qName, const QXmlAttributes& atts )
{
if ( m_inThread ) {
FavoriteThreads();
~FavoriteThreads();
public:
-// typedef QDict<Kita::Thread>::const_iterator const_iterator;
static FavoriteThreads* getInstance();
void insert( const Kita::Thread* thread );
void remove( const QString& datURL );
bool contains( const QString& datURL ) const;
const QDict<Kita::Thread>& threads() const { return m_threadDict; };
static FavoriteThreads* fromXml( const QString& xml );
- const QString toXml() const;
const QString toXML() const;
static bool readFromXML( const QString& xml );
static void processThreadNode( QDomNode& node );