-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmenu.h
86 lines (68 loc) · 1.77 KB
/
menu.h
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
* menu.h: RSS Reader plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __RSSREADER_MENU_H
#define __RSSREADER_MENU_H
#include <vdr/osdbase.h>
#include <vdr/tools.h>
// --- cRssItem(s) ------------------------------------------------------------
class cRssItem : public cListObject {
private:
char *titleM;
char *urlM;
public:
cRssItem();
virtual ~cRssItem();
bool Parse(const char *strP);
const char *Title(void) { return titleM; }
const char *Url(void) { return urlM; }
};
class cRssItems : public cConfig<cRssItem> {
private:
bool updatedM;
public:
cRssItems();
virtual bool Load(const char *fileNameP);
bool Updated(void);
};
extern cRssItems RssItems;
// --- cRssMenuItem -----------------------------------------------------------
class cRssMenuItem : public cOsdMenu {
private:
enum {
TYPE_NONE,
TYPE_IMAGE,
TYPE_VIDEO,
TYPE_MUSIC
};
int typeM;
cString textM;
cString linkM;
public:
cRssMenuItem(const char *streamP, const char *dateP, const char *titleP, const char *linkP, const char *descriptionP);
virtual ~cRssMenuItem();
virtual void Display(void);
virtual eOSState ProcessKey(eKeys keyP);
};
// --- cRssItemsMenu ----------------------------------------------------------
class cRssItemsMenu: public cOsdMenu {
private:
cString streamM;
eOSState ShowDetails(void);
public:
cRssItemsMenu(const char *streamP);
virtual eOSState ProcessKey(eKeys keyP);
};
// --- cRssStreamsMenu --------------------------------------------------------
class cRssStreamsMenu: public cOsdMenu {
private:
void Setup(void);
eOSState Select(void);
public:
cRssStreamsMenu();
virtual eOSState ProcessKey(eKeys keyP);
};
#endif // __RSSREADER_MENU_H