localconnectivityservice/headset/inc/headset.h
author hgs
Thu, 04 Nov 2010 15:31:42 +0800
changeset 60 841f70763fbe
parent 29 3ae5cb0b4c02
permissions -rw-r--r--
201044_04
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     1
/*
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     2
* Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     3
* All rights reserved.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     8
*
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
     9
* Initial Contributors:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    11
*
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    12
* Contributors:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    13
*
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    14
* Description:  Hid headset driver 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    15
 *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    16
*/
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    17
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    18
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    19
#ifndef C_HIDHEADSETDRIVER_H
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    20
#define C_HIDHEADSETDRIVER_H
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    21
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    22
#include <e32std.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    23
#include <asclisession.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    24
#include <mpxplaybackutility.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    25
#include <mpxplaybackobserver.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    26
#include <mpxmessage.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    27
#include <hidinterfaces.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    28
#include <hidtranslate.h>
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    29
#include "keypresstimer.h"
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    30
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    31
class CField;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    32
class CHidHeadsetDriver;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    33
class CTelephony;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    34
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    35
/**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    36
 *  Scan status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    37
 */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    38
enum TScanStatus
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    39
    {
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    40
    EScanNotPressed, EScanPressed, EScanLongPress
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    41
    };
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    42
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    43
/**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    44
 * HID headset driver class
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    45
 *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    46
 * HidDriver interface for handlign headset related 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    47
 * functionality.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    48
 *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    49
 */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    50
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    51
class CHidHeadsetDriver : public CHidDriver,
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    52
        public MTimerNotifier,
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    53
        public MMPXPlaybackObserver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    54
    {
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    55
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    56
private:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    57
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    58
     *  Initialisation states 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    59
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    60
    enum THeadsetDriverState
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    61
        {
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    62
        EUninitialised, // Driver has not been initialised 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    63
        EInitialised, // Driver is initialised 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    64
        EDisabled
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    65
        // The driver will not respond to interrupt data 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    66
        };
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    67
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    68
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    69
     * Hook handling
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    70
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    71
    enum THookHandling
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    72
        {
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    73
        EOnHook, EOffHook, ENoHook
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    74
        };
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    75
public:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    76
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    77
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    78
     * Two-phased constructor.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    79
     * @param aHid The generic HID layer that requested the driver     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    80
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    81
    static CHidHeadsetDriver* NewL( MDriverAccess* aHid );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    82
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    83
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    84
     * Two-phased constructor.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    85
     * @param aHid The generic HID layer that requested the driver     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    86
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    87
    static CHidHeadsetDriver* NewLC( MDriverAccess* aHid );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    88
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    89
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    90
     * Destructor
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    91
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    92
    virtual ~CHidHeadsetDriver();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    93
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    94
private:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    95
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    96
    // from base class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    97
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    98
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
    99
     * Called by the Generic HID layer to see if the driver can is able to
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   100
     * use reports from a newly-connected device. Supported hid fields van 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   101
     * be later request with SupportedFieldCount function
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   102
     *  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   103
     * @param aReportRoot HID report descriptor
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   104
     * @return KErrNone The driver will handle reports from the report 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   105
     *         descriptor and KErrHidUnrecognised The driver cannot 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   106
     *         handle reports from the device
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   107
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   108
    TInt CanHandleReportL( CReportRoot* aReportRoot );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   109
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   110
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   111
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   112
     * Called by the Generic HID layer when a device has been removed, prior
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   113
     * to the driver being removed.  This allows the driver to notify any 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   114
     * applications of disconnection, if required
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   115
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   116
     * @param aReason The reason for device disconnection     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   117
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   118
    void Disconnected( TInt aReason );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   119
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   120
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   121
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   122
     * Called by the Generic HID layer when data has been received from the 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   123
     * device handled by this driver. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   124
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   125
     * @param aChannel The channel on which the data was received 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   126
     *                                   (as defined by the transport layer)
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   127
     * @param aPayload A pointer to the data buffer     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   128
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   129
    TInt DataIn( CHidTransport::THidChannelType aChannel,
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   130
            const TDesC8& aPayload );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   131
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   132
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   133
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   134
     * Called by the transport layers to inform the generic HID of the 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   135
     * success of the last Set... command. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   136
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   137
     * @param aCmdAck Status of the last Set... command     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   138
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   139
    void CommandResult( TInt aCmdAck );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   140
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   141
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   142
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   143
     * Called after a driver is sucessfully created by the Generic HID, when 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   144
     * a device is connected 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   145
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   146
     * @param aConnectionId An number used to identify the device in
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   147
     *                      subsequent calls from the driver to the 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   148
     *                      generic HI     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   149
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   150
    void InitialiseL( TInt aConnectionId );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   151
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   152
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   153
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   154
     * Resets the internal state of the driver (any pressed keys are released) 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   155
     * and enables the driver  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   156
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   157
     * @param aConnectionId An number used to identify the device in
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   158
     *                      subsequent calls from the driver to the 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   159
     *                      generic HI     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   160
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   161
    void StartL( TInt aConnectionId );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   162
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   163
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   164
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   165
     * Cancels all pressed keys and disables the driver (so it will not
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   166
     * process interrupt data)  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   167
     *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   168
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   169
    void Stop();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   170
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   171
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   172
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   173
     * Return count of supported fields
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   174
     *          
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   175
     * @return Number of supported fields
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   176
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   177
    TInt SupportedFieldCount();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   178
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   179
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   180
     * From class CHidDriver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   181
     * Set input handling registy 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   182
     *          
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   183
     * @param aHandlingReg  a Input handling registry     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   184
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   185
    void SetInputHandlingReg( CHidInputDataHandlingReg* aHandlingReg );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   186
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   187
    // from base class MTimerNotifier    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   188
    /**     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   189
     * From class MTimerNotifier
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   190
     * The function to be called when a timeout occurs.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   191
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   192
     * @param aTimerType a Type of timer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   193
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   194
    void TimerExpired( TTimerType aTimerType );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   195
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   196
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   197
     *  From class MMPXPlaybackObserver
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   198
     *  Handle playback message.    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   199
     *   
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   200
     *  @param aMsg playback message, ownership not transferred. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   201
     *         Please check aMsg is not NULL before using it. If aErr is not 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   202
     *         KErrNone, plugin might still call back with more info in the 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   203
     *         aMsg.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   204
     *  @param aErr system error code.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   205
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   206
    void HandlePlaybackMessage( CMPXMessage* aMsg, TInt /*aErr*/);
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   207
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   208
private:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   209
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   210
     * Constructor
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   211
     * @param aHid The generic HID layer that requested the driver 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   212
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   213
    CHidHeadsetDriver( MDriverAccess* aHid );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   214
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   215
     * ConstructL
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   216
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   217
    void ConstructL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   218
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   219
private:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   220
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   221
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   222
     * Called from within DataIn to handle interrupt and control channel data
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   223
     *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   224
     * @param aPayload a Payload data
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   225
     * @return error if data can't be handled
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   226
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   227
    TInt InterruptData( const TDesC8& aPayload );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   228
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   229
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   230
     * Handles the report
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   231
     *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   232
     * @param aReport HID report descriptor
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   233
     * @param aField HID field
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   234
     * @return KErrNotSupported if report can't be handled
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   235
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   236
    TInt HandleReport( const TDesC8& aReport, const CField* aField );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   237
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   238
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   239
     * Handles the report
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   240
     *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   241
     * @param aReportTranslator Report Translator
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   242
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   243
    void ReleasePressedKeys( TReportTranslator& aReportTranslator );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   244
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   245
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   246
     * Handle hook key pres
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   247
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   248
     * @param aStatus Hook key status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   249
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   250
    void HookKeyPres( TBool aStatus );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   251
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   252
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   253
     * Release hook key 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   254
     *
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   255
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   256
    void ReleaseHookKey();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   257
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   258
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   259
     * Get Hook Status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   260
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   261
     * @return hook handling status. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   262
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   263
    THookHandling HookStatus();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   264
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   265
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   266
     * Get alarm status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   267
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   268
     * @return ETrue if ui is showing alarm, EFalse if not. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   269
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   270
    TBool AlarmStatus();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   271
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   272
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   273
     * MusicPlayingStatus
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   274
     *    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   275
     * @return ETrue if plyaer is playing, EFalse if not. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   276
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   277
    TBool MusicPlayingStatus();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   278
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   279
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   280
     * HandleNoneHookPress
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   281
     * Handle hook press when there are phone call is in idle state
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   282
     *      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   283
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   284
    void HandleNoneHookPressL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   285
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   286
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   287
     * ReleasePressedVolumeKeys
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   288
     * Release volume keys if they are pressed
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   289
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   290
     * @param aReportTranslator HID report translator
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   291
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   292
    void ReleasePressedVolumeKeys( TReportTranslator& aReportTranslator );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   293
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   294
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   295
     * ReleasePressedScanKeys
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   296
     * Release scan keys if they are pressed
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   297
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   298
     * @param aReportTranslator HID report report translator     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   299
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   300
    void ReleasePressedScanKeys( TReportTranslator& aReportTranslator );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   301
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   302
     * HandleAlarmHookReleaseL
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   303
     * Handle hook release when phone is alarming
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   304
     *     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   305
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   306
    void HandleAlarmHookReleaseL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   307
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   308
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   309
     * HandleIdleHookReleaseL
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   310
     * Handle hook release when phone is not alarming 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   311
     * and call is in idle state
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   312
     *  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   313
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   314
    void HandleIdleHookReleaseL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   315
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   316
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   317
     * Handle doubleclick timer expiration
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   318
     *      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   319
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   320
    void ExpiredDoubleClickTimer();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   321
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   322
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   323
     * Handle long press timer expiration
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   324
     *      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   325
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   326
    void ExpiredLongClickTimer();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   327
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   328
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   329
     * Handle scan next pressed
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   330
     *      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   331
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   332
    void HandleScanNextPressL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   333
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   334
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   335
     * Handle scan prev pressed
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   336
     *      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   337
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   338
    void HandleScanPrevPressL();
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   339
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   340
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   341
     * Handle scan next release  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   342
     *   
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   343
     * @param aKeyCode a Key id
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   344
     * @param aValue  a Key value      
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   345
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   346
    void HandleScanNextRelease( TUint& aKeyCode, TInt& aValue );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   347
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   348
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   349
     * Handle scan previous release  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   350
     *    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   351
     * @param aKeyCode a Key id
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   352
     * @param aValue a Key value    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   353
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   354
    void HandleScanPreviousRelease( TUint& aKeyCode, TInt& aValue );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   355
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   356
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   357
     * Handle telephony usage page
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   358
     *   
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   359
     * @param aReport a Report translator
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   360
     * @return KErrNone if report can be handled.  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   361
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   362
    TInt HandleTelephonyUsage( TReportTranslator& aReport );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   363
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   364
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   365
     * Handle controller usage page
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   366
     *    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   367
     * @param aReport a Report translator
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   368
     * @return KErrNone if report can be handled.  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   369
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   370
    TInt HandleControlUsage( TReportTranslator& aReport );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   371
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   372
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   373
     * Handle volume usage
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   374
     *    
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   375
     * @param aReport a Report translator
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   376
     * @return KErrNone if report can be handled.  
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   377
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   378
    TInt HandleVolumeUsage( TReportTranslator& aReport );
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   379
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   380
private:
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   381
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   382
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   383
     * The Generic HID layer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   384
     * Not own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   385
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   386
    MDriverAccess *iGenericHid;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   387
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   388
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   389
     * Field list array
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   390
     * Own. 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   391
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   392
    RPointerArray<CField> iFieldList;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   393
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   394
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   395
     * Driver state
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   396
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   397
    THeadsetDriverState iDriverState;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   398
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   399
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   400
     * Connection id
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   401
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   402
    TInt iConnectionId;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   403
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   404
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   405
     * Application menu id 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   406
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   407
    TInt iAppMenuId;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   408
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   409
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   410
     * On hook status 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   411
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   412
    TBool iOnHookPressed;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   413
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   414
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   415
     * Off hook 
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   416
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   417
    TBool iOffHookPressed;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   418
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   419
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   420
     * No active calls
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   421
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   422
    TBool iNoneHookPressed;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   423
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   424
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   425
     * Telephony service
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   426
     * Own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   427
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   428
    CTelephony* iTelephony;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   429
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   430
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   431
     * Double click timer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   432
     * Own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   433
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   434
    CKeyPressTimer* iDoubleClicktimer;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   435
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   436
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   437
     * Long click timer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   438
     * Own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   439
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   440
    CKeyPressTimer* iLongClicktimer;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   441
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   442
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   443
     * Long click timer     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   444
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   445
    TBool iLongPress;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   446
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   447
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   448
     * Alarm server session     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   449
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   450
    RASCliSession iAlarmServerSession;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   451
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   452
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   453
     * Incoming call status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   454
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   455
     TBool iIncomingCallStatus;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   456
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   457
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   458
     * Alarm statusd     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   459
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   460
    TBool iAlarmStatus;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   461
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   462
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   463
     * Music player utility
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   464
     * Own.     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   465
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   466
    MMPXPlaybackUtility* iMusicPlayer;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   467
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   468
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   469
     * Playing status     
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   470
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   471
    TBool iPlayingStatus;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   472
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   473
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   474
     * Double next Click  status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   475
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   476
    TBool iDoubleNextClick;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   477
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   478
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   479
     * Count of supported fields
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   480
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   481
    TInt iSupportedFieldCount;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   482
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   483
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   484
     * Volume up key pressed down
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   485
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   486
    TBool iVolumeUpPressed;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   487
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   488
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   489
     * Volume down key pressed down
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   490
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   491
    TBool iVolumeDownPressed;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   492
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   493
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   494
     * Forward press status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   495
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   496
    TScanStatus iForwardStatus;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   497
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   498
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   499
     * Backward press status
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   500
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   501
    TScanStatus iBackwardStatus;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   502
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   503
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   504
     * Scan next timer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   505
     * Own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   506
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   507
    CKeyPressTimer* iScanNextTimer;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   508
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   509
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   510
     * Scan previous timer
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   511
     * Own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   512
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   513
    CKeyPressTimer* iScanPreviousTimer;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   514
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   515
    /**
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   516
     * Input handling reg
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   517
     * Not own.
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   518
     */
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   519
    CHidInputDataHandlingReg* iInputHandlingReg;
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   520
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   521
    };
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   522
3ae5cb0b4c02 201025_07
hgs
parents:
diff changeset
   523
#endif