2020-12-30 22:07:54 -06:00
|
|
|
/*
|
|
|
|
* Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io>
|
|
|
|
* All rights reserved. Distributed under the terms of the MIT license.
|
|
|
|
*/
|
2020-07-08 03:20:03 -05:00
|
|
|
#ifndef ENTRY_H
|
|
|
|
#define ENTRY_H
|
2020-06-19 17:54:41 -05:00
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-06-19 17:54:41 -05:00
|
|
|
#include <DateTime.h>
|
|
|
|
#include <List.h>
|
2020-12-30 22:07:54 -06:00
|
|
|
#include <String.h>
|
2020-06-19 17:54:41 -05:00
|
|
|
#include <Url.h>
|
2020-12-30 22:07:54 -06:00
|
|
|
|
|
|
|
#include <tinyxml2.h>
|
|
|
|
|
2020-07-08 03:20:03 -05:00
|
|
|
#include "Config.h"
|
2020-06-19 17:54:41 -05:00
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-07-08 03:20:03 -05:00
|
|
|
class Entry {
|
2020-06-19 17:54:41 -05:00
|
|
|
public:
|
2020-12-30 22:07:54 -06:00
|
|
|
|
|
|
|
Entry(BString);
|
|
|
|
|
|
|
|
bool Filetize(bool);
|
|
|
|
|
|
|
|
bool SetTitle(const char*);
|
|
|
|
bool SetTitle(tinyxml2::XMLElement*);
|
|
|
|
bool SetDesc(const char*);
|
|
|
|
bool SetDesc(tinyxml2::XMLElement*);
|
|
|
|
bool SetFeedTitle(BString);
|
|
|
|
bool SetContent(const char*);
|
|
|
|
bool SetContent(tinyxml2::XMLElement*);
|
|
|
|
bool SetPostUrl(const char*);
|
|
|
|
bool SetPostUrl(tinyxml2::XMLElement*);
|
|
|
|
bool SetDate(const char*);
|
|
|
|
bool SetDate(tinyxml2::XMLElement*);
|
|
|
|
|
2020-06-19 17:54:41 -05:00
|
|
|
BString title;
|
|
|
|
BString description;
|
2020-08-19 12:18:12 -05:00
|
|
|
BString feedTitle;
|
2020-07-08 03:20:03 -05:00
|
|
|
BDateTime date;
|
2020-06-19 17:54:41 -05:00
|
|
|
BString postUrl;
|
2020-07-04 04:44:54 -05:00
|
|
|
BString content;
|
2020-07-08 03:20:03 -05:00
|
|
|
BString outputDir;
|
2020-06-19 17:54:41 -05:00
|
|
|
};
|
|
|
|
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2020-06-19 17:54:41 -05:00
|
|
|
#endif
|
2020-12-30 22:07:54 -06:00
|
|
|
|