5
* Copyright (C) 2002 George Staikos <staikos@kde.org>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public License
18
* along with this library; see the file COPYING.LIB. If not, write to
19
* the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
25
#ifndef __KDETVXV_PLUGIN_H
26
#define __KDETVXV_PLUGIN_H
31
#include <kdetvsrcplugin.h>
37
* Video source plugin for Xv
39
class KdetvXv : public KdetvSourcePlugin
44
KdetvXv(Kdetv *ktv, QWidget *parent = 0, const char* name = 0);
48
* To get various values.
50
virtual int frequency();
52
virtual bool isTuner();
54
virtual QColor colourKey();
55
virtual Control::ControlList& controls();
57
virtual const QStringList& broadcastedAudioModes();
58
virtual const QString& defaultAudioMode();
60
virtual int probeDevices();
62
virtual bool videoPlaying() const;
66
* Sets the device to use.
68
virtual int setDevice( const QString &dev );
71
* Sets the channel properties.
73
virtual int setChannelProperties(const Channel::PropertyList& properties);
76
* Sets the source to use.
78
virtual int setSource( const QString &src );
83
virtual int setEncoding( const QString &encoding );
86
* Sets the current current channel.
88
virtual void setFrequency( int freq );
93
virtual void setMuted( bool muted );
95
int setAudioMode( const QString& audioMode );
97
virtual void viewResized();
99
virtual int startVideo();
100
virtual int stopVideo();
102
virtual int setVideoDesktop(bool on);
103
virtual bool canVideoDesktop() const;
105
virtual bool canGrabStill() const;
106
virtual bool grabStill( QImage *pix );
109
int doSetEncoding( const QString &encoding, const QString &source );
110
void parseXvEncoding( const QString &xvEncoding, QString &source, QString &encoding );
113
QMap<QString, QString> _encodingsMap;
114
QMap<QString, QString> _sourcesMap;
115
Control::ControlList _controls;