radioengine/utils/stub/inc/cradioremcontargetimp_stub.h
author hgs
Mon, 23 Aug 2010 14:17:50 +0300
changeset 44 0a3ad94fc71c
parent 34 bc10a61bd7d3
permissions -rw-r--r--
201033
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef CRADIOREMCONTARGETIMP_H
hgs
parents:
diff changeset
    19
#define CRADIOREMCONTARGETIMP_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
// System includes
hgs
parents:
diff changeset
    22
#include <RemConCallHandlingTargetObserver.h>
hgs
parents:
diff changeset
    23
#include <remconcoreapitargetobserver.h>
hgs
parents:
diff changeset
    24
#include <RadioStubManager.h>
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
// User includes
hgs
parents:
diff changeset
    27
#include "cradioremcontarget.h"
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
// Forward declarations
hgs
parents:
diff changeset
    30
class CRemConCallHandlingTarget;
hgs
parents:
diff changeset
    31
class CRemConCoreApiTarget;
hgs
parents:
diff changeset
    32
class CRemConInterfaceSelector;
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// Class declaration
hgs
parents:
diff changeset
    35
hgs
parents:
diff changeset
    36
/**
hgs
parents:
diff changeset
    37
 * Media key listener
hgs
parents:
diff changeset
    38
 */
hgs
parents:
diff changeset
    39
NONSHARABLE_CLASS( CRadioRemConTargetImp ) : public CRadioRemConTarget
hgs
parents:
diff changeset
    40
                                           , public MRemConCoreApiTargetObserver
hgs
parents:
diff changeset
    41
                                           , public MRemConCallHandlingTargetObserver
hgs
parents:
diff changeset
    42
    {
hgs
parents:
diff changeset
    43
public:
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
    static CRadioRemConTargetImp* NewL();
hgs
parents:
diff changeset
    46
hgs
parents:
diff changeset
    47
    virtual ~CRadioRemConTargetImp();
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
private:
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
// from base class CRadioRemConTarget
hgs
parents:
diff changeset
    52
hgs
parents:
diff changeset
    53
    void SetControlEventObserver( MRadioControlEventObserver* aControlEventObserver );
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
// from base class MRemConCoreApiTargetObserver
hgs
parents:
diff changeset
    56
hgs
parents:
diff changeset
    57
    void MrccatoCommand( TRemConCoreApiOperationId aOperationId, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    58
    void MrccatoPlay( TRemConCoreApiPlaybackSpeed aSpeed, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    59
    void MrccatoTuneFunction( TBool aTwoPart, TUint aMajorChannel, TUint aMinorChannel, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    60
    void MrccatoSelectDiskFunction( TUint aDisk, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    61
    void MrccatoSelectAvInputFunction( TUint8 aAvInputSignalNumber, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    62
    void MrccatoSelectAudioInputFunction( TUint8 aAudioInputSignalNumber, TRemConCoreApiButtonAction aButtonAct );
hgs
parents:
diff changeset
    63
hgs
parents:
diff changeset
    64
// from base class MRemConCallHandlingTargetObserver
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
    void AnswerCall();
hgs
parents:
diff changeset
    67
    void AnswerEndCall();
hgs
parents:
diff changeset
    68
    void DialCall( const TDesC8& aTelNumber );
hgs
parents:
diff changeset
    69
    void EndCall();
hgs
parents:
diff changeset
    70
    void GenerateDTMF( const TChar aChar );
hgs
parents:
diff changeset
    71
    void LastNumberRedial();
hgs
parents:
diff changeset
    72
    void MultipartyCalling( const TDesC8& aData );
hgs
parents:
diff changeset
    73
    void SpeedDial( const TInt aIndex );
hgs
parents:
diff changeset
    74
    void VoiceDial( const TBool aActivate );
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
private:
hgs
parents:
diff changeset
    77
hgs
parents:
diff changeset
    78
    CRadioRemConTargetImp();
hgs
parents:
diff changeset
    79
hgs
parents:
diff changeset
    80
    void ConstructL();
hgs
parents:
diff changeset
    81
hgs
parents:
diff changeset
    82
    /**
hgs
parents:
diff changeset
    83
     * Callback for repeat timer.
hgs
parents:
diff changeset
    84
     * @param aPtr Pointer to this class.
hgs
parents:
diff changeset
    85
     */
hgs
parents:
diff changeset
    86
    static TInt RepeatTimerCallback( TAny* aPtr );
hgs
parents:
diff changeset
    87
hgs
parents:
diff changeset
    88
private: // data
hgs
parents:
diff changeset
    89
hgs
parents:
diff changeset
    90
    /** Pointer to observer in UI side, can be NULL. Not owned. */
hgs
parents:
diff changeset
    91
    MRadioControlEventObserver* iObserver;
hgs
parents:
diff changeset
    92
hgs
parents:
diff changeset
    93
    /** RemCon interface selector. */
hgs
parents:
diff changeset
    94
    CRemConInterfaceSelector*   iInterfaceSelector;
hgs
parents:
diff changeset
    95
hgs
parents:
diff changeset
    96
    /** RemCon Core API target class. */
hgs
parents:
diff changeset
    97
    CRemConCoreApiTarget*       iCoreTarget;
hgs
parents:
diff changeset
    98
hgs
parents:
diff changeset
    99
    /** RemCon Call API target class. */
hgs
parents:
diff changeset
   100
    CRemConCallHandlingTarget*  iCallTarget;
hgs
parents:
diff changeset
   101
hgs
parents:
diff changeset
   102
    /** Timer for generating repeat events. */
hgs
parents:
diff changeset
   103
    CPeriodic*                  iRepeatTimer;
hgs
parents:
diff changeset
   104
hgs
parents:
diff changeset
   105
    /** Operation id to repeat. */
hgs
parents:
diff changeset
   106
    TRemConCoreApiOperationId   iRepeatId;
hgs
parents:
diff changeset
   107
hgs
parents:
diff changeset
   108
		// RadioStubManager pointer points inside RadioStubManagerChunk
hgs
parents:
diff changeset
   109
		SRadioStubManager* iRadioStubManager;
hgs
parents:
diff changeset
   110
		
hgs
parents:
diff changeset
   111
		// RadioStubManagerChunk handle
hgs
parents:
diff changeset
   112
		RChunk iRadioStubManagerChunk;
hgs
parents:
diff changeset
   113
hgs
parents:
diff changeset
   114
    };
hgs
parents:
diff changeset
   115
hgs
parents:
diff changeset
   116
#endif // CRADIOREMCONTARGETIMP_H