Main Page   Class Hierarchy   Compound List   File List   Compound Members  

osdmanager.h

00001 /*
00002  *
00003  * Copyright (C) 2002 George Staikos <staikos@kde.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 
00022 
00023 #ifndef _OSDMANAGER_H
00024 #define _OSDMANAGER_H
00025 
00026 #include <qstring.h>
00027 #include <qobject.h>
00028 #include <qcolor.h>
00029 
00030 class QVOSDPlugin;
00031 class QtVision;
00032 
00036 class OSDManager : public QObject
00037 {
00038         Q_OBJECT
00039 
00040 protected:
00041         friend class QtVision;
00042         OSDManager(QtVision *qtv, QWidget *w);
00043         virtual ~OSDManager();
00044 
00045 public slots:
00046         void displayMisc(const QString& text);
00047         void displayChannel(int channel, const QString& name);
00048         void displayMuted(bool muted);
00049         void displayVolume(int vol);
00050         void displayVolume(int left, int right);
00051         /* This is for closed captioning only. Do NOT use it for anything else.  */
00052         void displayCC(const QString& text);
00053         void scanPlugins();
00054         void rescanPlugins();
00055 
00056         QColor colourKey() const;
00057         void setColourKey(QColor key);
00058 
00059         QVOSDPlugin *plugin();
00060 
00061 signals:
00062         void colourKeyChanged(QColor);
00063 
00064 private:
00065         QVOSDPlugin *_osd;
00066         QWidget *_widget;
00067         QColor _colourKey;
00068         QtVision *_qtv;
00069 };
00070 
00071 
00072 
00073 #endif
00074 

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