Syndication Library
24 #include "documentsource.h"
25 #include "parsercollectionimpl.h"
27 #include "mapper/mapperatomimpl.h"
28 #include "mapper/mapperrdfimpl.h"
29 #include "mapper/mapperrss2impl.h"
30 #include "atom/parser.h"
31 #include "rdf/parser.h"
32 #include "rss2/parser.h"
34 #include <QtCore/QCoreApplication>
37 static bool collectionIsInitialized =
false;
40 namespace Syndication {
42 static ParserCollectionImpl<Syndication::Feed> *parserColl = 0;
47 static void cleanupParserCollection()
57 if (!collectionIsInitialized)
59 parserColl =
new ParserCollectionImpl<Syndication::Feed>;
60 qAddPostRoutine(cleanupParserCollection);
61 parserColl->registerParser(
new RSS2::Parser,
new RSS2Mapper);
62 parserColl->registerParser(
new Atom::Parser,
new AtomMapper);
63 parserColl->registerParser(
new RDF::Parser,
new RDFMapper);
64 collectionIsInitialized =
true;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:26:15 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.