blob: 3b27a688629c022c0c73172bf3b5bf43f7980a3c (
plain)
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
|
/*
* config.c: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#include <stdlib.h>
#include <strings.h>
#include <vdr/plugin.h>
#include "config.h"
cDuplicatesConfig::cDuplicatesConfig() {
title = 1;
hidden = 0;
}
cDuplicatesConfig::~cDuplicatesConfig() {}
bool cDuplicatesConfig::SetupParse(const char *Name, const char *Value) {
if (!strcasecmp(Name, "title")) title = atoi(Value);
else if (!strcasecmp(Name, "hidden")) hidden = atoi(Value);
else
return false;
return true;
}
void cDuplicatesConfig::Store(void) {
cPluginManager::GetPlugin(PLUGIN_NAME_I18N)->SetupStore("title", title);
}
cDuplicatesConfig dc;
|