fmradio/fmradio/inc/fmradiocontroleventobserverimpl.h
branchRCL_3
changeset 20 93c594350b9a
parent 0 f3d95d9c00ab
equal deleted inserted replaced
19:cce62ebc198e 20:93c594350b9a
       
     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:  Declaration of class CFMRadioControlEventObserverImpl. 
       
    15 *               Provides the implementation for the control event observer.
       
    16 * 
       
    17 */
       
    18 
       
    19 #ifndef FMRADIOCONTROLEVENTOBSERVERIMPL_H_
       
    20 #define FMRADIOCONTROLEVENTOBSERVERIMPL_H_
       
    21 
       
    22 #include <fmradiointernalpskeys.h>
       
    23 
       
    24 #include "fmradiopropertyobserver.h"
       
    25 #include "fmradioaudioutils.hrh"
       
    26 #include "fmradiocontroleventobserver.h"
       
    27 
       
    28 class MFMRadioControlEventObserver;
       
    29 class CFMRadioAppUi;
       
    30 
       
    31 class CFMRadioControlEventObserverImpl : public CBase, public MFMRadioControlEventObserver
       
    32     {
       
    33     public:
       
    34         /**
       
    35          * Static constructor.
       
    36          */
       
    37         static CFMRadioControlEventObserverImpl* NewL( CFMRadioAppUi& aAppUi );
       
    38         
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         ~CFMRadioControlEventObserverImpl();
       
    43         
       
    44         void StepToChannelL( TFMRadioTuneDirection aDirection );
       
    45         void SetChannelL( TInt aChannelId );
       
    46         void SeekL( TFMRadioTuneDirection aDirection );
       
    47         void StepToFrequencyL( TFMRadioTuneDirection aDirection );
       
    48         void SetFrequencyL( TUint32 aFreq );
       
    49         void AdjustVolumeL( TFMRadioVolumeSetDirection aDirection );
       
    50         void MuteL( TBool aMute );
       
    51         void PlayL( TBool aDownPressed );
       
    52         void PauseL(TBool aDownPressed );
       
    53         void PausePlayL( TBool aDownPressed );
       
    54         void StopL( TBool aDownPressed );
       
    55         void ForwardL( TBool aDownPressed );
       
    56         void FastForwardL( TBool aDownPressed );
       
    57         void BackwardL( TBool aDownPressed );
       
    58         void RewindL( TBool aDownPressed );
       
    59         void ChannelUpL( TBool aDownPressed );
       
    60         void ChannelDownL( TBool aDownPressed );
       
    61         void VolumeUpL( TBool aDownPressed );
       
    62         void VolumeDownL( TBool aDownPressed );
       
    63         void ChangeViewL(TUid aViewId, TBool aForceChange);
       
    64         void SetAudioOutputDestinationL(TFMRadioOutputDestination aDestination);
       
    65         void AnswerEndCallL();
       
    66 
       
    67     private: //Methods
       
    68     	CFMRadioControlEventObserverImpl(CFMRadioAppUi& aAppUi);
       
    69         void ConstructL();
       
    70 
       
    71     private:
       
    72     	CFMRadioAppUi& iAppUi;
       
    73     };
       
    74 #endif /*FMRADIOCONTROLEVENTOBSERVERIMPL_H_*/