summaryrefslogtreecommitdiff
path: root/duplicates.c
diff options
context:
space:
mode:
authorTimo Eskola <timo@tolleri.net>2015-09-08 12:59:54 +0300
committerTimo Eskola <timo@tolleri.net>2015-09-08 12:59:54 +0300
commitb94ebafe8c2f32b404d69f1ea8e6bc2de68e606a (patch)
treecfcdfef1696b16df880e5be0d880e8f72e96446f /duplicates.c
parent47a129b230b2b2e9a880948b5bc188ab715ba3b2 (diff)
downloadvdr-plugin-duplicates-b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a.tar.gz
vdr-plugin-duplicates-b94ebafe8c2f32b404d69f1ea8e6bc2de68e606a.tar.bz2
Version 0.1.0:
- Added hiding of duplicate recordings. - Updated German translations, thanks to Joerg Bornkessel.
Diffstat (limited to 'duplicates.c')
-rw-r--r--duplicates.c54
1 files changed, 19 insertions, 35 deletions
diff --git a/duplicates.c b/duplicates.c
index acd714f..54c9834 100644
--- a/duplicates.c
+++ b/duplicates.c
@@ -10,8 +10,9 @@
#include <vdr/plugin.h>
#include "config.h"
#include "menu.h"
+#include "visibility.h"
-static const char *VERSION = "0.0.6";
+static const char *VERSION = "0.1.0";
static const char *DESCRIPTION = trNOOP("Shows duplicate recordings");
static const char *MAINMENUENTRY = trNOOP("Duplicate recordings");
@@ -41,102 +42,85 @@ public:
virtual cString SVDRPCommand(const char *Command, const char *Option, int &ReplyCode);
};
-cPluginDuplicates::cPluginDuplicates(void)
-{
+cPluginDuplicates::cPluginDuplicates(void) {
// Initialize any member variables here.
// DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL
// VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!
}
-cPluginDuplicates::~cPluginDuplicates()
-{
+cPluginDuplicates::~cPluginDuplicates() {
// Clean up after yourself!
}
-const char *cPluginDuplicates::CommandLineHelp(void)
-{
+const char *cPluginDuplicates::CommandLineHelp(void) {
// Return a string that describes all known command line options.
return NULL;
}
-bool cPluginDuplicates::ProcessArgs(int argc, char *argv[])
-{
+bool cPluginDuplicates::ProcessArgs(int argc, char *argv[]) {
// Implement command line argument processing here if applicable.
return true;
}
-bool cPluginDuplicates::Initialize(void)
-{
+bool cPluginDuplicates::Initialize(void) {
// Initialize any background activities the plugin shall perform.
return true;
}
-bool cPluginDuplicates::Start(void)
-{
+bool cPluginDuplicates::Start(void) {
// Start any background activities the plugin shall perform.
return true;
}
-void cPluginDuplicates::Stop(void)
-{
+void cPluginDuplicates::Stop(void) {
// Stop any background activities the plugin is performing.
}
-void cPluginDuplicates::Housekeeping(void)
-{
+void cPluginDuplicates::Housekeeping(void) {
// Perform any cleanup or other regular tasks.
}
-void cPluginDuplicates::MainThreadHook(void)
-{
+void cPluginDuplicates::MainThreadHook(void) {
// Perform actions in the context of the main program thread.
// WARNING: Use with great care - see PLUGINS.html!
}
-cString cPluginDuplicates::Active(void)
-{
+cString cPluginDuplicates::Active(void) {
// Return a message string if shutdown should be postponed
return NULL;
}
-time_t cPluginDuplicates::WakeupTime(void)
-{
+time_t cPluginDuplicates::WakeupTime(void) {
// Return custom wakeup time for shutdown script
return 0;
}
-cOsdObject *cPluginDuplicates::MainMenuAction(void)
-{
+cOsdObject *cPluginDuplicates::MainMenuAction(void) {
// Perform the action when selected from the main VDR menu.
return new cMenuDuplicates();
}
-cMenuSetupPage *cPluginDuplicates::SetupMenu(void)
-{
+cMenuSetupPage *cPluginDuplicates::SetupMenu(void) {
// Return a setup menu in case the plugin supports one.
return new cMenuSetupDuplicates;
}
-bool cPluginDuplicates::SetupParse(const char *Name, const char *Value)
-{
+bool cPluginDuplicates::SetupParse(const char *Name, const char *Value) {
// Parse your own setup parameters and store their values.
return dc.SetupParse(Name, Value);;
}
-bool cPluginDuplicates::Service(const char *Id, void *Data)
-{
+bool cPluginDuplicates::Service(const char *Id, void *Data) {
// Handle custom service requests from other plugins
return false;
}
-const char **cPluginDuplicates::SVDRPHelpPages(void)
-{
+const char **cPluginDuplicates::SVDRPHelpPages(void) {
// Return help text for SVDRP commands this plugin implements
return NULL;
}
-cString cPluginDuplicates::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
-{
+cString cPluginDuplicates::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode) {
// Process SVDRP commands this plugin implements
return NULL;
}