summaryrefslogtreecommitdiff
path: root/status.cpp
blob: a39782c1d992b7773dace02bdc3e843a1be53c06 (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

#include "status.h"

#include "timers.h"

namespace vdrlive {

StatusMonitor::StatusMonitor()
{
}

void StatusMonitor::TimerChange(const cTimer *Timer, eTimerChange Change)
{
	cMutexLock timersLock( &LiveTimerManager() );
	LiveTimerManager().SetReloadTimers();
}

void StatusMonitor::Recording( cDevice const*, char const*, char const*, bool )
{
	cMutexLock timersLock( &LiveTimerManager() );
	LiveTimerManager().DoReloadTimers();
}

StatusMonitor& LiveStatusMonitor()
{
	static StatusMonitor instance;
	return instance;
}

} // namespace vdrlive