javauis/mmapi_qt/baseline/inc/cmmamidivolumecontrol.h
changeset 23 98ccebc37403
equal deleted inserted replaced
21:2a9601315dfc 23:98ccebc37403
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 midi player
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMMAMIDIVOLUMECONTROL_H
       
    20 #define CMMAMIDIVOLUMECONTROL_H
       
    21 
       
    22 #include <mmf/common/mmfstandardcustomcommands.h>
       
    23 #include "cmmavolumecontrol.h"
       
    24 
       
    25 class CMMAMIDIPlayer;
       
    26 
       
    27 //  CLASS DEFINITION
       
    28 /*
       
    29 -----------------------------------------------------------------------------
       
    30 
       
    31     DESCRIPTION
       
    32     This class is used for setting volume to audio player
       
    33 
       
    34 -----------------------------------------------------------------------------
       
    35 */
       
    36 NONSHARABLE_CLASS(CMMAMIDIVolumeControl): public CMMAVolumeControl
       
    37 {
       
    38 public:
       
    39     static CMMAMIDIVolumeControl* NewL(CMMAMIDIPlayer* aPlayer);
       
    40 
       
    41 protected:
       
    42     CMMAMIDIVolumeControl(CMMAMIDIPlayer* aPlayer);
       
    43     void ConstructL();
       
    44 
       
    45 
       
    46 public: // from CMMAVolumeControl
       
    47     void DoSetLevelL(TInt aLevel);
       
    48     TInt DoGetLevelL();
       
    49 
       
    50 private:
       
    51     CMMAMIDIPlayer* iPlayer;
       
    52 };
       
    53 
       
    54 #endif // CMMAMIDIVOLUMECONTROL_H