williamr@2: /* williamr@2: * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Intermediate class for defining data shared between numeric williamr@2: * edwins williamr@2: * williamr@2: */ williamr@2: williamr@2: #if !defined(__AKNNUMED_H_) williamr@2: #define __AKNNUMED_H_ williamr@2: williamr@2: // INCLUDES williamr@2: #include williamr@2: williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: /** williamr@2: * Intermediate class for defining data shared between numeric edwins williamr@2: * williamr@2: * @since Series 60 0.9 williamr@2: */ williamr@2: class CAknNumericEdwin : public CEikEdwin williamr@2: { williamr@2: public: williamr@2: /** williamr@2: * Destructor. williamr@2: */ williamr@2: IMPORT_C virtual ~CAknNumericEdwin(); williamr@2: williamr@2: /** williamr@2: * williamr@2: * Indicates a validiton status for values read from the control. williamr@2: * williamr@2: */ williamr@2: enum TValidationStatus williamr@2: { williamr@2: EValueValid = KErrNone,/**< Read value is valid. */ williamr@2: EValueTooSmall, /**< Read value is smaller than the minimum value. */ williamr@2: EValueTooLarge, /**< Read value is larger than the maximum value. */ williamr@2: EValueNotParsed, /**< Read value can not be parsed. */ williamr@2: EEmpty /**< The control is empty. */ williamr@2: }; williamr@2: williamr@2: // From CCoeControl williamr@2: IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); williamr@2: williamr@2: protected: williamr@2: /** williamr@2: * Maps a key event so that any numeric character is mapped to the correct williamr@2: * digit type that this editor is using. williamr@2: * @since Series 60 2.0 williamr@2: * @param aKeyEvent The key event to modify. williamr@2: * @param aType The type to modify. williamr@2: * @param aDigitType The digit type to map all numeric characters to. williamr@2: */ williamr@2: IMPORT_C void MapKeyEvent( williamr@2: TKeyEvent& aKeyEvent, williamr@2: TEventCode& /*aType*/, williamr@2: TDigitType aDigitType) const; williamr@2: williamr@2: williamr@2: private: williamr@2: /** williamr@2: * From CAknControl williamr@2: */ williamr@2: IMPORT_C void* ExtensionInterface( TUid aInterface ); williamr@2: private: // from CEikEdwin williamr@2: IMPORT_C virtual void Reserved_3(); williamr@2: private: williamr@2: TInt iSpare; // Needs at least some data williamr@2: }; williamr@2: williamr@2: williamr@2: #endif