mmuifw_plat/mul_datamodel_api/inc/mul/mulkeyboardutility.h
author Simon Howkins <simonh@symbian.org>
Tue, 16 Nov 2010 11:09:56 +0000
branchRCL_3
changeset 33 2d34f54f7334
parent 0 e83bab7cf002
permissions -rw-r--r--
Fixed path to IBY files to be exported

/*
* 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_