Pogger/src/Feed.h

44 lines
792 B
C
Raw Normal View History

#ifndef FEED_H
#define FEED_H
2020-06-19 17:03:19 -05:00
#include <tinyxml2.h>
2020-06-18 02:02:44 -05:00
#include <DateTime.h>
#include <String.h>
#include <List.h>
#include <Url.h>
2020-07-03 19:13:41 -05:00
#include "Config.h"
2020-06-18 02:02:44 -05:00
class Feed {
2020-06-18 02:02:44 -05:00
public:
Feed ( BString );
Feed ( );
2020-06-18 02:02:44 -05:00
BString title;
BString description;
BDateTime date;
BString homeUrl;
2020-06-18 02:02:44 -05:00
BString xmlUrl;
BString filePath;
BString outputDir;
BList entries;
2020-07-03 19:13:41 -05:00
void Parse ( Config* );
bool SetTitle ( const char* );
bool SetTitle ( tinyxml2::XMLElement* );
bool SetDesc ( const char* );
bool SetDesc ( tinyxml2::XMLElement* );
bool SetDate ( const char* );
bool SetDate ( tinyxml2::XMLElement* );
bool SetHomeUrl ( const char* );
bool SetHomeUrl ( tinyxml2::XMLElement* );
bool IsRss ( );
bool IsAtom ( );
protected:
int xmlCountSiblings ( tinyxml2::XMLElement*, const char* );
2020-06-18 02:02:44 -05:00
};
2020-06-19 17:03:19 -05:00
#endif