diff -r f1bdd6b078d1 -r 2cb9bae34d17 textinput/peninputcommonlayout/inc/peninputshiftcapsInfo.h --- a/textinput/peninputcommonlayout/inc/peninputshiftcapsInfo.h Tue Jul 06 14:38:41 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,145 +0,0 @@ -/* -* 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: shift and capslock information -* -*/ - - -#ifndef C_CPENINPUTSHIFTCAPSINFO_H -#define C_CPENINPUTSHIFTCAPSINFO_H - -// System includes -#include -#include -#include - -/** - * Peninput shift and capslock info definition - * - * @lib peninputcommonlayout.lib - * @since S60 v3.2 - */ -class CPeninputShiftCapsInfo : public CBase - { - -public: - - /** - * shift&caps single info - */ - struct TPeninputShiftCapsSingle - { - TInt iId; - TInt iVkbLayoutId; - TInt iCaseUsed; - }; - - /** - * Two-phase constructor - * - * @since S60 v3.2 - * @param aReader Resource reader - * @return The pointer to CPeninputShiftCapsInfo object - */ - IMPORT_C static CPeninputShiftCapsInfo* NewL( TResourceReader& aReader ); - - /** - * Two-phase constructor - * - * @since S60 v3.2 - * @param aReader Resource reader - * @return The pointer to CPeninputShiftCapsInfo object - */ - IMPORT_C static CPeninputShiftCapsInfo* NewLC( TResourceReader& aReader ); - - /** - * Destructor - * - * @since S60 v3.2 - * @return None - */ - IMPORT_C virtual ~CPeninputShiftCapsInfo(); - - /** - * Get shift caps single info by id - * - * @since S60 v3.2 - * @param aId Shift caps id - * @return The pointer to TPeninputShiftCapsSingle object - */ - IMPORT_C TPeninputShiftCapsSingle* FindShiftCapsSingleById( TInt aId ); - - /** - * Get shift caps single info by case - * - * @since S60 v3.2 - * @param aCase Range id - * @return The pointer to TPeninputShiftCapsSingle object - */ - IMPORT_C TPeninputShiftCapsSingle* FindShiftCapsSingleByCase( TInt aCase ); - - /** - * Get range id - * - * @since S60 v3.2 - * @return Range id - */ - inline TInt RangeId(); - - /** - * Get array of shift caps single info - * - * @since S60 v3.2 - * @return The reference of pointer array of shift - * caps single info - */ - inline RPointerArray& ShiftCapsSingleList(); - -protected: - - /** - * Second phase constructor - * - * @since S60 v3.2 - * @param aReader Resource reader - * @return None - */ - void ConstructL( TResourceReader& aReader ); - - /** - * Construct from resource - * - * @since S60 v3.2 - * @param aReader Resource reader - * @return None - */ - void ConstructFromResourceL( TResourceReader& aReader ); - -private: // Data - - /** - * Range id - */ - TInt iRangeId; - - /** - * Array of shift caps single info - */ - RPointerArray iShiftCapsSingleList; - - }; - -#include "peninputshiftcapsinfo.inl" - -#endif // C_CPENINPUTSHIFTCAPSINFO_H