javauis/amms_akn/src_tuner/native/src/cammstunervolumecontrol.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 19 04becd199f91
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
       
     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:  This class is used for setting volume to tuner player
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "CAMMSTunerVolumeControl.h"
       
    22 #include    "CAMMSTunerPlayer.h"
       
    23 
       
    24 #include    <jdebug.h>
       
    25 
       
    26 
       
    27 CAMMSTunerVolumeControl::CAMMSTunerVolumeControl(CAMMSTunerPlayer* aTunerPlayer)
       
    28         : CMMAVolumeControl(aTunerPlayer)
       
    29 {
       
    30     iTunerPlayer = aTunerPlayer;
       
    31 }
       
    32 
       
    33 CAMMSTunerVolumeControl* CAMMSTunerVolumeControl::NewL(CAMMSTunerPlayer* aTunerPlayer)
       
    34 {
       
    35     DEBUG("CAMMSTunerVolumeControl::NewL +");
       
    36     CAMMSTunerVolumeControl* self = new(ELeave) CAMMSTunerVolumeControl(aTunerPlayer);
       
    37 
       
    38     CleanupStack::PushL(self);
       
    39     self->ConstructL();
       
    40     CleanupStack::Pop();
       
    41 
       
    42     return self;
       
    43 }
       
    44 
       
    45 void CAMMSTunerVolumeControl::DoSetLevelL(TInt aLevel)
       
    46 {
       
    47     DEBUG_INT("CAMMSTunerVolumeControl::DoSetLevelL, aLevel = %d", aLevel);
       
    48     // TunerPlayer does not currently have SetVolumeL method
       
    49     User::Invariant();
       
    50 }
       
    51 
       
    52 //  End of File