Pogger/src/Entry.h

49 lines
879 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
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*);
2021-01-11 18:08:15 -06:00
BDateTime GetDate();
2020-12-30 22:07:54 -06:00
BString title;
BString description;
2020-08-19 12:18:12 -05:00
BString feedTitle;
BDateTime date;
BString postUrl;
BString content;
};
2020-12-30 22:07:54 -06:00
#endif
2020-12-30 22:07:54 -06:00