aboutsummaryrefslogtreecommitdiff
path: root/rss/item.h
blob: 4f82a643210a1589781562944b017da5b30f29e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef NEWSBOAT_RSSPPITEM_H_
#define NEWSBOAT_RSSPPITEM_H_

#include <ctime>
#include <string>
#include <vector>

namespace rsspp {

struct Enclosure {
	std::string url;
	std::string type;
	std::string description;
	std::string description_mime_type;
};

class Item {
public:
	Item()
		: guid_isPermaLink(false)
		, pubDate_ts(0)
	{
	}

	std::string title;
	std::string title_type;
	std::string link;
	std::string description;
	std::string description_mime_type;

	std::string author;
	std::string author_email;

	std::string pubDate;
	std::string guid;
	bool guid_isPermaLink;

	std::vector<Enclosure> enclosures;

	// extensions:
	std::string content_encoded;
	std::string itunes_summary;

	// Atom-specific:
	std::string base;
	std::vector<std::string> labels;

	// only required for ttrss support:
	time_t pubDate_ts;
};

} // namespace rsspp

#endif /* NEWSBOAT_RSSPPITEM_H_ */