Main Page   Class Hierarchy   Compound List   File List   Compound Members  

qtvision_xv.h

00001 // -*- c++ -*-
00002 
00003 /*
00004  *
00005  * Copyright (C) 2002 George Staikos <staikos@kde.org>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public License
00018  * along with this library; see the file COPYING.LIB.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 
00023 
00024 
00025 #ifndef __QVXV_PLUGIN_H
00026 #define __QVXV_PLUGIN_H
00027 
00028 #include <qwidget.h>
00029 #include <qvsrcplugin.h>
00030 #include <kxv.h>
00031 
00035 class QtVisionXv : public QVSourcePlugin
00036 {
00037     Q_OBJECT
00038 
00039 public:
00040     QtVisionXv(QtVision *qtv, QWidget *parent = 0, const char* name = 0);
00041     virtual ~QtVisionXv();
00042 
00046     virtual int brightness();
00047     virtual int colour();
00048     virtual int hue();
00049     virtual int contrast();
00050     virtual int whiteness();
00051     virtual int frequency();
00052     virtual bool muted();
00053     virtual int tunerMode();
00054     virtual bool isTuner();
00055     virtual int signal();
00056     virtual QColor colourKey();
00057 
00058     virtual int probeDevices();
00059 
00060     virtual bool videoPlaying() const;
00061 
00062 public slots:
00066     virtual int setDevice( const QString &dev );
00067 
00071     virtual int setSource( const QString &src );
00072 
00076     virtual void setTunerMode( int mode );
00077 
00081     virtual void setFrequency( int freq );
00082 
00086     virtual void setMuted( bool muted );
00087 
00088     virtual void setBrightness(int val);
00089     virtual void setColour(int val);
00090     virtual void setHue(int val);
00091     virtual void setContrast(int val);
00092     virtual void setWhiteness(int val);
00093 
00094     virtual void viewResized(int w, int h);
00095 
00096     virtual int startVideo();
00097     virtual int stopVideo();
00098     
00099     virtual int setVideoDesktop(bool on);
00100     virtual bool canVideoDesktop() const;
00101 
00102     virtual bool canGrabStill() const;
00103     virtual bool grabStill( QPixmap *pix );
00104 
00105 public:
00106     KXv *xvHandle;
00107     KXvDevice *xvDevice;
00108 
00109 };
00110 
00111 #endif
00112 

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001