mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
timerd/timermanager.cpp: rename CONFIGFILE to TIMERDCONFIGFILE to avoid conflicts
This commit is contained in:
@@ -414,10 +414,10 @@ void CTimerManager::loadEventsFromConfig()
|
|||||||
{
|
{
|
||||||
CConfigFile config(',');
|
CConfigFile config(',');
|
||||||
|
|
||||||
if(!config.loadConfig(CONFIGFILE))
|
if(!config.loadConfig(TIMERDCONFIGFILE))
|
||||||
{
|
{
|
||||||
/* set defaults if no configuration file exists */
|
/* set defaults if no configuration file exists */
|
||||||
dprintf("%s not found\n", CONFIGFILE);
|
dprintf("%s not found\n", TIMERDCONFIGFILE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -624,13 +624,13 @@ void CTimerManager::loadRecordingSafety()
|
|||||||
{
|
{
|
||||||
CConfigFile config(',');
|
CConfigFile config(',');
|
||||||
|
|
||||||
if(!config.loadConfig(CONFIGFILE))
|
if(!config.loadConfig(TIMERDCONFIGFILE))
|
||||||
{
|
{
|
||||||
/* set defaults if no configuration file exists */
|
/* set defaults if no configuration file exists */
|
||||||
dprintf("%s not found\n", CONFIGFILE);
|
dprintf("%s not found\n", TIMERDCONFIGFILE);
|
||||||
m_extraTimeStart = 300;
|
m_extraTimeStart = 300;
|
||||||
m_extraTimeEnd = 300;
|
m_extraTimeEnd = 300;
|
||||||
config.saveConfig(CONFIGFILE);
|
config.saveConfig(TIMERDCONFIGFILE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -659,8 +659,8 @@ void CTimerManager::saveEventsToConfig()
|
|||||||
dprintf("setting EXTRA_TIME_START to %d\n",m_extraTimeStart);
|
dprintf("setting EXTRA_TIME_START to %d\n",m_extraTimeStart);
|
||||||
config.setInt32 ("EXTRA_TIME_END", m_extraTimeEnd);
|
config.setInt32 ("EXTRA_TIME_END", m_extraTimeEnd);
|
||||||
dprintf("setting EXTRA_TIME_END to %d\n",m_extraTimeEnd);
|
dprintf("setting EXTRA_TIME_END to %d\n",m_extraTimeEnd);
|
||||||
dprintf("now saving config to %s...\n",CONFIGFILE);
|
dprintf("now saving config to %s...\n",TIMERDCONFIGFILE);
|
||||||
config.saveConfig(CONFIGFILE);
|
config.saveConfig(TIMERDCONFIGFILE);
|
||||||
dprintf("config saved!\n");
|
dprintf("config saved!\n");
|
||||||
m_saveEvents=false;
|
m_saveEvents=false;
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
#include <eventserver.h>
|
#include <eventserver.h>
|
||||||
#include <timerdclient/timerdtypes.h>
|
#include <timerdclient/timerdtypes.h>
|
||||||
|
|
||||||
#define CONFIGFILE CONFIGDIR "/timerd.conf"
|
#define TIMERDCONFIGFILE CONFIGDIR "/timerd.conf"
|
||||||
|
|
||||||
class CTimerEvent
|
class CTimerEvent
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user