radioengine/utils/inc/cradioremcontargetimp.h
branchRCL_3
changeset 19 cce62ebc198e
equal deleted inserted replaced
18:1a6714c53019 19:cce62ebc198e
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CRADIOREMCONTARGETIMP_H
       
    19 #define CRADIOREMCONTARGETIMP_H
       
    20 
       
    21 // System includes
       
    22 #include <RemConCallHandlingTargetObserver.h>
       
    23 #include <remconcoreapitargetobserver.h>
       
    24 
       
    25 // User includes
       
    26 #include "cradioremcontarget.h"
       
    27 
       
    28 // Forward declarations
       
    29 class CRemConCallHandlingTarget;
       
    30 class CRemConCoreApiTarget;
       
    31 class CRemConInterfaceSelector;
       
    32 
       
    33 // Class declaration
       
    34 
       
    35 /**
       
    36  * Media key listener
       
    37  */
       
    38 NONSHARABLE_CLASS( CRadioRemConTargetImp ) : public CRadioRemConTarget
       
    39                                            , public MRemConCoreApiTargetObserver
       
    40                                            , public MRemConCallHandlingTargetObserver
       
    41     {
       
    42 public:
       
    43 
       
    44     static CRadioRemConTargetImp* NewL();
       
    45 
       
    46     virtual ~CRadioRemConTargetImp();
       
    47 
       
    48 private:
       
    49 
       
    50 // from base class CRadioRemConTarget
       
    51 
       
    52     void SetControlEventObserver( MRadioControlEventObserver* aControlEventObserver );
       
    53 
       
    54 // from base class MRemConCoreApiTargetObserver
       
    55 
       
    56     void MrccatoCommand( TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct );
       
    57     void MrccatoPlay( TRemConCoreApiPlaybackSpeed aSpeed, TRemConCoreApiButtonAction aButtonAct );
       
    58     void MrccatoTuneFunction( TBool aTwoPart, TUint aMajorChannel, TUint aMinorChannel, TRemConCoreApiButtonAction aButtonAct );
       
    59     void MrccatoSelectDiskFunction( TUint aDisk, TRemConCoreApiButtonAction aButtonAct );
       
    60     void MrccatoSelectAvInputFunction( TUint8 aAvInputSignalNumber, TRemConCoreApiButtonAction aButtonAct );
       
    61     void MrccatoSelectAudioInputFunction( TUint8 aAudioInputSignalNumber, TRemConCoreApiButtonAction aButtonAct );
       
    62 
       
    63 // from base class MRemConCallHandlingTargetObserver
       
    64 
       
    65     void AnswerCall();
       
    66     void AnswerEndCall();
       
    67     void DialCall( const TDesC8& aTelNumber );
       
    68     void EndCall();
       
    69     void GenerateDTMF( const TChar aChar );
       
    70     void LastNumberRedial();
       
    71     void MultipartyCalling( const TDesC8& aData );
       
    72     void SpeedDial( const TInt aIndex );
       
    73     void VoiceDial( const TBool aActivate );
       
    74 
       
    75 private:
       
    76 
       
    77     CRadioRemConTargetImp();
       
    78 
       
    79     void ConstructL();
       
    80 
       
    81     /**
       
    82      * Callback for repeat timer.
       
    83      * @param aPtr Pointer to this class.
       
    84      */
       
    85     static TInt RepeatTimerCallback( TAny* aPtr );
       
    86 
       
    87 private: // data
       
    88 
       
    89     /** Pointer to observer in UI side, can be NULL. Not owned. */
       
    90     MRadioControlEventObserver* iObserver;
       
    91 
       
    92     /** RemCon interface selector. */
       
    93     CRemConInterfaceSelector*   iInterfaceSelector;
       
    94 
       
    95     /** RemCon Core API target class. */
       
    96     CRemConCoreApiTarget*       iCoreTarget;
       
    97 
       
    98     /** RemCon Call API target class. */
       
    99     CRemConCallHandlingTarget*  iCallTarget;
       
   100 
       
   101     /** Timer for generating repeat events. */
       
   102     CPeriodic*                  iRepeatTimer;
       
   103 
       
   104     /** Operation id to repeat. */
       
   105     TRemConCoreApiOperationId   iRepeatId;
       
   106 
       
   107     };
       
   108 
       
   109 #endif // CRADIOREMCONTARGETIMP_H