textinput/peninputvkbcn/inc/peninputvkbuistatestandbycn.h
changeset 0 eb1f2e154e89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/textinput/peninputvkbcn/inc/peninputvkbuistatestandbycn.h	Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,138 @@
+/*
+* Copyright (c) 2002-2005 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 vkb standby cn ui state
+*
+*/
+
+
+#ifndef C_AKNFEPVKBUISTATESTANDBYCN_H
+#define C_AKNFEPVKBUISTATESTANDBYCN_H
+
+// user includes
+#include "peninputvkbuistate.h"
+
+/**
+ *  Vkb standby cn ui state
+ *  It provides key event handling and internal event handling in standby cn ui state
+ *
+ *  @lib peninputvkbcn.lib
+ *  @since S60 v3.2
+ */
+class CAknFepVkbUiStateStandbycn : public CAknFepVkbUiState
+    {
+public:
+
+    /**
+     * Two-phased constructor.
+     *
+     * @since S60 v3.2
+     * @param aUiStateMgr The vkb ui state manager
+     * @param aContext The vkb layout context
+     * @return The pointer point to CAknFepVkbUiStateStandbycn type object
+     */
+    static CAknFepVkbUiStateStandbycn* NewL(MAknFepVkbUiStateMgr* aUiStateMgr, 
+                                            MAknFepVkbLayoutContext* aContext);
+        
+    /**
+     * Destructor.
+     *
+     * @since S60 v3.2
+     */
+    virtual ~CAknFepVkbUiStateStandbycn();
+        
+    /**
+     * Process key event
+     *
+     * @since S60 v3.2
+     * @param aData Carry information of key pressed
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleKeyEventL(const TRawEvent &aData);     
+        
+    /**
+     * process internal event
+     *
+     * @since S60 v3.2
+     * @param aEventType The internal event type
+     * @param aEventData The internal event data
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleControlEvent(TInt aEventType, const TDesC& aEventData);
+            
+protected:
+
+    /**
+     * C++ default constructor.
+     *
+     * @since S60 v3.2
+     * @param aUiStateMgr The vkb ui state manager
+     * @param aContext The vkb layout context
+     */
+    CAknFepVkbUiStateStandbycn(MAknFepVkbUiStateMgr* aUiStateMgr, 
+                               MAknFepVkbLayoutContext* aContext);
+    
+    /**
+     * Symbian second-phase constructor
+     *
+     * @since S60 v3.2
+     * @return None
+     */
+    //void ConstructL();
+    
+    /**
+     * Process virtual key event
+     *
+     * @since S60 v3.2
+     * @param aEventType The event type
+     * @param aEventData The event data
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleVkbEvent(TInt aEventType, const TDesC& aEventData);
+
+    /**
+     * Process backspace key event
+     *
+     * @since S60 v3.2
+     * @param aEventType The event type
+     * @param aEventData The event data
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleBackEvent(TInt aEventType, const TDesC& aEventData);
+
+    /**
+     * Process enter, space key event
+     *
+     * @since S60 v3.2
+     * @param aEventType The event type
+     * @param aEventData The event data
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleEnterSpaceEvent(TInt aEventType, const TDesC& aEventData);
+        
+    /**
+     * Process tab key event
+     *
+     * @since S60 v3.2
+     * @param aEventType The event type
+     * @param aEventData The event data
+     * @return ETrue means event was responsed, otherwise EFalse
+     */
+    virtual TBool HandleTabEvent(TInt aEventType, const TDesC& aEventData);   
+    
+	virtual TBool HandleArrowKeyEvent(TInt aEventType, const TDesC& aEventData);        
+    };
+
+#endif  // C_AKNFEPVKBUISTATESTANDBYCN_H
+
+// End Of File