textinput/peninputhwrboxjp/inc/peninputhwrboxuistatepenbeginwriting.h
changeset 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/textinput/peninputhwrboxjp/inc/peninputhwrboxuistatepenbeginwriting.h	Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,80 @@
+/*
+* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Interface of hwr pen beginwriting ui state
+*
+*/
+
+
+#ifndef C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
+#define C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
+
+// user includes
+#include "peninputhwrboxuistate.h"
+
+/**
+ *  Hwr pen beginwriting ui state
+ *  It provides key event handling and internal event handling in pen beginwriting ui state
+ *
+ *  @lib peninputhwrboxjp.lib
+ *  @since S60 v3.2
+ */
+class CPeninputHwrBoxUiStatePenBeginWriting : public CPeninputHwrBoxUiState
+    {
+public:
+
+    /**
+     * Two-phased constructor.
+     *
+     * @since S60 v3.2
+     * @param aUiStateMgr The common ui state manager
+     * @param aContext The common layout context
+     * @return The pointer point to CPeninputHwrBoxUiStatePenBeginWriting type object
+     */
+    static CPeninputHwrBoxUiStatePenBeginWriting* NewL(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
+
+    /**
+     * Destructor.
+     *
+     * @since S60 v3.2
+     */
+    virtual ~CPeninputHwrBoxUiStatePenBeginWriting();
+
+    /**
+     * Handle the event for Pen from control
+     *
+     * @since S60 v3.2
+     * @param aEventType The event type
+     * @param aEventData The event data.
+     * @param aUiLayout  The UiLayout Control
+     * @param aCharCode  character code buffer
+     * @param aHandled   output buffer:ETrue means event was responsed, otherwise EFalse
+     * @return None
+     */
+    void HandleControlEventPenL(TInt aEventType, const TDesC& aEventData, CPeninputHwrBoxLayout& aUiLayout, TDes& aCharCode, TBool& aHandled);
+
+protected:
+
+    /**
+     * C++ default constructor.
+     *
+     * @since S60 v3.2
+     * @param aUiStateMgr The common ui state manager
+     * @param aContext The common layout context
+     */
+    CPeninputHwrBoxUiStatePenBeginWriting(MPeninputUiStateMgr* aUiStateMgr, MPeninputLayoutContext* aContext);
+    };
+
+#endif  // C_PENINPUTHWRBOXUISTATEPENBEGINWRITING_H
+
+// End Of File