accessoryservices/accessoryremotecontrol/inc/remconkeyeventconverter/RemConKeyEventConverterImpl.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2002-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:  CRemConKeyEventConverter implementation -class.
       
    15 *                    Defines the Accessory Key event handling API of
       
    16 *                    Accessory Framework.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 #ifndef CREMCONKEYEVENTCONVERTERIMPL_H
       
    23 #define CREMCONKEYEVENTCONVERTERIMPL_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include "RemConKeyEventConverter.h"
       
    27 #include "RemConKeyEventData.h"
       
    28 #include "RemConKeyEventContainer.h"
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  CRemConKeyEventConverter implementation -class.
       
    34 *
       
    35 *  @lib RemConKeyEventConverter.dll (ECom plugin)
       
    36 *  @since S60 3.0
       
    37 */
       
    38 class CRemConKeyEventConverterImpl : public CBase
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CRemConKeyEventConverterImpl* NewL();
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CRemConKeyEventConverterImpl();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         /**
       
    55         * Resolve operation ID based on the given key-event data.
       
    56         * The key event data structure is declared at AccKeyEventData.h -file.
       
    57         * @since S60 3.0
       
    58         * @param aEvent Key event to be handled by Logical ASY 
       
    59         *   (see AccKeyEventData.h).
       
    60         * @param aOperationID The operation ID to which the found ID is 
       
    61         *   assigned.
       
    62         * @return KErrNone if operation ID resolved, KErrNotFound if matching 
       
    63         * event was not found.
       
    64         */
       
    65         TInt ResolveOperationID( const TRemConKeyEventData& aEvent, 
       
    66             TUid& aInterfaceUID, TUint& aOperationID, TDes8& aData ) const;
       
    67     
       
    68     private:
       
    69 
       
    70         /**
       
    71         * C++ default constructor.
       
    72         */
       
    73         CRemConKeyEventConverterImpl();
       
    74 
       
    75         /**
       
    76         * By default Symbian 2nd phase constructor is private.
       
    77         */
       
    78         void ConstructL();
       
    79         
       
    80     private:    // Data
       
    81         
       
    82         // Container for key events.
       
    83         CRemConKeyEventContainer* iKeyEventContainer;
       
    84 
       
    85     };
       
    86 
       
    87 #endif      // CREMCONKEYEVENTCONVERTERIMPL_H   
       
    88             
       
    89 // End of File