diff -r 4ea6f81c838a -r 0e9bb658ef58 mulwidgets/common/inc/mulkeyboardutility.h --- /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 +#include +#include +#include +#include +#include // KAknQwertyInputModeActive +#include + + 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_