class ChannelScanner

Channel scanner backend. More...

Definition#include <channelscanner.h>
InheritsQObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Protected Methods

Protected Slots


Detailed Description

Channel scanner backend.

 ChannelScanner ( QObject *parent=0, const char *name=0 )

ChannelScanner

 ~ChannelScanner ()

~ChannelScanner

[virtual]

void  setDevice ( V4LDev *device )

setDevice

V4LDevdevice ()

device

[const]

void  setStore ( ChannelStore *store )

setStore

ChannelStorestore ()

store

[const]

bool  loadRegionFile ( const QString &filename )

loadRegionFile

Loads an XML region definition using ChannelScannerRegion.

Channelchannel ()

channel

[const]

Returns the last channel found (or 0 if we haven't found one).

void  scan ()

scan

[slot]

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.

void  started ()

started

[signal]

Emitted when we start scanning.

void  progress ( int )

progress

[signal]

Emitted when we make one percent of progress.

void  done ()

done

[signal]

Emitted when the scan is complete.

void  done ( bool success )

done

[signal]

Emitted when the scan is complete.

Parameters:
successtrue iff we found any channels.

void  foundChannel ()

foundChannel

[signal]

Emitted whenever we find a channel.

bool  first ()

first

[protected]

Prepare for a scan. Returns true if we're set to go.

bool  next ()

next

[protected]

Advance the scan by one. Returns true if we can continue, and false if we hit the end of the range.

bool  last ()

last

[protected]

Tidy up after the full range has been scanned.

bool  scanCurrent ()

scanCurrent

[protected]

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.

bool  regionFirst ()

regionFirst

[protected]

Initialise the frequency according to the region settings.

bool  regionNext ()

regionNext

[protected]

Advance the frequency according to the region settings.

void  addChannel ()

addChannel

[protected slots slot]

Adds the current frequency as a channel.

void  scanChunk ()

scanChunk

[protected slots slot]

Scans a chunk of the frequency range, then schedulers a timer to call itself to process the next chunk.