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