mulwidgets/common/inc/mulkeyboardutility.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mulwidgets/common/inc/mulkeyboardutility.h	Wed Sep 01 12:23:18 2010 +0100
@@ -0,0 +1,68 @@
+/*
+* Copyright (c) 2007-2008 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:  Utility class for keyboard handling  
+ *
+*/
+
+
+#ifndef MULKEYBOARDUTILITY_H_
+#define MULKEYBOARDUTILITY_H_
+
+#include <e32base.h>
+#include <e32std.h>
+#include <e32property.h>
+#include <centralrepository.h>
+#include <AknFepInternalCRKeys.h>
+#include <AvkonInternalCRKeys.h>   // KAknQwertyInputModeActive
+#include <coemain.h>
+
+ class CQwertySubscriber : public CActive
+ {
+     public:
+          CQwertySubscriber(TCallBack aCallBack, RProperty& aProperty);
+         ~CQwertySubscriber();
+ 
+     public: // New functions
+
+         void SubscribeL();
+         void StopSubscribe();
+ 
+     private: // from CActive
+
+         void RunL();
+         void DoCancel();
+ 
+     private:
+         TCallBack   iCallBack;
+         RProperty&  iProperty;
+ };
+
+class CKeyBoardUtility: public CCoeStatic
+{
+	public:
+		static CKeyBoardUtility* NewL();
+	private: 
+		static TInt QwertyModeChangeNotification(TAny* aObj);
+	private:
+		~CKeyBoardUtility();
+		CKeyBoardUtility(); 
+		bool bQwerty;
+	    /** Qwerty Notification */
+	    CQwertySubscriber* iQwertyModeStatusSubscriber;
+	    RProperty iQwertyModeStatusProperty;
+	    void HandleQwertyModeChangeNotification();
+	public:
+		bool IsQwerty();
+};
+#endif //MULKEYBOARDUTILITY_H_