File: menu.h

package info (click to toggle)
vdr-plugin-remoteosd 1.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 172 kB
  • ctags: 126
  • sloc: ansic: 661; makefile: 59; sh: 9
file content (51 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download | duplicates (3)
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
/*
 * menu.h: displays the remote OSD
 *
 * See the README file for copyright information and how to reach the author.
 */

#ifndef _REMOTEOSD_MENU__H
#define _REMOTEOSD_MENU__H

#include <vdr/tools.h>
#include <vdr/osdbase.h>
#include <vdr/plugin.h>
#include <vdr/channels.h>
#include <svdrpservice.h>

class cRemoteOsdMenu: public cOsdMenu {
	private:
		cPlugin			*plugin;
		SvdrpConnection_v1_0	svdrp;
		cString			title;
		cString			message;
		cString			red;
		cString			green;
		cString			yellow;
		cString			blue;
		cString			text;
		bool			isEmpty;
		bool			plugOsd;

		bool CmdCHAN(cChannel *Channel);
		bool CmdHITK(const char *Key);
		bool CmdLSTO();
		bool CmdOSDT();
		bool CmdOSDI();
		bool CmdOSDH();
		bool CmdOSDM();
		bool CmdOSDX();
		int CheckState();
		bool UpdateMenu();
	protected:
		virtual void Clear();
	public:
		cRemoteOsdMenu(const char *Title);
		virtual ~cRemoteOsdMenu();

		bool Open(const char *ServerIp, unsigned short ServerPort, const char *Key);
		virtual void Display();
		virtual eOSState ProcessKey(eKeys Key);
};

#endif //_REMOTEOSD_MENU__H