2014-05-25 18:10:52 +02:00
|
|
|
#ifndef TWISTER_RSS_H
|
|
|
|
#define TWISTER_RSS_H
|
|
|
|
|
|
|
|
#include "json/json_spirit.h"
|
|
|
|
#include <string>
|
2014-05-31 10:59:09 +02:00
|
|
|
#include <map>
|
2014-05-25 18:10:52 +02:00
|
|
|
|
|
|
|
enum RSSResultCode
|
|
|
|
{
|
|
|
|
RSS_OK = 0,
|
|
|
|
RSS_ERROR_NO_ACCOUNT = -1,
|
|
|
|
RSS_ERROR_BAD_ACCOUNT = -2,
|
2014-06-03 12:04:28 -03:00
|
|
|
RSS_ERROR_NOT_A_NUMBER = -3,
|
|
|
|
RSS_ERROR_BOOST_REGEX = -4
|
2014-05-25 18:10:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern bool sortByTime (json_spirit::Object i,json_spirit::Object j);
|
2014-06-03 22:05:40 +02:00
|
|
|
extern void encodeXmlCharacters (std::string& data);
|
2014-06-03 12:04:28 -03:00
|
|
|
#ifdef HAVE_BOOST_REGEX
|
|
|
|
extern std::map<std::string, std::string> parseQuery(const std::string& query);
|
|
|
|
#endif
|
2014-05-25 18:10:52 +02:00
|
|
|
extern int generateRSS(std::string uri, std::string *output);
|
|
|
|
|
|
|
|
#endif // TWISTER_RSS_H
|