2020-06-19 17:03:19 -05:00
|
|
|
#ifndef CHANNEL_H
|
|
|
|
#define CHANNEL_H
|
|
|
|
|
2020-07-04 04:44:54 -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 Channel {
|
|
|
|
public:
|
|
|
|
char lang[3];
|
|
|
|
BString title;
|
|
|
|
BString description;
|
2020-07-04 04:44:54 -05:00
|
|
|
BString lastDate;
|
2020-06-18 02:02:44 -05:00
|
|
|
BString homePage;
|
|
|
|
BString xmlUrl;
|
|
|
|
BList items;
|
|
|
|
|
|
|
|
BString topLevelSubject;
|
|
|
|
BString lastSubject;
|
|
|
|
BString filePath;
|
2020-06-20 21:15:34 -05:00
|
|
|
BString outputDir;
|
2020-06-18 02:02:44 -05:00
|
|
|
|
|
|
|
|
2020-06-20 21:15:34 -05:00
|
|
|
Channel ( BString, BString );
|
2020-06-18 02:02:44 -05:00
|
|
|
// Channel ( BEntry );
|
|
|
|
// Channel ( BUrl );
|
2020-07-03 19:13:41 -05:00
|
|
|
void Parse ( Config* );
|
2020-07-04 04:44:54 -05:00
|
|
|
|
|
|
|
void SetTitle ( const char* );
|
|
|
|
void SetTitle ( tinyxml2::XMLElement* );
|
|
|
|
void SetDesc ( const char* );
|
|
|
|
void SetDesc ( tinyxml2::XMLElement* );
|
|
|
|
void SetLastDate ( const char* );
|
|
|
|
void SetLastDate ( tinyxml2::XMLElement* );
|
|
|
|
void SetHomePage ( const char* );
|
|
|
|
void SetHomePage ( tinyxml2::XMLElement* );
|
2020-06-18 02:02:44 -05:00
|
|
|
};
|
|
|
|
|
2020-06-19 17:03:19 -05:00
|
|
|
#endif
|