Main Page   Class Hierarchy   Compound List   File List   Compound Members  

QtVision Class Reference

A reusable TV object. More...

#include <qtvision.h>

Inheritance diagram for QtVision::

QtVisionIface List of all members.

Public Slots

bool tryAutoStart ()
virtual void selectDevice ()
void setDevice (QVSourcePlugin *dev)
virtual void setSource (const QString &src)
virtual void stopDevice ()
void setChannel (Channel *channel)
void setChannel (int channel)
virtual void channelDown ()
virtual void channelUp ()
virtual void previousChannel ()
virtual void volumeMute ()
virtual void volumeUp ()
virtual void volumeDown ()
virtual void setVolume (int left, int right)
virtual void setVolume (int vol)
virtual void start ()
virtual void stop ()
virtual void startCapture ()
virtual void snapshot ()
virtual void startVideo ()
virtual void stopVideo ()
virtual void settings ()
virtual int launchWizard ()
void setTunerMode (int mode)
virtual void setBrightness (int val)
virtual void setColour (int val)
virtual void setHue (int val)
virtual void setContrast (int val)
virtual void setWhiteness (int val)
virtual void setVideoDesktop (bool on)
virtual bool doMigration ()
virtual void importDefaultChannels ()
virtual bool importLegacyChannels ()
virtual void openChannelFile ()
virtual void importChannelFile ()
virtual void openChannelFile (const QString &filename)
virtual void processNumberKeyEvent (int)

Signals

void volumeChanged (int left, int right)
void volumeMuted (bool)
void channelChanged (int num)
void channelChanged (const QString &name)
void channelChanged (Channel *channel)
void deviceChanged (QVSourcePlugin *dev)
void channelText (const QString &)

Public Methods

 QtVision (QObject *parent=0, const char *name=0)
 ~QtVision ()
QtVisionViewscreen ()
DCOPRef channelStoreIface ()
DCOPRef channelIface ()
QString channelName () const
int channelNumber () const
bool hasDevice () const
QVSourcePlugindevice () const
ViewManagerviews () const
AudioManager * audioManager () const
OSDManagerosdManager () const
MiscManagermiscManager () const
StatusManagerstatusManager () const
PluginFactorypluginFactory () const
ChannelStorechannels ()
ConfigDataconfig () const
KConfig * configHandle () const
virtual QtVisionViewcreateScreen (QWidget *parent=0, const char *name=0)
int brightness ()
int colour ()
int hue ()
int contrast ()
int whiteness ()
QColor colourKey ()
Channelchannel ()

Protected Methods

void timerEvent (QTimerEvent *ev)

Detailed Description

A reusable TV object.


Member Function Documentation

QtVisionView* QtVision::screen [inline]
 

Returns the current screen widget.

DCOPRef QtVision::channelStoreIface [virtual]
 

Returns a DCOP reference to the ChannelStore.

Reimplemented from QtVisionIface.

DCOPRef QtVision::channelIface [virtual]
 

Returns a DCOP reference to the current Channel.

Reimplemented from QtVisionIface.

QString QtVision::channelName const [virtual]
 

Returns the name of the current Channel.

Reimplemented from QtVisionIface.

int QtVision::channelNumber const [virtual]
 

Returns the number of the current Channel.

Reimplemented from QtVisionIface.

bool QtVision::hasDevice const [inline]
 

Returns true iff we have a video device.

QVSourcePlugin* QtVision::device const [inline]
 

Returns the current video device (or 0).

ViewManager* QtVision::views const [inline]
 

Returns the manager controlling the views.

AudioManager* QtVision::audioManager const [inline]
 

Returns the audio manager.

OSDManager* QtVision::osdManager const [inline]
 

Returns the OSD manager.

MiscManager* QtVision::miscManager const [inline]
 

Returns the miscellaneous plugin manager.

StatusManager* QtVision::statusManager const [inline]
 

Returns the status plugin manager.

PluginFactory* QtVision::pluginFactory const [inline]
 

Returns the plugin factory.

ChannelStore* QtVision::channels [inline]
 

Returns current ChannelStore.

ConfigData* QtVision::config const [inline]
 

Returns the current configuration.

KConfig* QtVision::configHandle const [inline]
 

Returns the KConfig objectg for this instance.

virtual QtVisionView* QtVision::createScreen QWidget * parent = 0,
const char * name = 0
[virtual]
 

Factory method for creating the screen the picture will be displayed on.

This widget returned will depend on the facilities supported by the TV card and X server (eg. there will be special screen widgets for Xv support). Note that this widget is automatically made the screen for this QtVision object.

int QtVision::brightness
 

To get various values.

