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