Pogger/src/Entry.h

61 lines
1015 B
C
Raw Normal View History

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.
*/
#ifndef ENTRY_H
#define ENTRY_H
2020-12-30 22:07:54 -06:00
#include <DateTime.h>
#include <List.h>
2020-12-30 22:07:54 -06:00
#include <String.h>
#include <Url.h>
2020-12-30 22:07:54 -06:00
#include <tinyxml2.h>
class Entry {
public:
2020-12-30 22:07:54 -06:00
2021-01-11 18:08:15 -06:00
Entry();
~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-12-30 22:07:54 -06:00
#endif
2020-12-30 22:07:54 -06:00