aknipfed.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : aknipfed.h
00004 *  Part of     : Avkon
00005 *  Interface   : ?Interface_category, ?Interface_name
00006 *  Description : The CAknIpFieldEditor class implements an editor for an 
00007 *                IP address.
00008 *  Version     : ?Version
00009 *
00010 *  Copyright © 2002-2006 Nokia. All rights reserved.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia. All rights are reserved. Copying, including 
00014 *  reproducing, storing, adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia.
00019 * ==============================================================================
00020 */
00021 
00022 #if !defined(__AKNIPFED_H_)
00023 #define __AKNIPFED_H_
00024 
00025 // INCLUDES
00026 #include <eikmfne.h>
00027 
00028 // FORWARD DECLERATIONS
00029 class TInetAddr;
00030 
00031 //CLASS DECLERATION
00038 class CAknIpFieldEditor : public CEikMfne 
00039     {
00040 public: // public constructors
00041 
00045         IMPORT_C CAknIpFieldEditor();
00046 
00058         void ConstructL(TInetAddr& aMinimumAddress,
00059                     TInetAddr& aMaximumAddress,
00060                     TInetAddr& aInitialAddress,
00061                     const TInt aFlags=0);
00062 
00074         IMPORT_C static CAknIpFieldEditor* NewL(TInetAddr& aMinimumAddress,
00075                                             TInetAddr& aMaximumAddress,
00076                                             TInetAddr& aInitialAddress);
00077         
00084         IMPORT_C static CAknIpFieldEditor* NewL();
00085         
00086 public: // Methods for getting and setting values
00087 
00088                 
00094         IMPORT_C void SetAddress(const TInetAddr& aAddress);
00095         
00100         IMPORT_C TInetAddr Address() const;
00101         
00109         IMPORT_C virtual void SetMinimumAndMaximum(
00110                                             const TInetAddr& aMinimumAddress,
00111                                         const TInetAddr& aMaximumAddress); // only values inside the initial minimum and maximum are permitted
00112 
00120         IMPORT_C virtual void GetMinimumAndMaximum(
00121                                             TInetAddr& aMinimumAddress,
00122                                         TInetAddr& aMaximumAddress) const;
00123     
00130         IMPORT_C TInetAddr ReadIPAddress(TResourceReader& aResourceReader);
00131         
00132 public: // from CCoeControl
00133 
00141         IMPORT_C void ConstructFromResourceL(TResourceReader& aResourceReader);
00142         
00151         IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
00152                                              TEventCode aType);
00153     IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent);      
00154 private:
00158     IMPORT_C void* ExtensionInterface( TUid aInterface );
00159 private: 
00160    void SplitAddressIntoFields(
00161                                 const TInetAddr& aAddress,
00162                                 TUint8 &aFieldA,
00163                                 TUint8 &aFieldB,
00164                                 TUint8 &aFieldC,
00165                                 TUint8 &aFieldD) const;
00166         IMPORT_C virtual void CEikMfne_Reserved();
00167 
00168 private:
00169     TInt iSpare;
00170     TInt iSpare2;
00171         };
00172 
00173 
00174 #endif

Copyright © Nokia Corporation 2001-2008
Back to top