javauis/amms_qt/mmacontrol/inc.emc/cammsemcaudiodopplercontrol.h
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     1 /*
       
     2 * Copyright (c) 2005 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:  Manipulates the settings of an effect called Doppler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSEMCAUDIODOPPLERCONTROL_H
       
    20 #define CAMMSEMCAUDIODOPPLERCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include<SourceDopplerControl.h>
       
    25 #include <DopplerData.h>
       
    26 #include "cammsdopplercontrol.h"
       
    27 
       
    28 #include <cmmaemcaudioplayer.h>
       
    29 
       
    30 using multimedia :: MSourceDopplerControl;
       
    31 using multimedia :: KSourceDopplerEffectControl;
       
    32 
       
    33 
       
    34 // CONSTANTS
       
    35 _LIT(KAMMSEMCAudioDopplerControl, "DopplerControl");
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *
       
    41 *  Controls for the Doppler Control effect for the Audio source.
       
    42 *  This class delegates Doppler Control effect method calls to
       
    43 *  MEffectControl.
       
    44 *
       
    45 *
       
    46 *  @since 5.1
       
    47 */
       
    48 NONSHARABLE_CLASS(CAMMSEMCAudioDopplerControl): public CAMMSDopplerControl
       
    49 {
       
    50 public:  // Constructors and destructor
       
    51 
       
    52     /**
       
    53     * Two-phased constructor.
       
    54     * @param aPlayer Player that has this control.
       
    55     *
       
    56     */
       
    57     static CAMMSEMCAudioDopplerControl* NewLC(CMMAPlayer* aPlayer);
       
    58 
       
    59     /**
       
    60     * Destructor.
       
    61     */
       
    62     ~CAMMSEMCAudioDopplerControl();
       
    63 
       
    64 public: // Functions from base classes
       
    65     const TDesC& ClassName() const;
       
    66 
       
    67     /**
       
    68     * Prepares the Control.
       
    69     */
       
    70     void PrepareControlL();
       
    71 
       
    72     /**
       
    73     * Deallocates the Control.
       
    74     */
       
    75     void DeallocateControl();
       
    76 
       
    77 private:
       
    78     /**
       
    79     * C++ constructor.
       
    80     * @param aPlayer Player that has this control.
       
    81     */
       
    82     CAMMSEMCAudioDopplerControl(CMMAPlayer* aPlayer);
       
    83 
       
    84 
       
    85 public:
       
    86 
       
    87     void SetEnabledL(TBool aDopplerEnabled);
       
    88 
       
    89     TBool Enabled();
       
    90 
       
    91     void SetVelocityCartesianL(TInt aX, TInt aY, TInt aZ);
       
    92 
       
    93     void VelocityCartesian(TInt& aX, TInt& aY, TInt& aZ);
       
    94 
       
    95     void SetVelocitySphericalL(TInt aAzimuth, TInt aElevation,
       
    96                                TInt aRadius);
       
    97 
       
    98 private:
       
    99 
       
   100     CMMAPlayer *iMMAPlayer;
       
   101     /**
       
   102     * EMC SourceDoppler Control
       
   103     */
       
   104     CMultimediaFactory* iFactory;
       
   105     MStreamControl* iStreamControl;
       
   106     MSourceDopplerControl *iMSourceDopplerControl;
       
   107 };
       
   108 
       
   109 #endif // CAMMSEMCAUDIODOPPLERCONTROL_H