36#include <QCoreApplication>
39 (QEvent::Type) QEvent::registerEventType();
41 (QEvent::Type) QEvent::registerEventType();
43 (QEvent::Type) QEvent::registerEventType();
45 (QEvent::Type) QEvent::registerEventType();
47 (QEvent::Type) QEvent::registerEventType();
49 (QEvent::Type) QEvent::registerEventType();
51 (QEvent::Type) QEvent::registerEventType();
53 (QEvent::Type) QEvent::registerEventType();
55 (QEvent::Type) QEvent::registerEventType();
57 (QEvent::Type) QEvent::registerEventType();
59 (QEvent::Type) QEvent::registerEventType();
61 (QEvent::Type) QEvent::registerEventType();
72 QCoreApplication::postEvent(
dest, e);
79 QCoreApplication::postEvent(
dest, e);
87 e->ConfigurableValue(spp);
88 QCoreApplication::postEvent(
dest, e);
95 QObject::deleteLater();
116 QString msg = tr(
"Scanning");
117 if (!status.isEmpty())
118 msg = QString(
"%1 %2").arg(msg, status);
166 if (scanEvent !=
nullptr)
virtual void HandleEvent(const ScannerEvent *)=0
void StatusSignalToNoise(const SignalMonitorValue &val) override
void ScanPercentComplete(int pct)
void ScanAppendTextToLog(const QString &status)
void StatusRotorPosition(const SignalMonitorValue &val) override
void StatusChannelTuned(const SignalMonitorValue &val) override
Signal to be sent with change change status.
void StatusSignalLock(const SignalMonitorValue &val) override
Signal to be sent as true when it is safe to begin or continue recording, and false if it may not be ...
void ScanUpdateStatusTitleText(const QString &status)
ChannelScanner * m_channelScanner
void StatusSignalStrength(const SignalMonitorValue &val) override
Signal to be sent with an actual signal value.
virtual void deleteLater(void)
void ScanErrored(const QString &error)
void ScanUpdateStatusText(const QString &status)
void customEvent(QEvent *event) override
static const Type kSetStatusSignalLock
static const Type kScanShutdown
static const Type kSetStatusTitleText
static const Type kSetStatusSignalToNoise
static const Type kSetStatusText
static const Type kAppendTextToLog
static const Type kSetStatusRotorPosition
static const Type kSetStatusChannelTuned
static const Type kScanComplete
static const Type kSetPercentComplete
static const Type kSetStatusSignalStrength
static const Type kScanErrored
int GetValue() const
Returns the value.
int GetNormalizedValue(int newmin, int newmax) const
Returns the value normalized to the [newmin, newmax] range.
static constexpr int8_t TRANSPORT_PCT
Percentage to set to after the transports have been scanned.
void post_event(QObject *dest, QEvent::Type type, int val)
Percentage to set to after the first tune.