<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Syndication Namespace Reference</title> <style type="text/css"> .cp-doNotDisplay { display: none; } @media aural, braille, handheld, tty { .cp-doNotDisplay { display: inline; speak: normal; }} .cp-edit { text-align: right; } @media print, embossed { .cp-edit { display: none; }} </style> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <link rel="meta" href="http://www.kde.org/labels.rdf" type="application/rdf+xml" title="ICRA labels" /> <meta name="trademark" content="KDE e.V." /> <meta name="description" content="K Desktop Environment Homepage, KDE.org" /> <meta name="MSSmartTagsPreventParsing" content="true" /> <meta name="robots" content="all" /> <meta name="no-email-collection" content="http://www.unspam.com/noemailcollection" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link rel="shortcut icon" href="../../favicon.ico" /><link rel="icon" href="../../favicon.ico" /> <link rel="stylesheet" media="screen" type="text/css" title="KDE Colors" href="../../kde.css" /> <link rel="stylesheet" media="print, embossed" type="text/css" href="../../print.css" /> <link rel="stylesheet" media="screen, aural, handheld, tty, braille" type="text/css" title="Flat" href="../../flat.css" /> <link rel="stylesheet" type="text/css" href="../../doxygen.css" /> <link rel="stylesheet" type="text/css" href="../../tabs.css" /> </head> <body> <ul class="cp-doNotDisplay"> <li><a href="#cp-content" accesskey="2">Skip to content</a></li> <li><a href="#cp-menu" accesskey="5">Skip to link menu</a></li> </ul> <div id="container"> <div id="header"> <div id="header_top"><div><div> <img alt ="" src="../../top-kde.jpg"/> </div></div></div> <div id="header_bottom"> <div id="location"> <ul> <li><a href="http://api.kde.org">KDE API Reference</a></li> <li><a href="../../index.html">kdepimlibs-4.10.5 API Reference</a></li> </ul> </div> <div id="menu"> <ul> <li><a href="http://www.kde.org/">KDE Home</a></li> <li><a href="http://kde.org/contact/">Contact Us</a></li> </ul> </div> </div> </div> <!-- End page header --> <div id="body_wrapper"> <div id="body"> <!-- begin main content --> <div id="right"> <div class="content"> <div id="main"> <div class="clearer"> </div> <h2><a name="content"></a>Syndication Library</h2> <!-- BC --> <div id="top"> <!-- Generated by Doxygen 1.8.3.1 --> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#typedef-members">Typedefs</a> | <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">Syndication Namespace Reference</div> </div> </div><!--header--> <div class="contents"> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1AbstractParser.html">AbstractParser</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Category.html">Category</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1DataRetriever.html">DataRetriever</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1DocumentSource.html">DocumentSource</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1DocumentVisitor.html">DocumentVisitor</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1ElementWrapper.html">ElementWrapper</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Enclosure.html">Enclosure</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Feed.html">Feed</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1FileRetriever.html">FileRetriever</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Image.html">Image</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Item.html">Item</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Loader.html">Loader</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Mapper.html">Mapper</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1OutputRetriever.html">OutputRetriever</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1ParserCollection.html">ParserCollection</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1Person.html">Person</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1SpecificDocument.html">SpecificDocument</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1SpecificItem.html">SpecificItem</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classSyndication_1_1SpecificItemVisitor.html">SpecificItemVisitor</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a61138a58b45c0bbb7fdd3be4298db87d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a61138a58b45c0bbb7fdd3be4298db87d"></a> typedef boost::shared_ptr<br class="typebreak"/> < <a class="el" href="classSyndication_1_1Category.html">Category</a> > </td><td class="memItemRight" valign="bottom"><b>CategoryPtr</b></td></tr> <tr class="separator:a61138a58b45c0bbb7fdd3be4298db87d"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:a0f3abe52fd16859cbb1c1b2c3b0d222a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222a">DateFormat</a> { <a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222aafa33ada744c0feb7a8b166042ed69806">ISODate</a>, <a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222aa87083257acdee75a52972fc3509e96e8">RFCDate</a> }</td></tr> <tr class="separator:a0f3abe52fd16859cbb1c1b2c3b0d222a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaf92d762df59845c8a311e4d08e2d4e4"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4">ErrorCode</a> { <br/>   <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4afc529f9c4f5522dd1b4119293e398a68">Success</a> = 0, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a9fff8c2ba122f9fb756985915c1d4d22">Aborted</a> = 1, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a2cff188be930f0b29425414fedd6cc71">Timeout</a> = 2, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a7930a09b176418452a009d69ee4297d5">UnknownHost</a> = 3, <br/>   <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a602d3acd5244927ee6fb208118ac4fae">FileNotFound</a> = 4, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a3a25b1f0a209f17222436aea681921d7">OtherRetrieverError</a> = 5, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a9192159f82cde4c10821c51c2b47813a">InvalidXml</a> = 6, <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a9628f4626b0a506ed8aa2dbcf0bdb83d">XmlNotAccepted</a> = 7, <br/>   <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4a9c3f3a4173589c8823cf59495592512b">InvalidFormat</a> = 8 <br/> }</td></tr> <tr class="separator:aaf92d762df59845c8a311e4d08e2d4e4"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a2f9a781e732de32d106d5963591e5979"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a2f9a781e732de32d106d5963591e5979">calcHash</a> (const QString &str)</td></tr> <tr class="separator:a2f9a781e732de32d106d5963591e5979"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2f44537ca2ec0352dcd4ce27520944df"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a2f44537ca2ec0352dcd4ce27520944df">calcHash</a> (const QByteArray &array)</td></tr> <tr class="separator:a2f44537ca2ec0352dcd4ce27520944df"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2554f275803a2ec06532e59fb65a03bb"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a2554f275803a2ec06532e59fb65a03bb">calcMD5Sum</a> (const QString &str)</td></tr> <tr class="separator:a2554f275803a2ec06532e59fb65a03bb"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3e724a3a649179ac0aa22580980c8ca8"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a3e724a3a649179ac0aa22580980c8ca8">commentApiNamespace</a> ()</td></tr> <tr class="separator:a3e724a3a649179ac0aa22580980c8ca8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a54923e2c7f8017c0cfb3d742fc1d62dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54923e2c7f8017c0cfb3d742fc1d62dc"></a> QString </td><td class="memItemRight" valign="bottom"><b>contentNameSpace</b> ()</td></tr> <tr class="separator:a54923e2c7f8017c0cfb3d742fc1d62dc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaeb04090e981bf235655d3d4d5c0d7b3"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#aaeb04090e981bf235655d3d4d5c0d7b3">convertNewlines</a> (const QString &str)</td></tr> <tr class="separator:aaeb04090e981bf235655d3d4d5c0d7b3"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac6f725cafca4968893070357cf8bd16b"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#ac6f725cafca4968893070357cf8bd16b">dateTimeToString</a> (time_t date)</td></tr> <tr class="separator:ac6f725cafca4968893070357cf8bd16b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a58650f262f7db60fb25c515b9b878184"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a58650f262f7db60fb25c515b9b878184"></a> QString </td><td class="memItemRight" valign="bottom"><b>dublinCoreNamespace</b> ()</td></tr> <tr class="separator:a58650f262f7db60fb25c515b9b878184"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2ecb773f0073a6c5d73fbf2cfa0a8049"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a2ecb773f0073a6c5d73fbf2cfa0a8049">escapeSpecialCharacters</a> (const QString &str)</td></tr> <tr class="separator:a2ecb773f0073a6c5d73fbf2cfa0a8049"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4337e7dcece7dd5c222ea6abbce683f8"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a4337e7dcece7dd5c222ea6abbce683f8">htmlToPlainText</a> (const QString &html)</td></tr> <tr class="separator:a4337e7dcece7dd5c222ea6abbce683f8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a44c01bace619f6a8fd250e1f184c4261"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a44c01bace619f6a8fd250e1f184c4261">isHtml</a> (const QString &str)</td></tr> <tr class="separator:a44c01bace619f6a8fd250e1f184c4261"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a36f35a55e5c19fcb57b314538f7ca3a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36f35a55e5c19fcb57b314538f7ca3a0"></a> QString </td><td class="memItemRight" valign="bottom"><b>itunesNamespace</b> ()</td></tr> <tr class="separator:a36f35a55e5c19fcb57b314538f7ca3a0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a71535e733f877a9219b2034c5b3cb3fd"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a71535e733f877a9219b2034c5b3cb3fd">normalize</a> (const QString &str)</td></tr> <tr class="separator:a71535e733f877a9219b2034c5b3cb3fd"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac5147e6afa68fa2b48099455d2db3198"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#ac5147e6afa68fa2b48099455d2db3198">normalize</a> (const QString &str, bool isCDATA, bool containsMarkup)</td></tr> <tr class="separator:ac5147e6afa68fa2b48099455d2db3198"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac1273810308439c2567fdddf47859149"><td class="memItemLeft" align="right" valign="top">FeedPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#ac1273810308439c2567fdddf47859149">parse</a> (const <a class="el" href="classSyndication_1_1DocumentSource.html">DocumentSource</a> &src, const QString &formatHint=QString())</td></tr> <tr class="separator:ac1273810308439c2567fdddf47859149"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a80585a26875e5172336b718fa6604db6"><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a80585a26875e5172336b718fa6604db6">parseDate</a> (const QString &str, <a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222a">DateFormat</a> hint=<a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222aa87083257acdee75a52972fc3509e96e8">RFCDate</a>)</td></tr> <tr class="separator:a80585a26875e5172336b718fa6604db6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a797d5d5599a3f4d528fa7a8700cbfa12"><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a797d5d5599a3f4d528fa7a8700cbfa12">parseISODate</a> (const QString &str)</td></tr> <tr class="separator:a797d5d5599a3f4d528fa7a8700cbfa12"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af2e53b977bf4b6d9a28ee4cbffd482a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classSyndication_1_1ParserCollection.html">ParserCollection</a>< <a class="el" href="classSyndication_1_1Feed.html">Feed</a> > * </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#af2e53b977bf4b6d9a28ee4cbffd482a9">parserCollection</a> ()</td></tr> <tr class="separator:af2e53b977bf4b6d9a28ee4cbffd482a9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8152469e04347183c95a45f04d341c79"><td class="memItemLeft" align="right" valign="top">time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a8152469e04347183c95a45f04d341c79">parseRFCDate</a> (const QString &str)</td></tr> <tr class="separator:a8152469e04347183c95a45f04d341c79"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6e3ea0a1778fae8fc107074cc1f4a4ae"><td class="memItemLeft" align="right" valign="top">PersonPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a6e3ea0a1778fae8fc107074cc1f4a4ae">personFromString</a> (const QString &str)</td></tr> <tr class="separator:a6e3ea0a1778fae8fc107074cc1f4a4ae"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1b7edd669437def7a3c4118f0f97ae94"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a1b7edd669437def7a3c4118f0f97ae94">plainTextToHtml</a> (const QString &plainText)</td></tr> <tr class="separator:a1b7edd669437def7a3c4118f0f97ae94"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a2152bb91927716eaf6a0785c3ee3b63e"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a2152bb91927716eaf6a0785c3ee3b63e">resolveEntities</a> (const QString &str)</td></tr> <tr class="separator:a2152bb91927716eaf6a0785c3ee3b63e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0f9d4576c4bb5e241eb33f2257a271be"><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a0f9d4576c4bb5e241eb33f2257a271be">slashNamespace</a> ()</td></tr> <tr class="separator:a0f9d4576c4bb5e241eb33f2257a271be"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a98a665003ea489b575b11139686d74a9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceSyndication.html#a98a665003ea489b575b11139686d74a9">stringContainsMarkup</a> (const QString &str)</td></tr> <tr class="separator:a98a665003ea489b575b11139686d74a9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4535bfeb8f1f8902cc607f1ec83f1772"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4535bfeb8f1f8902cc607f1ec83f1772"></a> static time_t </td><td class="memItemRight" valign="bottom"><b>toTimeT</b> (KDateTime &kdt)</td></tr> <tr class="separator:a4535bfeb8f1f8902cc607f1ec83f1772"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6cdd33962034dca4b29e8276633341b5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6cdd33962034dca4b29e8276633341b5"></a> QString </td><td class="memItemRight" valign="bottom"><b>xhtmlNamespace</b> ()</td></tr> <tr class="separator:a6cdd33962034dca4b29e8276633341b5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a654b1960ef07f388f93cffd4742333ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a654b1960ef07f388f93cffd4742333ec"></a> QString </td><td class="memItemRight" valign="bottom"><b>xmlNamespace</b> ()</td></tr> <tr class="separator:a654b1960ef07f388f93cffd4742333ec"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> Variables</h2></td></tr> <tr class="memitem:afa5913ee3b3f6183596be549d305284d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa5913ee3b3f6183596be549d305284d"></a> KMD5 </td><td class="memItemRight" valign="bottom"><b>md5Machine</b></td></tr> <tr class="separator:afa5913ee3b3f6183596be549d305284d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aed653ec5283dea08ed837a110c6a171b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed653ec5283dea08ed837a110c6a171b"></a> static ParserCollectionImpl<br class="typebreak"/> < <a class="el" href="classSyndication_1_1Feed.html">Syndication::Feed</a> > * </td><td class="memItemRight" valign="bottom"><b>parserColl</b> = 0</td></tr> <tr class="separator:aed653ec5283dea08ed837a110c6a171b"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>TODO. </p> </div><h2 class="groupheader">Enumeration Type Documentation</h2> <a class="anchor" id="a0f3abe52fd16859cbb1c1b2c3b0d222a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="namespaceSyndication.html#a0f3abe52fd16859cbb1c1b2c3b0d222a">Syndication::DateFormat</a></td> </tr> </table> </div><div class="memdoc"> <p>date formats supported by date parsers </p> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a0f3abe52fd16859cbb1c1b2c3b0d222aafa33ada744c0feb7a8b166042ed69806"></a>ISODate</em> </td><td class="fielddoc"> <p>ISO 8601 extended format. </p> <p>(date: "2003-12-13",datetime: "2003-12-13T18:30:02.25", datetime with timezone: "2003-12-13T18:30:02.25+01:00") </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="a0f3abe52fd16859cbb1c1b2c3b0d222aa87083257acdee75a52972fc3509e96e8"></a>RFCDate</em> </td><td class="fielddoc"> <p>RFC 822. </p> <p>(e.g. "Sat, 07 Sep 2002 00:00:01 GMT") </p> </td></tr> </table> <p>Definition at line <a class="el" href="tools_8h_source.html#l00041">41</a> of file <a class="el" href="tools_8h_source.html">tools.h</a>.</p> </div> </div> <a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="namespaceSyndication.html#aaf92d762df59845c8a311e4d08e2d4e4">Syndication::ErrorCode</a></td> </tr> </table> </div><div class="memdoc"> <p>error code indicating fetching or parsing errors </p> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4afc529f9c4f5522dd1b4119293e398a68"></a>Success</em> </td><td class="fielddoc"> <p>No error occurred, feed was fetched and parsed successfully. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a9fff8c2ba122f9fb756985915c1d4d22"></a>Aborted</em> </td><td class="fielddoc"> <p>file downloading/parsing was aborted by the user </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a2cff188be930f0b29425414fedd6cc71"></a>Timeout</em> </td><td class="fielddoc"> <p>file download timed out </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a7930a09b176418452a009d69ee4297d5"></a>UnknownHost</em> </td><td class="fielddoc"> <p>The hostname couldn't get resolved to an IP address. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a602d3acd5244927ee6fb208118ac4fae"></a>FileNotFound</em> </td><td class="fielddoc"> <p>the host was contacted successfully, but reported a 404 error </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a3a25b1f0a209f17222436aea681921d7"></a>OtherRetrieverError</em> </td><td class="fielddoc"> <p>retriever error not covered by the error codes above. </p> <p>This is returned if a custom <a class="el" href="classSyndication_1_1DataRetriever.html" title="Abstract baseclass for all data retriever classes.">DataRetriever</a> was used. See the retriever-specific status byte for more information on the occurred error. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a9192159f82cde4c10821c51c2b47813a"></a>InvalidXml</em> </td><td class="fielddoc"> <p>The XML is invalid. </p> <p>This is returned if no parser accepts the source and the DOM document can't be parsed. It is not returned if the source is not valid XML but a (non-XML) parser accepts it. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a9628f4626b0a506ed8aa2dbcf0bdb83d"></a>XmlNotAccepted</em> </td><td class="fielddoc"> <p>The source is valid XML, but no parser accepted it. </p> </td></tr> <tr><td class="fieldname"><em><a class="anchor" id="aaf92d762df59845c8a311e4d08e2d4e4a9c3f3a4173589c8823cf59495592512b"></a>InvalidFormat</em> </td><td class="fielddoc"> <p>the source was accepted by a parser, but the actual parsing failed. </p> <p>As our parser implementations currently do not validate the source ("parse what you can get"), this code will be rarely seen. </p> </td></tr> </table> <p>Definition at line <a class="el" href="global_8h_source.html#l00085">85</a> of file <a class="el" href="global_8h_source.html">global.h</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="a2f9a781e732de32d106d5963591e5979"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int Syndication::calcHash </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>calculates a hash value for a string </p> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00041">41</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a2f44537ca2ec0352dcd4ce27520944df"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int Syndication::calcHash </td> <td>(</td> <td class="paramtype">const QByteArray & </td> <td class="paramname"><em>array</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>calculates a hash value for a byte array </p> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00046">46</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a2554f275803a2ec06532e59fb65a03bb"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::calcMD5Sum </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>calculates a md5 checksum for a string </p> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00115">115</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a3e724a3a649179ac0aa22580980c8ca8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::commentApiNamespace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>wellformedweb.org's RSS namespace for comment functionality "http://wellformedweb.org/CommentAPI/" </p> <p>Definition at line <a class="el" href="constants_8cpp_source.html#l00054">54</a> of file <a class="el" href="constants_8cpp_source.html">constants.cpp</a>.</p> </div> </div> <a class="anchor" id="aaeb04090e981bf235655d3d4d5c0d7b3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::convertNewlines </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>replaces newlines ("\n") by <br/> </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>string to convert </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00138">138</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="ac6f725cafca4968893070357cf8bd16b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::dateTimeToString </td> <td>(</td> <td class="paramtype">time_t </td> <td class="paramname"><em>date</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>returns a string representation of a datetime. this is used internally to create debugging output.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">date</td><td>the date to convert </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>string representation of the date, or a null string if <code>date</code> is 0 </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00105">105</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a2ecb773f0073a6c5d73fbf2cfa0a8049"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::escapeSpecialCharacters </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>replaces the characters < >, &, ", ' with &lt; &gt; &amp;, &quot; &apos;. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>the string to escape </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00127">127</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a4337e7dcece7dd5c222ea6abbce683f8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::htmlToPlainText </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>html</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>converts a HTML string to plain text </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">html</td><td>string in HTML format </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>stripped text </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00156">156</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a44c01bace619f6a8fd250e1f184c4261"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Syndication::isHtml </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>guesses whether a string contains plain text or HTML </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>the string in unknown format </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><code>true</code> if the heuristic thinks it's HTML, <code>false</code> if thinks it is plain text </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00188">188</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a71535e733f877a9219b2034c5b3cb3fd"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::normalize </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Ensures HTML formatting for a string. </p> <p>guesses via <a class="el" href="namespaceSyndication.html#a44c01bace619f6a8fd250e1f184c4261" title="guesses whether a string contains plain text or HTML">isHtml()</a> if <code>str</code> contains HTML or plain text, and returns plainTextToHtml(str) if it thinks it is plain text, or the unmodified <code>str</code> otherwise.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a string with unknown content </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>string as HTML (as long as the heuristics work) </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00209">209</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="ac5147e6afa68fa2b48099455d2db3198"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::normalize </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>isCDATA</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>containsMarkup</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>normalizes a string based on feed-wide properties of tag content. </p> <p>It is based on the assumption that all items in a feed encode their title/description content in the same way (CDATA or not, plain text vs. HTML). isCDATA and containsMarkup are determined once by the feed, and then passed to this method.</p> <p>The returned string contains HTML, with special characters <, >, &, ", and ' escaped, and all other entities resolved. Whitespace is collapsed, relevant whitespace is replaced by respective HTML tags (<br/>).</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a string </td></tr> <tr><td class="paramname">isCDATA</td><td>whether the feed uses CDATA for the tag <code>str</code> was read from </td></tr> <tr><td class="paramname">containsMarkup</td><td>whether the feed uses HTML markup in the tag <code>str</code> was read from. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>string as HTML (as long as the heuristics work) </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00214">214</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="ac1273810308439c2567fdddf47859149"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FeedPtr Syndication::parse </td> <td>(</td> <td class="paramtype">const DocumentSource & </td> <td class="paramname"><em>src</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const QString & </td> <td class="paramname"><em>formatHint</em> = <code>QString()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>parses a document from a source and returns a new <a class="el" href="classSyndication_1_1Feed.html" title="This class represents a feed document ("Channel" in RSS, "Feed" in Atom).">Feed</a> object wrapping the feed content. </p> <p>Shortcut for <a class="el" href="namespaceSyndication.html#af2e53b977bf4b6d9a28ee4cbffd482a9" title="The default ParserCollection instance parsing a DocumentSource into a Feed object.">parserCollection()</a>-><a class="el" href="namespaceSyndication.html#ac1273810308439c2567fdddf47859149" title="parses a document from a source and returns a new Feed object wrapping the feed content.">parse()</a>. See <a class="el" href="classSyndication_1_1ParserCollection.html#ae71af2ec3e5322dba2b4cf90ce6e53f6" title="tries to parse a given source with the parsers registered.">ParserCollection::parse()</a> for more details.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">src</td><td>the document source to parse </td></tr> <tr><td class="paramname">formatHint</td><td>an optional hint which format to test first </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="global_8cpp_source.html#l00069">69</a> of file <a class="el" href="global_8cpp_source.html">global.cpp</a>.</p> </div> </div> <a class="anchor" id="a80585a26875e5172336b718fa6604db6"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">time_t Syndication::parseDate </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">DateFormat </td> <td class="paramname"><em>hint</em> = <code>RFCDate</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>parses a date string in ISO (see <a class="el" href="namespaceSyndication.html#a797d5d5599a3f4d528fa7a8700cbfa12" title="parses a date string in ISO 8601 extended format.">parseISODate()</a>) or RFC 822 (see <a class="el" href="namespaceSyndication.html#a8152469e04347183c95a45f04d341c79" title="parses a date string as defined in RFC 822.">parseRFCDate()</a>) format. </p> <p>It tries both parsers and returns the first valid parsing result found (or 0 otherwise). To speed up parsing, you can give a hint which format you expect. The method will try the corresponding parser first then.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a date string </td></tr> <tr><td class="paramname">hint</td><td>the expected format </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>parsed date in seconds since epoch, 0 if no date could be parsed from the string. </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00088">88</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a797d5d5599a3f4d528fa7a8700cbfa12"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">time_t Syndication::parseISODate </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>parses a date string in ISO 8601 extended format. </p> <p>(date: "2003-12-13",datetime: "2003-12-13T18:30:02.25", datetime with timezone: "2003-12-13T18:30:02.25+01:00")</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a string in ISO 8601 format </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>parsed date in seconds since epoch, 0 if no date could be parsed from the string. </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00076">76</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="af2e53b977bf4b6d9a28ee4cbffd482a9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classSyndication_1_1ParserCollection.html">ParserCollection</a>< <a class="el" href="classSyndication_1_1Feed.html">Feed</a> > * Syndication::parserCollection </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>The default <a class="el" href="classSyndication_1_1ParserCollection.html" title="A collection of format-specific parser implementations.">ParserCollection</a> instance parsing a <a class="el" href="classSyndication_1_1DocumentSource.html" title="Represents the source of a syndication document, as read from the downloaded file.">DocumentSource</a> into a <a class="el" href="classSyndication_1_1Feed.html" title="This class represents a feed document ("Channel" in RSS, "Feed" in Atom).">Feed</a> object. </p> <p>Use this to parse a local file or a otherwise manually created <a class="el" href="classSyndication_1_1DocumentSource.html" title="Represents the source of a syndication document, as read from the downloaded file.">DocumentSource</a> object.</p> <p>To retrieve a feed from the web, use <a class="el" href="classSyndication_1_1Loader.html" title="This class is the preferred way of loading feed sources.">Loader</a> instead.</p> <p>Example code:</p> <div class="fragment"><div class="line">...</div> <div class="line">QFile someFile(somePath);</div> <div class="line">...</div> <div class="line">DocumentSource src(someFile.readAll());</div> <div class="line">someFile.close();</div> <div class="line"></div> <div class="line">FeedPtr feed = <a class="code" href="namespaceSyndication.html#af2e53b977bf4b6d9a28ee4cbffd482a9" title="The default ParserCollection instance parsing a DocumentSource into a Feed object.">parserCollection</a>()->parse(src);</div> <div class="line"></div> <div class="line"><span class="keywordflow">if</span> (feed)</div> <div class="line">{</div> <div class="line"> QString title = feed->title();</div> <div class="line"> QList<ItemPtr> items = feed->items();</div> <div class="line"> ...</div> <div class="line">}</div> </div><!-- fragment --> <p>Definition at line <a class="el" href="global_8cpp_source.html#l00055">55</a> of file <a class="el" href="global_8cpp_source.html">global.cpp</a>.</p> </div> </div> <a class="anchor" id="a8152469e04347183c95a45f04d341c79"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">time_t Syndication::parseRFCDate </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>parses a date string as defined in RFC 822. </p> <p>(Sat, 07 Sep 2002 00:00:01 GMT)</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a string in RFC 822 format </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>parsed date in seconds since epoch, 0 if no date could be parsed from the string. </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00082">82</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a6e3ea0a1778fae8fc107074cc1f4a4ae"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">PersonPtr Syndication::personFromString </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Parses a person object from a string by identifying name and email address in the string. </p> <p>Currently detected variants are: "foo@bar.com", "Foo", "Foo &lt;foo@bar.com>", "foo@bar.com (Foo)".</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>the string to parse the person from. </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="classSyndication_1_1Person.html" title="Person objects hold information about a person, such as the author of the content syndicated in the f...">Person</a> object containing the parsed information. </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00237">237</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a1b7edd669437def7a3c4118f0f97ae94"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::plainTextToHtml </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>plainText</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>converts a plain text string to HTML </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">plainText</td><td>a string in plain text. </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00145">145</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a2152bb91927716eaf6a0785c3ee3b63e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::resolveEntities </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>resolves entities to respective unicode chars. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>a string </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00122">122</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> <a class="anchor" id="a0f9d4576c4bb5e241eb33f2257a271be"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString Syndication::slashNamespace </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>"slash" namespace <a href="http://purl.org/rss/1.0/modules/slash/">http://purl.org/rss/1.0/modules/slash/</a> </p> <p>Definition at line <a class="el" href="constants_8cpp_source.html#l00059">59</a> of file <a class="el" href="constants_8cpp_source.html">constants.cpp</a>.</p> </div> </div> <a class="anchor" id="a98a665003ea489b575b11139686d74a9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Syndication::stringContainsMarkup </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>str</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>guesses whether a string contains (HTML) markup or not. </p> <p>This implements not an exact check for valid HTML markup, but a simple (and relatively fast) heuristic.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">str</td><td>the string that might or might not contain markup </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd><code>true</code> if the heuristic thinks it contains markup, <code>false</code> if thinks it is markup-free plain text </dd></dl> <p>Definition at line <a class="el" href="tools_8cpp_source.html#l00170">170</a> of file <a class="el" href="tools_8cpp_source.html">tools.cpp</a>.</p> </div> </div> </div><!-- contents --> <div class="copyrights"> This file is part of the KDE documentation.<br/> Documentation copyright © 1996-2013 The KDE developers.<br/> Generated on Fri Jul 12 2013 16:48:30 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.8.3.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2006 <p> KDE's <a href="http://techbase.kde.org/Policies/Library_Documentation_Policy">Doxygen guidelines</a> are available online. </p> </div> </div> </div> </div> <div id="left"> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">Syndication Library</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "Syndication Library"</a> </div></div> <ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="functions.html">Class Members</a></li><li><a href="files.html">File List</a></li><li><a href="pages.html">Related Pages</a></li></ul> <!-- <h2>Class Picker</h2> <div style="text-align: center;"> <form name="guideform"> <select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value"> <option value="annotated.html">-- Choose --</option> <option value="classSyndication_1_1AbstractParser.html">syndication::abstractparser</option>, <option value="classSyndication_1_1Category.html">syndication::category</option>, <option value="classSyndication_1_1DataRetriever.html">syndication::dataretriever</option>, <option value="classSyndication_1_1DocumentSource.html">syndication::documentsource</option>, <option value="classSyndication_1_1DocumentVisitor.html">syndication::documentvisitor</option>, <option value="classSyndication_1_1ElementWrapper.html">syndication::elementwrapper</option>, <option value="classSyndication_1_1Enclosure.html">syndication::enclosure</option>, <option value="classSyndication_1_1Feed.html">syndication::feed</option>, <option value="classSyndication_1_1FileRetriever.html">syndication::fileretriever</option>, <option value="classSyndication_1_1Image.html">syndication::image</option>, <option value="classSyndication_1_1Item.html">syndication::item</option>, <option value="classSyndication_1_1Loader.html">syndication::loader</option>, <option value="classSyndication_1_1Mapper.html">syndication::mapper</option>, <option value="classSyndication_1_1OutputRetriever.html">syndication::outputretriever</option>, <option value="classSyndication_1_1ParserCollection.html">syndication::parsercollection</option>, <option value="classSyndication_1_1Person.html">syndication::person</option>, <option value="classSyndication_1_1SpecificDocument.html">syndication::specificdocument</option>, <option value="classSyndication_1_1SpecificItem.html">syndication::specificitem</option>, <option value="classSyndication_1_1SpecificItemVisitor.html">syndication::specificitemvisitor</option>, </select> </form> </div> --> <div class="menu_box"> <a name="cp-menu" /><div class="menutitle"><div> <h2 id="cp-menu-project">kdepimlibs-4.10.5 API Reference</h2> <a href="#cp-skip-project" class="cp-doNotDisplay">Skip menu "kdepimlibs-4.10.5 API Reference"</a> </div></div> <div class="nav_list"> <ul> <li><a href="../../akonadi/html/index.html">akonadi</a></li><li> <a href="../../akonadi/contact/html/index.html">contact</a></li><li> <a href="../../akonadi/kmime/html/index.html">kmime</a></li><li> <a href="../../akonadi/socialutils/html/index.html">socialutils</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kalarmcal/html/index.html">kalarmcal</a></li><li><a href="../../kblog/html/index.html">kblog</a></li><li><a href="../../kcal/html/index.html">kcal</a></li><li><a href="../../kcalcore/html/index.html">kcalcore</a></li><li><a href="../../kcalutils/html/index.html">kcalutils</a></li><li><a href="../../kholidays/html/index.html">kholidays</a></li><li><a href="../../kimap/html/index.html">kimap</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li> <a href="../../kioslave/imap4/html/index.html">imap4</a></li><li> <a href="../../kioslave/mbox/html/index.html">mbox</a></li><li> <a href="../../kioslave/nntp/html/index.html">nntp</a></li><li><a href="../../kldap/html/index.html">kldap</a></li><li><a href="../../kmbox/html/index.html">kmbox</a></li><li><a href="../../kmime/html/index.html">kmime</a></li><li><a href="../../kontactinterface/html/index.html">kontactinterface</a></li><li><a href="../../kpimidentities/html/index.html">kpimidentities</a></li><li><a href="../../kpimtextedit/html/index.html">kpimtextedit</a></li><li><a href="../../kpimutils/html/index.html">kpimutils</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../ktnef/html/index.html">ktnef</a></li><li><a href="../../kxmlrpcclient/html/index.html">kxmlrpcclient</a></li><li><a href="../../mailtransport/html/index.html">mailtransport</a></li><li><a href="../../microblog/html/index.html">microblog</a></li><li><a href="../../qgpgme/html/index.html">qgpgme</a></li><li><a href="../../syndication/html/index.html">syndication</a></li><li> <a href="../../syndication/atom/html/index.html">atom</a></li><li> <a href="../../syndication/rdf/html/index.html">rdf</a></li><li> <a href="../../syndication/rss2/html/index.html">rss2</a></li> </ul></div></div> <!-- api_searchbox --> </div> </div> <div class="clearer"></div> </div> <div class="clearer"></div> </div> <div id="end_body"></div> <div id="footer"><div id="footer_text"> Report problems with this website to <a href="https://bugs.kde.org/enter_sysadmin_request.cgi?component=api.kde.org">our bug tracking system</a>.<br> Contact the specific authors with questions and comments about the page contents.<p> KDE<sup>®</sup> and <a href="/media/images/kde_gear_black.png">the K Desktop Environment<sup>®</sup> logo</a> are registered trademarks of <a href="http://ev.kde.org/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> | <a href="http://www.kde.org/contact/impressum.php">Legal</a></p> </div></div> </div> <!-- WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL BE BLOCKED INSTANTLY AND PERMANENTLY! <a href="mailto:aaaatrap-45abe0e0c3bebc77@kde.org">Block me</a> WARNING END --> </body> </html>