aknnumedwin.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : AknNumEdwin.h
00004 *  Part of     : Avkon
00005 *  Interface   : ?Interface_category, ?Interface_name
00006 *  Description : Numeric Editor derived from Uikon's CEikEdwin
00007 *                These specializations of CEikEdwin maintain a numeric content, 
00008 *                access methods and validation.
00009 *  Version     : ?Version
00010 *
00011 *  Copyright © 2002-2006 Nokia. All rights reserved.
00012 *  This material, including documentation and any related 
00013 *  computer programs, is protected by copyright controlled by 
00014 *  Nokia. All rights are reserved. Copying, including 
00015 *  reproducing, storing, adapting or translating, any 
00016 *  or all of this material requires the prior written consent of 
00017 *  Nokia. This material also contains confidential 
00018 *  information which may not be disclosed to others without the 
00019 *  prior written consent of Nokia.
00020 * ==============================================================================
00021 */
00022 
00023 
00024 #if !defined(__AKNNUMEDWIN_H__)
00025 #define __AKNNUMEDWIN_H__
00026 
00027 // INCLUDES
00028 #include <eikedwin.h>
00029 #include <aknnumed.h> // CAknNumericEdwin
00030 
00031 // CONSTANTS
00032 _LIT( KAknIntegerFormat, "%d" );
00033 
00034 // CLASS DECLARATION
00035 
00044 class CAknIntegerEdwin : public CAknNumericEdwin
00045         {
00046 public:
00054         IMPORT_C static CAknIntegerEdwin* NewL(TInt aMin, 
00055                                                TInt aMax, 
00056                                                TInt aMaxChars);
00057         
00065         IMPORT_C virtual void ConstructFromResourceL(TResourceReader& aReader);
00066         
00073         IMPORT_C void ConstructL( TInt aMin, TInt aMax, TInt aMaxChars );
00074 
00075         // New methods
00076         
00082         IMPORT_C void SetValueL(TInt aValue);
00083         
00089         IMPORT_C void SetUnsetValue( TInt aUnsetValue);
00090         
00099         IMPORT_C TValidationStatus GetTextAsInteger( TInt& aValue );
00100         
00105         IMPORT_C void SetMinimumIntegerValue( TInt aMinimumValue );
00106         
00111         IMPORT_C void SetMaximumIntegerValue( TInt aMaximumValue );
00112 
00113         
00118         IMPORT_C void PrepareForFocusLossL();
00119         
00125         IMPORT_C void HandleResourceChange(TInt aType);
00126         
00136         IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
00137                                              TEventCode aType);
00138 
00139     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);      
00140 
00146     IMPORT_C TBool CheckNumber();    
00147 
00148 private:
00149         void CommonConstructL(TInt aMin, 
00150                               TInt aMax, 
00151                               TInt aMaxChars, 
00152                               TInt aFlags, 
00153                               TInt aUnset);
00154         
00155         void RefreshFromLocale();
00156 private:
00160     IMPORT_C void* ExtensionInterface( TUid aInterface );
00161 
00162 private: // from CEikEdwin
00163     IMPORT_C void Reserved_3();
00164 
00165 private:
00166         TInt iMinimumValue;
00167         TInt iMaximumValue;
00168         TInt iUnsetValue;
00169         TAny* iUnsetText;
00170         TDigitType iDigitType;
00171         TInt iSpare_Integer_2;
00172         };
00173 
00174 #endif

Copyright © Nokia Corporation 2001-2008
Back to top