2020-06-19 17:54:41 -05:00
|
|
|
#ifndef ITEM_H
|
|
|
|
#define ITEM_H
|
|
|
|
|
2020-06-20 21:15:34 -05:00
|
|
|
#include <iostream>
|
2020-06-19 17:54:41 -05:00
|
|
|
#include <DateTime.h>
|
|
|
|
#include <String.h>
|
|
|
|
#include <List.h>
|
|
|
|
#include <Url.h>
|
|
|
|
|
|
|
|
class Item {
|
|
|
|
public:
|
|
|
|
BString title;
|
|
|
|
BString description;
|
2020-06-20 21:15:34 -05:00
|
|
|
BString pubDate;
|
2020-06-19 17:54:41 -05:00
|
|
|
BString homePage;
|
|
|
|
BString postUrl;
|
2020-07-04 04:44:54 -05:00
|
|
|
BString content;
|
2020-06-20 21:15:34 -05:00
|
|
|
BString outputDir;
|
2020-06-19 17:54:41 -05:00
|
|
|
|
2020-07-04 04:44:54 -05:00
|
|
|
Item ( BString );
|
2020-06-19 17:54:41 -05:00
|
|
|
|
2020-07-04 04:44:54 -05:00
|
|
|
bool Filetize ( Config*, bool );
|
2020-06-20 21:15:34 -05:00
|
|
|
|
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 SetContent ( const char* );
|
|
|
|
void SetContent ( tinyxml2::XMLElement* );
|
|
|
|
void SetPostUrl ( const char* );
|
|
|
|
void SetPostUrl ( tinyxml2::XMLElement* );
|
|
|
|
void SetPubDate ( const char* );
|
|
|
|
void SetPubDate ( tinyxml2::XMLElement* );
|
2020-06-19 17:54:41 -05:00
|
|
|
};
|
|
|
|
|
2020-07-04 04:44:54 -05:00
|
|
|
|
|
|
|
|
2020-06-19 17:54:41 -05:00
|
|
|
#endif
|