Added the cPlugin::Housekeeping() function

This commit is contained in:
Klaus Schmidinger
2002-05-12 10:20:17 +02:00
parent 01c68def34
commit 5d733e59ee
9 changed files with 78 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: newplugin 1.2 2002/05/12 09:06:43 kls Exp $
# $Id: newplugin 1.3 2002/05/12 10:14:47 kls Exp $
$PLUGIN_NAME = $ARGV[0] || die "Usage: newplugin <name>\n";
@@ -159,6 +159,7 @@ public:
virtual const char *CommandLineHelp(void);
virtual bool ProcessArgs(int argc, char *argv[]);
virtual bool Start(void);
virtual void Housekeeping(void);
virtual const char *MainMenuEntry(void) { return MAINMENUENTRY; }
virtual cOsdMenu *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
@@ -195,6 +196,11 @@ bool cPlugin${PLUGIN_CLASS}::Start(void)
return true;
}
void cPlugin${PLUGIN_CLASS}::Housekeeping(void)
{
// Perform any cleanup or other regular tasks.
}
cOsdMenu *cPlugin${PLUGIN_CLASS}::MainMenuAction(void)
{
// Perform the action when selected from the main VDR menu.