bool QtVision::tryAutoStart [slot]
 

Try to start using the previous device.

Returns true iff it succeeds.

virtual void QtVision::selectDevice [virtual, slot]
 

Ask the user to select a device.

Reimplemented from QtVisionIface.

void QtVision::setDevice QVSourcePlugin * dev [slot]
 

Set the current video device.

virtual void QtVision::setSource const QString & src [virtual, slot]
 

Sets the source to use.

Reimplemented from QtVisionIface.

virtual void QtVision::stopDevice [virtual, slot]
 

Stop the current device and dispose of it.

void QtVision::setChannel Channel * channel [slot]
 

Sets the current current channel.

void QtVision::setChannel int channel [slot]
 

Overloaded version of the above method.

virtual void QtVision::channelDown [virtual, slot]
 

Changes the channel to the one preceding the current, wrapping round if we are currently showing the first channel.

Reimplemented from QtVisionIface.

virtual void QtVision::channelUp [virtual, slot]
 

Changes the channel to the one following the current, wrapping round if we are currently showing the last channel.

Reimplemented from QtVisionIface.

virtual void QtVision::previousChannel [virtual, slot]
 

Recalls the previous channel.

Reimplemented from QtVisionIface.

virtual void QtVision::volumeMute [virtual, slot]
 

Mutes and unmutes the sound.

Reimplemented from QtVisionIface.

virtual void QtVision::volumeUp [virtual, slot]
 

Increases the volume.

Reimplemented from QtVisionIface.

virtual void QtVision::volumeDown [virtual, slot]
 

Decreases the volume.

Reimplemented from QtVisionIface.

virtual void QtVision::setVolume int left,
int right
[virtual, slot]
 

Sets the volume.

Reimplemented from QtVisionIface.

virtual void QtVision::setVolume int vol [virtual, slot]
 

Sets the volume.

Reimplemented from QtVisionIface.

virtual void QtVision::start [virtual, slot]
 

Starts capture.

Reimplemented from QtVisionIface.

virtual void QtVision::stop [virtual, slot]
 

Stops capture.

Reimplemented from QtVisionIface.

virtual void QtVision::startVideo [virtual, slot]
 

Starts video stream, leaving the audio alone.

Reimplemented from QtVisionIface.

virtual void QtVision::stopVideo [virtual, slot]
 

Stops video stream, leaving the audio alone.

Reimplemented from QtVisionIface.

virtual void QtVision::settings [virtual, slot]
 

Launches the settings dialog.

Reimplemented from QtVisionIface.

virtual int QtVision::launchWizard [virtual, slot]
 

Launches the channel wizard and returns the dialog return value.

Reimplemented from QtVisionIface.

void QtVision::setTunerMode int mode [slot]
 

Sets the tuner mode (PAL, NTSC etc.).

virtual void QtVision::setBrightness int val [virtual, slot]
 

Set various attributes on the current device.

virtual void QtVision::setVideoDesktop bool on [virtual, slot]
 

Set video desktop on or off.

Reimplemented from QtVisionIface.

virtual bool QtVision::doMigration [virtual, slot]
 

Do migration from kwintv to qtvision.

virtual void QtVision::importDefaultChannels [virtual, slot]
 

Shows the dialog to allow the user to import default channel lists.

Reimplemented from QtVisionIface.

virtual bool QtVision::importLegacyChannels [virtual, slot]
 

Imports the old KWinTV channels if they exist.

virtual void QtVision::openChannelFile [virtual, slot]
 

Open a file dialog to allow the user to choose a new channel file.

Reimplemented from QtVisionIface.

virtual void QtVision::importChannelFile [virtual, slot]
 

Open a file dialog to allow the user to add the channels from a file to the channel list.

virtual void QtVision::openChannelFile const QString & filename [virtual, slot]
 

Open the provided filename and read in the channels.

Reimplemented from QtVisionIface.

virtual void QtVision::processNumberKeyEvent int [virtual, slot]
 

Process the press of a number key (0-9) from keyboard, or lirc.

void QtVision::volumeChanged int left,
int right
[signal]
 

Emitted when the volume changes.

void QtVision::volumeMuted bool [signal]
 

Emitted whenever the volume is mutted.

void QtVision::channelChanged int num [signal]
 

Emitted when the current channel changes.

void QtVision::channelChanged const QString & name [signal]
 

Emitted when the current channel changes.

void QtVision::channelChanged Channel * channel [signal]
 

Emitted when the current channel changes.

void QtVision::deviceChanged QVSourcePlugin * dev [signal]
 

Emitted when the video device changes.

void QtVision::channelText const QString & [signal]
 

Emitted when the channel text changes during setting channel with numeric keys.


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