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
|
|
|
class Entry {
|
2020-06-19 17:54:41 -05:00
|
|
|
public:
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2021-01-11 18:08:15 -06:00
|
|
|
Entry();
|
2021-02-21 13:16:35 -06:00
|
|
|
~Entry();
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2021-01-11 18:08:15 -06:00
|
|
|
bool Filetize(BDirectory outDir);
|
2020-12-30 22:07:54 -06:00
|
|
|
|
2021-03-20 18:45:37 -05:00
|
|
|
BString Title();
|
2020-12-30 22:07:54 -06:00
|
|
|
bool SetTitle(const char*);
|
|
|
|
bool SetTitle(tinyxml2::XMLElement*);
|
2021-03-20 18:45:37 -05:00
|
|
|
|
|
|
|
BString Description();
|
|
|
|
bool SetDescription(const char*);
|
|
|
|
bool SetDescription(tinyxml2::XMLElement*);
|
|
|
|
|
|
|
|
BString FeedTitle();
|
2020-12-30 22:07:54 -06:00
|
|
|
bool SetFeedTitle(BString);
|
2021-03-20 18:45:37 -05:00
|
|
|
|
|
|
|
BString Content();
|
2020-12-30 22:07:54 -06:00
|
|
|
bool SetContent(const char*);
|
|
|
|
bool SetContent(tinyxml2::XMLElement*);
|
2021-03-20 18:45:37 -05:00
|
|
|
|
|
|
|
BString PostUrl();
|
|
|
|
bool SetPostUrl(const char*);
|
|
|
|
bool SetPostUrl(tinyxml2::XMLElement*);
|
|
|
|
|
|
|
|
BDateTime Date();
|
|
|
|
bool SetDate(const char*);
|
|
|
|
bool SetDate(tinyxml2::XMLElement*);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
BString fTitle;
|
|
|
|
BString fDescription;
|
|
|
|
BString fFeedTitle;
|
|
|
|
BDateTime fDate;
|
|
|
|
BString fPostUrl;
|
|
|
|
BString fContent;
|
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
|
|
|
|