Pogger/src/Channel.h

43 lines
811 B
C
Raw Normal View History

2020-06-19 17:03:19 -05:00
#ifndef CHANNEL_H
#define CHANNEL_H
#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;
BString lastDate;
2020-06-18 02:02:44 -05:00
BString homePage;
BString xmlUrl;
BList items;
BString topLevelSubject;
BString lastSubject;
BString filePath;
BString outputDir;
2020-06-18 02:02:44 -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* );
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