Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ChannelScanner Class Reference

Channel scanner backend. More...

#include <channelscanner.h>

Inheritance diagram for ChannelScanner::

List of all members.

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)
QVSourcePlugindevice () const
void setStore (ChannelStore *store)
ChannelStorestore () const
bool loadRegionFile (const QString &filename)
Channelchannel () const

Protected Slots

void addChannel ()
void scanChunk ()

Protected Methods

bool first ()
bool next ()
bool last ()
bool scanCurrent ()
bool regionFirst ()
bool regionNext ()

Detailed Description

Channel scanner backend.

Author:
Richard Moore, rich@kde.org


Member Function Documentation

bool ChannelScanner::loadRegionFile const QString & filename
 

Loads an XML region definition using ChannelScannerRegion.

Channel* ChannelScanner::channel const [inline]
 

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

void ChannelScanner::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 ChannelScanner::started [signal]
 

Emitted when we start scanning.

void ChannelScanner::progress int [signal]
 

Emitted when we make one percent of progress.

void ChannelScanner::done [signal]
 

Emitted when the scan is complete.

void ChannelScanner::done bool success [signal]
 

Emitted when the scan is complete.

Parameters:
success   true iff we found any channels.

void ChannelScanner::foundChannel [signal]
 

Emitted whenever we find a channel.

bool ChannelScanner::first [protected]
 

Prepare for a scan.

Returns true if we're set to go.

bool ChannelScanner::next [protected]
 

Advance the scan by one.

Returns true if we can continue, and false if we hit the end of the range.

bool ChannelScanner::last [protected]
 

Tidy up after the full range has been scanned.

bool ChannelScanner::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 ChannelScanner::regionFirst [protected]
 

Initialise the frequency according to the region settings.

bool ChannelScanner::regionNext [protected]
 

Advance the frequency according to the region settings.

void ChannelScanner::addChannel [protected, slot]
 

Adds the current frequency as a channel.

void ChannelScanner::scanChunk [protected, slot]
 

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


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001