volumefaderinterface.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE project
00002     Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). <thierry.bastian@trolltech.com>
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Lesser General Public
00006     License as published by the Free Software Foundation; either
00007     version 2.1 of the License, or (at your option) version 3, or any
00008     later version accepted by the membership of KDE e.V. (or its
00009     successor approved by the membership of KDE e.V.), Nokia Corporation 
00010     (or its successors, if any) and the KDE Free Qt Foundation, which shall
00011     act as a proxy defined in Section 6 of version 3 of the license.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Lesser General Public License for more details.
00017 
00018     You should have received a copy of the GNU Lesser General Public 
00019     License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00020 
00021 */
00022 
00023 #ifndef PHONON_VOLUMEFADERINTERFACE_H
00024 #define PHONON_VOLUMEFADERINTERFACE_H
00025 
00026 #include "volumefadereffect.h"
00027 #include <QtCore/QObject>
00028 
00029 QT_BEGIN_HEADER
00030 QT_BEGIN_NAMESPACE
00031 
00032 #ifndef QT_NO_PHONON_VOLUMEFADEREFFECT
00033 
00034 namespace Phonon
00035 {
00036 class VolumeFaderInterface
00037 {
00038     public:
00039         virtual ~VolumeFaderInterface() {}
00040 
00041         virtual float volume() const { return 1.0; }
00042         virtual void setVolume(float) {}
00043         virtual Phonon::VolumeFaderEffect::FadeCurve fadeCurve() const {
00044             return VolumeFaderEffect::Fade3Decibel;
00045         }
00046         virtual void setFadeCurve(Phonon::VolumeFaderEffect::FadeCurve) {}
00047         virtual void fadeTo(float, int) {}
00048 };
00049 }
00050 
00051 Q_DECLARE_INTERFACE(Phonon::VolumeFaderInterface, "VolumeFaderInterface4.phonon.kde.org")
00052 
00053 #endif //QT_NO_PHONON_VOLUMEFADEREFFECT
00054 
00055 QT_END_NAMESPACE
00056 QT_END_HEADER
00057 
00058 #endif // PHONON_VOLUMEFADERINTERFACE_H