diff -r b1ea1642412e -r ac7e4d1d9209 textinput/peninputfingerhwrar/inc/peninputfingerhwarvkbutility.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textinput/peninputfingerhwrar/inc/peninputfingerhwarvkbutility.h Thu Aug 19 10:15:25 2010 +0300 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2010 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: Implementation of virtual key ctrl utility for arabic hwr. +* +*/ + + +#ifndef C_PENINPUTFINGERHWARVKBUTILITY_H +#define C_PENINPUTFINGERHWARVKBUTILITY_H + +// INCLUDES +#include +#include + +// FORWARD DECLARATIONS +class TResourceReader; +class CVirtualKeyboard; +class CVirtualKey; + +// CLASS DECLARATION + +/** + * The virtual key board utility which implement a set of funtions: + * 1. create the virutal key + * 2. load virutal key image + * 3. load the virtual keys + * + * @lib peninputfingerhwrar.lib + * @since S60 v5.0 + */ + +class PeninputFingerHwrArVkbUtility + { +public: + /** + * Load VKB image + * + */ + static void LoadVkbKeyImageL(CVirtualKeyboard& aVkbCtrl, TInt aResId, const TSize& aKeySize); + + /** + * Load virutal Key and set key rects. + * + */ + static void LoadVirtualKeypadKeyL(CVirtualKeyboard& aVkbCtrl, const TInt aResId, const RArray& aCellRects); + + /** + * create a new virtual key + * + */ + static CVirtualKey* CreateVkbKeyL(TResourceReader& aReader, const TRect& aKeyRect); + + /** + * update the virtal key + * + */ + static void UpdateVkbKeyL( CVirtualKey* aVirtualKey, TResourceReader& aReader, const TRect& aKeyRect ); + }; + +#endif // C_PENINPUTFINGERHWARVKBUTILITY_H + +// End Of File