javauis/amms_akn/mmacontrol/inc/cammsaudiolocationcontrol.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     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 CAMMSAUDIOLOCATIONCONTROL_H
       
    20 #define CAMMSAUDIOLOCATIONCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <SourceLocationBase.h>
       
    25 #include <CustomCommandUtility.h>
       
    26 #include "cammslocationcontrol.h"
       
    27 
       
    28 // CONSTANTS
       
    29 _LIT(KAMMSAudioLocationControl, "LocationControl");
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *
       
    35 *  Controls for the Location Control effect for the Audio source.
       
    36 *  This class delegates Location Control effect method calls to
       
    37 *  CSourceLocation.
       
    38 *
       
    39 *
       
    40 *  @since 3.0
       
    41 */
       
    42 NONSHARABLE_CLASS(CAMMSAudioLocationControl): public CAMMSLocationControl
       
    43 {
       
    44 public:  // Constructors and destructor
       
    45 
       
    46     /**
       
    47     * Two-phased constructor.
       
    48     * @param aPlayer Player that has this control.
       
    49     */
       
    50     static CAMMSAudioLocationControl* NewLC(CMMAPlayer* aPlayer);
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CAMMSAudioLocationControl();
       
    56 
       
    57 public: // Functions from base classes
       
    58     const TDesC& ClassName() const;
       
    59 
       
    60     /**
       
    61     * Prepares the Control.
       
    62     */
       
    63     void PrepareControlL();
       
    64 
       
    65     /**
       
    66     * Deallocates the Control.
       
    67     */
       
    68     void DeallocateControl();
       
    69 
       
    70 private:
       
    71     /**
       
    72     * C++ constructor.
       
    73     * @param aPlayer Player that has this control.
       
    74     */
       
    75     CAMMSAudioLocationControl(CMMAPlayer* aPlayer);
       
    76 };
       
    77 
       
    78 #endif // CAMMSAUDIOLOCATIONCONTROL_H