Main Page   Class Hierarchy   Compound List   File List   Compound Members  

audiomanager.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 _AUDIOMANAGER_H
00024 #define _AUDIOMANAGER_H
00025 
00026 #include <qmap.h>
00027 #include <qstring.h>
00028 #include <qobject.h>
00029 
00030 class QVMixerPlugin;
00031 
00032 class AudioManager : public QObject
00033 {
00034         Q_OBJECT
00035 
00036 public:
00037     bool muted();
00038     int volumeLeft();
00039     int volumeRight();    
00040 
00041     void scanPlugins();
00042     void rescanPlugins();
00043     QVMixerPlugin *plugin();
00044 
00045 public slots:
00046     int setVolume(int left, int right);
00047     int setVolume(int vol);  // sets left and right together
00048     int setMuted(bool mute);
00049 
00050 signals:
00051     void volumeChanged(int left, int right);
00052 
00053 protected:
00054     friend class QtVision;
00055     AudioManager(QtVision *qtv);
00056     ~AudioManager();
00057 
00058 private:
00059     QVMixerPlugin *_mixer;
00060     QString _selectedMixer;
00061     QtVision *_qtv;
00062 };
00063 
00064 
00065 
00066 #endif
00067 

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