bassboostbase.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : BassBoostBase.h
00004 *  Part of     : Effects Framework
00005 *  Description : This is the definition of the Bass Boost effect class.
00006 *  Version     : %version: 6 %
00007 *
00008 *  Copyright © 2006 Nokia Corporation.
00009 *  This material, including documentation and any related
00010 *  computer programs, is protected by copyright controlled by
00011 *  Nokia Corporation. All rights are reserved. Copying,
00012 *  including reproducing, storing, adapting or translating, any
00013 *  or all of this material requires the prior written consent of
00014 *  Nokia Corporation. This material also contains confidential
00015 *  information which may not be disclosed to others without the
00016 *  prior written consent of Nokia Corporation.
00017 * ==============================================================================
00018 */
00019 
00020 #ifndef BASSBOOSTBASE_H
00021 #define BASSBOOSTBASE_H
00022 
00023 // INCLUDES
00024 
00025 #include <e32base.h>
00026 #include <AudioEffectBase.h>
00027 #include <BassBoostData.h>
00028 #include <MCustomInterface.h>
00029 
00030 const TUid KUidBassBoostEffect = {0x10203827};
00031 
00032 // FORWARD DELCARATION
00033 class CMdaAudioConvertUtility;
00034 class CMdaAudioPlayerUtility;
00035 class CMdaAudioRecorderUtility;
00036 class CMdaAudioInputStream;
00037 class CMdaAudioOutputStream;
00038 class CMdaAudioToneUtility;
00039 class CCustomCommandUtility;
00040 class CCustomInterfaceUtility;
00041 class CMMFDevSound;
00042 class CMidiClientUtility;
00043 class CDrmPlayerUtility;
00044 class CVideoPlayerUtility;
00045 
00046 // CLASS DECLARATION
00047 
00055 class CBassBoost : public CAudioEffect
00056         {
00057 
00058         public:         //New Functions
00059 
00067                 IMPORT_C static CBassBoost* NewL( CMMFDevSound& aDevSound, TBool aEnable = EFalse );
00068 
00076                 IMPORT_C static CBassBoost* NewL( CMdaAudioConvertUtility& aUtility, TBool aEnable = EFalse );
00077 
00085                 IMPORT_C static CBassBoost* NewL( CMdaAudioInputStream& aUtility, TBool aEnable = EFalse );
00086 
00094                 IMPORT_C static CBassBoost* NewL( CMdaAudioOutputStream& aUtility, TBool aEnable = EFalse );
00095 
00103                 IMPORT_C static CBassBoost* NewL( CMdaAudioPlayerUtility& aUtility, TBool aEnable = EFalse );
00104 
00114                 IMPORT_C static CBassBoost* NewL( CMdaAudioRecorderUtility& aUtility, TBool aRecordStream, TBool aEnable = EFalse );
00115 
00123                 IMPORT_C static CBassBoost* NewL( CMdaAudioToneUtility& aUtility, TBool aEnable = EFalse );
00124 
00132                 IMPORT_C static CBassBoost* NewL( CCustomCommandUtility* aUtility, TBool aEnable = EFalse );
00133 
00141                 IMPORT_C static CBassBoost* NewL( MCustomInterface& aCustomInterface, TBool aEnable = EFalse );
00142 
00150                 IMPORT_C static CBassBoost* NewL( CMidiClientUtility& aUtility, TBool aEnable = EFalse );
00151 
00158                 IMPORT_C static CBassBoost* NewL( CDrmPlayerUtility& aUtility, TBool aEnable = EFalse );
00159 
00166                 IMPORT_C static CBassBoost* NewL( CVideoPlayerUtility& aUtility, TBool aEnable = EFalse );
00167 
00172                 IMPORT_C virtual ~CBassBoost();
00173 
00174         public: // functions from base class
00175 
00176                 /*
00177                 * From CAudioEffect
00178         * Get the unique identifier of the audio effect
00179         * 
00180         * @return Unique identifier
00181         */
00182                 IMPORT_C TUid Uid() const;
00183 
00184     protected:  // Functions from base classes
00185 
00192                 IMPORT_C const TDesC8& DoEffectData();
00193 
00201         IMPORT_C void SetEffectData( const TDesC8& aEffectDataBuffer );
00202 
00203         protected:
00204 
00211                 IMPORT_C CBassBoost();
00212 
00213         protected:
00214 
00215                 // BassBoost data structure
00216                 TEfBassBoostData iBassBoostData;
00217                 // Data package sent to server
00218                 TEfBassBoostDataPckg iDataPckgTo;
00219                 // Data package received from server
00220                 TEfBassBoostDataPckg iDataPckgFrom;
00221 
00222     protected:    // Friend classes
00223 
00224                 friend class CBassBoostMessageHandler;
00225         };
00226 
00227 // of BASSBOOSTBASE_H
00228 #endif
00229 
00230 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top