javauis/amms_qt/mmacontrol/inc.emc/cammsemcaudiolocationcontrol.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     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 virtual location of the SoundSource3D.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSEMCAUDIOLOCATIONCONTROL_H
       
    20 #define CAMMSEMCAUDIOLOCATIONCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include<SourceLocationControl.h>
       
    25 #include <LocationData.h>
       
    26 #include "cammslocationcontrol.h"
       
    27 
       
    28 #include <cmmaemcaudioplayer.h>
       
    29 
       
    30 using multimedia :: MSourceLocationControl;
       
    31 using multimedia :: KSourceLocationEffectControl;
       
    32 
       
    33 // CONSTANTS
       
    34 _LIT(KAMMSEMCAudioLocationControl, "LocationControl");
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 /**
       
    39 *
       
    40 *  Controls for the Location Control effect for the Audio source.
       
    41 *  This class delegates Location Control effect method calls to
       
    42 *  MSourceLocationControl.
       
    43 *
       
    44 *
       
    45 *  @since 5.1
       
    46 */
       
    47 NONSHARABLE_CLASS(CAMMSEMCAudioLocationControl): public CAMMSLocationControl
       
    48 {
       
    49 public:  // Constructors and destructor
       
    50 
       
    51     /**
       
    52     * Two-phased constructor.
       
    53     * @param aPlayer Player that has this control.
       
    54     */
       
    55     static CAMMSEMCAudioLocationControl* NewLC(CMMAPlayer* aPlayer);
       
    56 
       
    57     /**
       
    58     * Destructor.
       
    59     */
       
    60     ~CAMMSEMCAudioLocationControl();
       
    61 
       
    62 public: // Functions from base classes
       
    63     const TDesC& ClassName() const;
       
    64 
       
    65     /**
       
    66     * Prepares the Control.
       
    67     */
       
    68     void PrepareControlL();
       
    69 
       
    70     /**
       
    71     * Deallocates the Control.
       
    72     */
       
    73     void DeallocateControl();
       
    74 
       
    75 private:
       
    76     /**
       
    77     * C++ constructor.
       
    78     * @param aPlayer Player that has this control.
       
    79     */
       
    80     CAMMSEMCAudioLocationControl(CMMAPlayer* aPlayer);
       
    81 
       
    82 
       
    83 public:
       
    84 
       
    85     void SetLocationCartesianL(TInt& aX, TInt& aY, TInt& aZ);
       
    86 
       
    87     void LocationCartesian(TInt& aX, TInt& aY, TInt& aZ);
       
    88 
       
    89     void SetLocationSphericalL(TInt& aAzimuth, TInt& aElevation,
       
    90                                TInt& aRadius);
       
    91 
       
    92 private:
       
    93 
       
    94     CMMAPlayer *iMMAPlayer;
       
    95     /**
       
    96     * EMC SourceLocation Control
       
    97     */
       
    98     CMultimediaFactory* iFactory;
       
    99     MStreamControl* iStreamControl;
       
   100     MSourceLocationControl *iMSourceLocationControl;
       
   101 };
       
   102 
       
   103 #endif // CAMMSEMCAUDIOLOCATIONCONTROL_H