-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfreecell.c
75 lines (63 loc) · 1.69 KB
/
freecell.c
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
/*
* freecell.c: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#include <vdr/plugin.h>
#include "game.h"
#include "i18n.h"
static const char *VERSION = "0.0.2";
static const char *DESCRIPTION = "The well-known card game";
static const char *MAINMENUENTRY = "Freecell";
class cPluginFreecell : public cPlugin {
private:
// Add any member variables or functions you may need here.
public:
cPluginFreecell(void);
virtual ~cPluginFreecell();
virtual const char *Version(void) { return VERSION; }
virtual const char *Description(void) { return tr(DESCRIPTION); }
virtual bool Initialize(void);
virtual bool Start(void);
virtual void Housekeeping(void);
virtual const char *MainMenuEntry(void) { return tr(MAINMENUENTRY); }
virtual cOsdObject *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
virtual bool SetupParse(const char *Name, const char *Value);
};
cPluginFreecell::cPluginFreecell(void)
{
}
cPluginFreecell::~cPluginFreecell()
{
}
bool cPluginFreecell::Initialize(void)
{
return true;
}
bool cPluginFreecell::Start(void)
{
RegisterI18n(Phrases);
return true;
}
void cPluginFreecell::Housekeeping(void)
{
// Perform any cleanup or other regular tasks.
}
cOsdObject *cPluginFreecell::MainMenuAction(void)
{
return new cFreecellGame;
}
cMenuSetupPage *cPluginFreecell::SetupMenu(void)
{
// Return a setup menu in case the plugin supports one.
return NULL;
}
bool cPluginFreecell::SetupParse(const char *Name, const char *Value)
{
// Parse your own setup parameters and store their values.
return false;
}
VDRPLUGINCREATOR(cPluginFreecell); // Don't touch this!