#include <channelscanner.h>
Inheritance diagram for ChannelScanner::
Public Slots | |
void | scan () |
Signals | |
void | started () |
void | progress (int) |
void | done () |
void | done (bool success) |
void | foundChannel () |
Public Methods | |
ChannelScanner (QObject *parent=0, const char *name=0) | |
virtual | ~ChannelScanner () |
void | setDevice (QVSourcePlugin *device) |
QVSourcePlugin * | device () const |
void | setStore (ChannelStore *store) |
ChannelStore * | store () const |
bool | loadRegionFile (const QString &filename) |
Channel * | channel () const |
Protected Slots | |
void | addChannel () |
void | scanChunk () |
Protected Methods | |
bool | first () |
bool | next () |
bool | last () |
bool | scanCurrent () |
bool | regionFirst () |
bool | regionNext () |
|
Loads an XML region definition using ChannelScannerRegion.
|
|
Returns the last channel found (or 0 if we haven't found one).
|
|
Scans the current device and stores any channels found in the current store. This slot only kicks of the scan, so it returns quickly, the actual scanning is done with timers so the GUI doesn't block. |
|
Emitted when we start scanning.
|
|
Emitted when we make one percent of progress.
|
|
Emitted when the scan is complete.
|
|
Emitted when the scan is complete.
|
|
Emitted whenever we find a channel.
|
|
Prepare for a scan. Returns true if we're set to go. |
|
Advance the scan by one. Returns true if we can continue, and false if we hit the end of the range. |
|
Tidy up after the full range has been scanned.
|
|
Scans the current frequency and returns true if a channel is found. Note that this relies on being inside the first(), next(), last() loop and can't just scan an arbitrary place. |
|
Initialise the frequency according to the region settings.
|
|
Advance the frequency according to the region settings.
|
|
Adds the current frequency as a channel.
|
|
Scans a chunk of the frequency range, then schedulers a timer to call itself to process the next chunk.
|