mpxplugins/viewplugins/views/audioeffectsview/inc/mpxaudioeffectsmodel.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Audio effects model implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MPXAUDIOEFFECTSMODEL_H
       
    20 #define MPXAUDIOEFFECTSMODEL_H
       
    21 
       
    22 // INCLUDES
       
    23 
       
    24 // SYSTEM INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <f32file.h>
       
    27 #include <aknViewAppUi.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CAknViewAppUi;
       
    31 class CMsEqualizerHelper;
       
    32 class CEikStatusPane;
       
    33 class CMPXAudioEffectProperties;
       
    34 class CMPXAudioEffectEngine;
       
    35 class MMPXPlaybackUtility;
       
    36 
       
    37 /**
       
    38 *  CMPXAudioEffectsModel, Model class for audio settings 
       
    39 *  
       
    40 *  @lib mpxaudioeffectsview.dll
       
    41 *  @since Series 60 3.0
       
    42 */
       
    43 NONSHARABLE_CLASS(CMPXAudioEffectsModel) : public CBase
       
    44     {
       
    45 public:
       
    46     friend class CMPXAudioEffectsItems;
       
    47 
       
    48 public: // accessors
       
    49     
       
    50     /**
       
    51     * Virtual Destructor
       
    52     */
       
    53     virtual	~CMPXAudioEffectsModel();
       
    54     
       
    55     /**
       
    56     * Two-phased constructor
       
    57     *
       
    58     * @param aEngine Audio effect engine 
       
    59     * @return CMPXAudioEffectsModel
       
    60     */
       
    61 	static CMPXAudioEffectsModel* NewL(MMPXPlaybackUtility& aEngine);
       
    62 	
       
    63 	/**
       
    64     * Sets the balance
       
    65     */
       
    66     void SetBalanceL();
       
    67 	
       
    68 	/**
       
    69     * Sets the bass boost
       
    70     */
       
    71 	void SetBassBoostL();
       
    72 	
       
    73 	/**
       
    74     * Sets the stereo widening
       
    75     */
       
    76 	void SetStereoWideningL();
       
    77  	
       
    78  	/**
       
    79     * Sets the reverberation
       
    80     */
       
    81  	void SetReverberationL();
       
    82 
       
    83     /**
       
    84     * Sets the loudness
       
    85     */
       
    86     void SetLoudnessL();
       
    87 
       
    88 private:
       
    89 
       
    90     /**
       
    91     *  2nd-phased constructor
       
    92     */
       
    93     void ConstructL();
       
    94     
       
    95     /**
       
    96     * Constructor
       
    97     *
       
    98     * aEngine Audio effect engine 
       
    99     */
       
   100 	CMPXAudioEffectsModel(MMPXPlaybackUtility& aEngine);
       
   101 
       
   102 private: //Data
       
   103 	
       
   104 	TInt  iBalance; //(From -100 to 100, 0 = center)
       
   105 	TInt  iReverb; //(from 1 to 8, 0 = default)
       
   106 	TBool iStereo; //(default off)
       
   107 	TBool iBassBoost; //(default off)
       
   108     TBuf<32> iPresetName;
       
   109     TBool iLoudness; 
       
   110     MMPXPlaybackUtility& iPlaybackUtility;  // not own
       
   111     CMPXAudioEffectProperties* iProp;
       
   112 	};
       
   113 
       
   114 #endif  // MPXAUDIOEFFECTSMODEL_H
       
   115 
       
   116 // End of File