39 :
TorcInput(
TorcInput::Started, Value, 0, 1, QStringLiteral(
"SystemStarted"), Details),
45 if (Details.contains(QStringLiteral(
"delay")))
48 uint delay = Details.value(QStringLiteral(
"delay")).toInt(&ok);
49 if (ok && (delay > 0))
52 m_shutdownDelay = delay;
56 LOG(VB_GENERAL, LOG_WARNING, QStringLiteral(
"Failed to parse meaningful value for delay (>0)"));
73 return QStringList() << tr(
"System started") << tr(
"Shutdown delay %1").arg(m_shutdownDelay);
97 return TorcInput::event(Event);
TorcLocalContext * gLocalContext
int GetEvent(void)
Return the Torc action associated with this event.
static Type TorcEventType
Register TorcEventType with QEvent.
A general purpose event object.
#define LOG(_MASK_, _LEVEL_, _STRING_)
void AddObserver(QObject *Observer)
brief Register the given object to receive events.
void SetShutdownDelay(uint Delay)
void RemoveObserver(QObject *Observer)
brief Deregister the given object.