10 #ifndef CARMA_ALARMCONTROLIMPL_H
11 #define CARMA_ALARMCONTROLIMPL_H
13 #include <carma/monitor/AlarmSubsystem.h>
15 #include <carma/util/AutoPthreadQuitAndJoinGroup.h>
16 #include <carma/util/PthreadMutex.h>
21 class AudioControlThread2;
37 void turnOn(
const char *alarmName,
44 void enableAlarm(
bool enable);
52 void soundTheAlarm(
const std::string &alarmName,
bool repeat);
53 void silenceTheAlarm();
65 std::string alarmName;
68 ::carma::monitor::AlarmSubsystem monitor_;
69 struct AlarmState state_;
72 carma::util::AutoPthreadQuitAndJoinGroup threadGroup_;
75 AudioControlThread2 &control_;
82 #endif // CARMA_ALARMCONTROLIMPL_H
AlarmControl implementation class.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...