mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-18 22:55:52 +01:00
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
|
#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
|