blob: a807562732f5ddd08570e5a480b511955e44299d (
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
|
#ifndef NULLSOFT_FEEDSH
#define NULLSOFT_FEEDSH
#include "ifc_podcast.h"
#include "Item.h"
#include <vector>
class Channel : public ifc_podcast
{
public:
typedef std::vector<RSS::Item> ItemList;
Channel();
Channel(const Channel ©);
const Channel &operator =(const Channel ©);
~Channel();
void SortByTitle(), SortByMedia(), SortByMediaTime(), SortByDate(), SortByMediaSize();
bool operator == (const Channel &compare);
//void operator = (const Channel ©);
void UpdateFrom(const Channel ©);
unsigned int ttl;
__time64_t updateTime, lastUpdate;
int autoDownloadEpisodes;
bool autoUpdate;
bool useDefaultUpdate;
bool autoDownload;
bool needsRefresh;
// TODO: std::wstring downloadLocation;
ItemList items;
void SetURL(const wchar_t *val);
void SetTitle(const wchar_t *val);
void SetLink(const wchar_t *val);
void SetDescription(const wchar_t *val);
wchar_t *url, *title, *link, *description;
public: // ifc_podcast interface
int GetTitle(wchar_t *str, size_t len);
private:
void Init();
void Reset();
protected:
RECVS_DISPATCH;
};
#endif
|