textinput/peninputhwrboxjp/inc/peninputhwrboxuistatepenbeginwriting.h
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  Interface of hwr pen beginwriting ui state
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
       
    20 #define C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
       
    21 
       
    22 // user includes
       
    23 #include "peninputhwrboxuistate.h"
       
    24 
       
    25 /**
       
    26  *  Hwr pen beginwriting ui state
       
    27  *  It provides key event handling and internal event handling in pen beginwriting ui state
       
    28  *
       
    29  *  @lib peninputhwrboxjp.lib
       
    30  *  @since S60 v3.2
       
    31  */
       
    32 class CPeninputHwrBoxUiStatePenBeginWriting : public CPeninputHwrBoxUiState
       
    33     {
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      *
       
    39      * @since S60 v3.2
       
    40      * @param aUiStateMgr The common ui state manager
       
    41      * @param aContext The common layout context
       
    42      * @return The pointer point to CPeninputHwrBoxUiStatePenBeginWriting type object
       
    43      */
       
    44     static CPeninputHwrBoxUiStatePenBeginWriting* NewL(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      *
       
    49      * @since S60 v3.2
       
    50      */
       
    51     virtual ~CPeninputHwrBoxUiStatePenBeginWriting();
       
    52 
       
    53     /**
       
    54      * Handle the event for Pen from control
       
    55      *
       
    56      * @since S60 v3.2
       
    57      * @param aEventType The event type
       
    58      * @param aEventData The event data.
       
    59      * @param aUiLayout  The UiLayout Control
       
    60      * @param aCharCode  character code buffer
       
    61      * @param aHandled   output buffer:ETrue means event was responsed, otherwise EFalse
       
    62      * @return None
       
    63      */
       
    64     void HandleControlEventPenL(TInt aEventType, const TDesC& aEventData, CPeninputHwrBoxLayout& aUiLayout, TDes& aCharCode, TBool& aHandled);
       
    65 
       
    66 protected:
       
    67 
       
    68     /**
       
    69      * C++ default constructor.
       
    70      *
       
    71      * @since S60 v3.2
       
    72      * @param aUiStateMgr The common ui state manager
       
    73      * @param aContext The common layout context
       
    74      */
       
    75     CPeninputHwrBoxUiStatePenBeginWriting(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
       
    76     };
       
    77 
       
    78 #endif  // C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
       
    79 
       
    80 // End Of File