javauis/amms_akn/mmacontrol/inc/cammsbasedistanceattenuationcontrol.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:  Controls how the sound is attenuated with its distance.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMMSBASEDISTANCEATTENUATIONCONTROL_H
       
    20 #define CAMMSBASEDISTANCEATTENUATIONCONTROL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include "cammscontrol.h"
       
    25 
       
    26 // CONSTANTS
       
    27 _LIT(KAMMSBaseDistanceAttenuationControl, "DistanceAttenuationControl");
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *
       
    33 *  Base class for the Distance Attenuation effect.
       
    34 *  This class delegates Distance Attenuation effect method calls to
       
    35 *  to corresponding control.
       
    36 *
       
    37 *
       
    38 *  @since 5.1
       
    39 */
       
    40 NONSHARABLE_CLASS(CAMMSBaseDistanceAttenuationControl): public CAMMSControl
       
    41 {
       
    42 public:  //destructor
       
    43     /**
       
    44     * Destructor.
       
    45     */
       
    46     ~CAMMSBaseDistanceAttenuationControl();
       
    47 
       
    48 public: // New functions
       
    49 
       
    50     virtual void SetParametersL(
       
    51         TInt/* aMinDistance*/,
       
    52         TInt /*aMaxDistance*/,
       
    53         TBool /*aMuteAfterMax*/,
       
    54         TInt /*aRolloffFactor*/) = 0;
       
    55 
       
    56 public:
       
    57     const TDesC& ClassName() const  = 0;
       
    58 
       
    59 protected:
       
    60     /**
       
    61     * C++ default constructor, protected to allow access from derived class
       
    62     * @param aPlayer Player that has this control.
       
    63     */
       
    64     CAMMSBaseDistanceAttenuationControl(CMMAPlayer* aPlayer);
       
    65 
       
    66 };
       
    67 
       
    68 #endif // CAMMSBASEDISTANCEATTENUATIONCONTROL_H
       
    69 
       
    70