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