CAknIpFieldEditor Class Reference

#include <mw/aknipfed.h>

Link against: eikctl.lib

class CAknIpFieldEditor : public CEikMfne

Inherits from

Public Member Functions
CAknIpFieldEditor()
IMPORT_C TInetAddrAddress()
virtual IMPORT_C voidConstructFromResourceL(TResourceReader &)
voidConstructL(TInetAddr &, TInetAddr &, TInetAddr &, const TInt)
virtual IMPORT_C voidGetMinimumAndMaximum(TInetAddr &, TInetAddr &)
virtual IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
IMPORT_C CAknIpFieldEditor *NewL(TInetAddr &, TInetAddr &, TInetAddr &)
IMPORT_C CAknIpFieldEditor *NewL()
virtual IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &, TEventCode)
IMPORT_C TInetAddrReadIPAddress(TResourceReader &)
IMPORT_C voidSetAddress(const TInetAddr &)
virtual IMPORT_C voidSetMinimumAndMaximum(const TInetAddr &, const TInetAddr &)
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CEikBorderedControl::iBorder
Inherited Enumerations
CCoeControl:TZoomType
CEikMfne:TFeatureId
CEikMfne:TFingerSupportParams
Inherited Functions
CAknControl::CAknControl()
CAknControl::~CAknControl()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCoeControl::AccumulatedZoom()const
CCoeControl::ActivateGc()const
CCoeControl::ActivateL()
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CCoeControlArray
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::ComponentControl(TInt)const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CountComponentControls()const
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
CCoeControl::CreateWindowL()
CCoeControl::CreateWindowL(RWindowGroup *)
CCoeControl::CreateWindowL(RWindowTreeNode &)
CCoeControl::CreateWindowL(const CCoeControl *)
CCoeControl::CustomGc()const
CCoeControl::DeactivateGc()const
CCoeControl::DrawBackground(const TRect &)const
CCoeControl::DrawDeferred()const
CCoeControl::DrawForeground(const TRect &)const
CCoeControl::DrawNow()const
CCoeControl::DrawNow(const TRect &)const
CCoeControl::DrawableWindow()const
CCoeControl::EnableDragEvents()
CCoeControl::EnableReportControlStateChange(TBool)
CCoeControl::EnableWindowTransparency()
CCoeControl::FindBackground()const
CCoeControl::FindFontProvider()const
CCoeControl::GetColor(TInt,TRgb &)const
CCoeControl::GetGc()const
CCoeControl::GetHelpContext(TCoeHelpContext &)const
CCoeControl::GrabbingComponent()const
CCoeControl::GrabbingComponent(TInt)const
CCoeControl::HandleComponentControlsResourceChange(TInt)
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
CCoeControl::HandlePointerBufferReadyL()
CCoeControl::HandleRedrawEvent(const TRect &)const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::IsActivated()const
CCoeControl::IsBackedUp()const
CCoeControl::IsBeingDestroyed()const
CCoeControl::IsBlank()const
CCoeControl::IsDimmed()const
CCoeControl::IsFocused()const
CCoeControl::IsNonFocusing()const
CCoeControl::IsReadyToDraw()const
CCoeControl::IsVisible()const
CCoeControl::LayoutManager()const
CCoeControl::MaximumWidth()const
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
CCoeControl::Observer()const
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
CCoeControl::PositionChanged()
CCoeControl::PositionRelativeToScreen()const
CCoeControl::PrepareForFocusGainL()
CCoeControl::ProcessPointerBufferReadyL()
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
CCoeControl::Rect()const
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
CCoeControl::RecursivelyMergedInputCapabilities()const
CCoeControl::RefetchPixelMappingL()
CCoeControl::RemoveFromParent()
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
CCoeControl::RequestRelayout(const CCoeControl *)
CCoeControl::ResetGc()const
CCoeControl::ScreenFont(const TCoeFont &)const
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetContainerWindowL(const CCoeControl &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetDimmed(TBool)
CCoeControl::SetExtent(const TPoint &,const TSize &)
CCoeControl::SetExtentToWholeScreen()
CCoeControl::SetFocus(TBool,TDrawNow)
CCoeControl::SetFocusing(TBool)
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
CCoeControl::SetGc(CWindowGc *)const
CCoeControl::SetGloballyCapturing(TBool)
CCoeControl::SetHitTest(const MCoeControlHitTest *)
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
CCoeControl::SetMaximumWidth(TInt)
CCoeControl::SetMopParent(MObjectProvider *)
CCoeControl::SetNeighbor(CCoeControl *)
CCoeControl::SetNonFocusing()
CCoeControl::SetObserver(MCoeControlObserver *)
CCoeControl::SetParent(CCoeControl *)
CCoeControl::SetPointerCapture(TBool)
CCoeControl::SetPosition(const TPoint &)
CCoeControl::SetRect(const TRect &)
CCoeControl::SetSize(const TSize &)
CCoeControl::SetSizeWithoutNotification(const TSize &)
CCoeControl::SetTextBaselineSpacing(TInt)
CCoeControl::SetUniqueHandle(TInt)
CCoeControl::SetZoomFactorL(TInt,TZoomType)
CCoeControl::Size()const
CCoeControl::SystemGc()const
CCoeControl::TextBaselineOffset(const TSize &)const
CCoeControl::TextDrawer(TInt)const
CCoeControl::UniqueHandle()const
CCoeControl::Window()const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()
CEikBorderedControl::Border()const
CEikBorderedControl::CEikBorderedControl()
CEikBorderedControl::CEikBorderedControl(const TGulBorder &)
CEikBorderedControl::HasBorder()const
CEikBorderedControl::SetAdjacent(TInt)
CEikBorderedControl::SetBorder(TGulBorder::TBorderType)
CEikBorderedControl::SetBorder(TInt)
CEikMfne::AddField(CEikMfneField *)
CEikMfne::BorderMargins()const
CEikMfne::CEikMfne()
CEikMfne::Convert(const TTime &)
CEikMfne::Convert(const TTimeIntervalSeconds &)
CEikMfne::CreateFieldArrayL(TInt)
CEikMfne::CurrentField()const
CEikMfne::DrawNowAndLeaveWithTimeDateFormatInfoMsgL(TInt,const TTime &)const
CEikMfne::Field(TInt)const
CEikMfne::FieldIsAboutToBeDeHighlighted(CEikMfneField *,TBool &)
CEikMfne::FocusChanged(TDrawNow)
CEikMfne::Font()const
CEikMfne::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
CEikMfne::GetCursorInfo(TPoint &,TInt &,TInt &,TInt &)
CEikMfne::GetFeature(TInt,TInt &)const
CEikMfne::HandleInteraction(TBool,TInt,TInt,CEikMfneField::THighlightType,TBool &,TBool &)
CEikMfne::HandleMfneCommandL(TInt)
CEikMfne::HandleResourceChange(TInt)
CEikMfne::HighlightField(TInt)
CEikMfne::InputCapabilities()const
CEikMfne::InvalidFieldAlert()
CEikMfne::LeaveWithAlert(TInt)
CEikMfne::MakeVisible(TBool)
CEikMfne::MfneSize()const
CEikMfne::MfneSize(TBool)
CEikMfne::MinimumSize()
CEikMfne::MopSupplyObject(TTypeUid)
CEikMfne::NumFields()const
CEikMfne::PrepareForFocusLossL()
CEikMfne::ReadDate(TResourceReader &)
CEikMfne::ReadDuration(TResourceReader &)
CEikMfne::ReadTime(TResourceReader &)
CEikMfne::ReadTimeAndDate(TResourceReader &)
CEikMfne::ReadTimeOffset(TResourceReader &)
CEikMfne::ReportStateChangeEventL()
CEikMfne::ReportUpdate()
CEikMfne::ResetFieldArray()
CEikMfne::SetCurrentField(TInt)
CEikMfne::SetFeature(TInt,TInt)
CEikMfne::SetFirstEditableField()
CEikMfne::SetFont(const CFont *)
CEikMfne::SetMfneAlignment(TInt)
CEikMfne::SetSkinBackgroundControlContextL(MAknsControlContext *)
CEikMfne::SetSkinTextColorL(TInt,TInt)
CEikMfne::SetSuppressBackgroundDrawing(TBool)
CEikMfne::SetUpAndDownKeysConsumed(TBool)
CEikMfne::SetUseOverrideColors(TBool)
CEikMfne::SetValidateCallBack(TCallBack)
CEikMfne::SizeChanged()
CEikMfne::SupportsFeature(TInt)const
CEikMfne::WriteInternalStateL(RWriteStream &)const
CEikMfne::~CEikMfne()

Detailed Description

The CAknIpFieldEditor class implements an editor for an IP address. Based on Crystal CCknIpFieldEditor.

Since
Series 60 0.9

Constructor & Destructor Documentation

CAknIpFieldEditor ( )

IMPORT_CCAknIpFieldEditor()

C++ default constructor.

Member Function Documentation

Address ( )

IMPORT_C TInetAddrAddress()const

Gets the editor's value. Method for reading the editor value.

Returns: TInetAddr struct including the address.

ConstructFromResourceL ( TResourceReader & )

IMPORT_C voidConstructFromResourceL(TResourceReader &aResourceReader)[virtual]

Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)

From CCoeControl. Constructs controls from a resource file. Essential for Dialog/Form construction. Method for constructing the control from resources. Gets one parameter: TResourceReader& aResourceReader - Reference to a resource reader associated to a IP Field Editor control resource.

ParameterDescription
aResourceReaderThe resource reader with which to access IP_FIELD_EDITOR resource.

ConstructL ( TInetAddr &, TInetAddr &, TInetAddr &, const TInt )

voidConstructL(TInetAddr &aMinimumAddress,
TInetAddr &aMaximumAddress,
TInetAddr &aInitialAddress,
const TIntaFlags = 0
)

Two phased constructor.

ParameterDescription
aMinimumAddressReference to a TInetAddr struct. Defines lower limits for IP editor fields.
aMaximumAddressReference to a TInetAddr struct. Defines upper limits for IP editor fields.
aInitialAddressReference to a TInetAddr struct. Defines the initial address of the IP editor.
aFlagsThe number field's flags. Default is 0.

Returns: Pointer to the fully constructed CAknIpFieldEditor object.

GetMinimumAndMaximum ( TInetAddr &, TInetAddr & )

IMPORT_C voidGetMinimumAndMaximum(TInetAddr &aMinimumAddress,
TInetAddr &aMaximumAddress
)const [virtual]

Gets the minimum and maximum editor values. Method for getting editor fields' minimum and maximum values. Gets two parameters: TInetAddr& aMinimumFieldValues - Reference to a TInetAddr struct in which the lower limits are wanted to be returned. IP editor fields. TInetAddr& aMaximumFieldValues - Reference to a TInetAddr struct in which the upper limits are wanted to be returned.

ParameterDescription
aMinimumAddressReference to a TInetAddr struct in which the lower limits are wanted to be returned.
aMaximumAddressReference to a TInetAddr struct in which the upper limits are wanted to be returned.

HandlePointerEventL ( const TPointerEvent & )

IMPORT_C voidHandlePointerEventL(const TPointerEvent &aPointerEvent)[virtual]

Reimplemented from CEikMfne::HandlePointerEventL(const TPointerEvent &)

From CCoeControl.

Handles pointer events.

ParameterDescription
aPointerEventThe pointer event.

NewL ( TInetAddr &, TInetAddr &, TInetAddr & )

IMPORT_C CAknIpFieldEditor *NewL(TInetAddr &aMinimumAddress,
TInetAddr &aMaximumAddress,
TInetAddr &aInitialAddress
)[static]

Two phased constructor. Constructs a CAknIpFieldEditor object using given parameters. Public method for constructing a CAknIpFieldEditor object. Gets four parameters: TInetAddr& aMinimumFieldValues - Reference to a TInetAddr struct. Defines lower limits for IP editor fields. TInetAddr& aMaximumFieldValues - Reference to a TInetAddr struct. Defines upper limits for IP editor fields. TInetAddr& aInitialAddress - Reference to a TInetAddr struct. Defines the initial address the IP editor.

ParameterDescription
aMinimumAddressReference to a TInetAddr struct. Defines lower limits for IP editor fields.
aMaximumAddressReference to a TInetAddr struct. Defines upper limits for IP editor fields.
aInitialAddressReference to a TInetAddr struct. Defines the initial address of the IP editor.

Returns: Pointer to the fully constructed CAknIpFieldEditor object.

NewL ( )

IMPORT_C CAknIpFieldEditor *NewL()[static]

Two phased constructor. Requires a call for ConstructFromResourcesL() method to finish construction. Public method for constructing a CAknIpFieldEditor object. Requires a call for ConstructFromResourcesL method to finish construction.

Returns: Pointer to the constructed CAknIpFieldEditor object.

OfferKeyEventL ( const TKeyEvent &, TEventCode )

IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[virtual]

Reimplemented from CEikMfne::OfferKeyEventL(const TKeyEvent &,TEventCode)

From CCoeControl. Handles key events. Called by framework when a key event occurs. Method for handling key events.

ParameterDescription
aKeyEventThe key event that occured.
aTypeThe type of key event that occured.

Returns: EKeyWasConsumed if the event was processed, EKeyWasNotConsumed if the event was not processed

ReadIPAddress ( TResourceReader & )

IMPORT_C TInetAddrReadIPAddress(TResourceReader &aResourceReader)

Gets an IP address from resources. Method for reading an IP address from resources. Gets one parameter: TResourceReader& aResourceReader - Reference to a resource reader associated to the IP address resource.

ParameterDescription
aResourceReaderReference to a resource reader associated to the IP_FIELD resource.

Returns: TInetAddr struct including the address.

SetAddress ( const TInetAddr & )

IMPORT_C voidSetAddress(const TInetAddr &aAddress)

Sets the editor's value dynamically. Method for setting the editor fields dynamically. Gets one parameter: const TInetAddr& aAddress - Reference to a TInetAddr struct including the new address.

ParameterDescription
aAddressReference to a TInetAddr struct including the new address.

SetMinimumAndMaximum ( const TInetAddr &, const TInetAddr & )

IMPORT_C voidSetMinimumAndMaximum(const TInetAddr &aMinimumAddress,
const TInetAddr &aMaximumAddress
)[virtual]

Sets the minimum and maximum editor values. Method for setting editor fields' minimum and maximum values. Gets two parameters: TInetAddr& aMinimumFieldValues - Reference to a TInetAddr struct defining the lower limits of the editor fields. IP editor fields. TInetAddr& aMaximumFieldValues - Reference to a TInetAddr struct defining the upper limits of the editor fields.

ParameterDescription
aMinimumAddressReference to a TInetAddr struct defining the lower limits of the editor fields.
aMaximumAddressReference to a TInetAddr struct defining the upper limits of the editor fields.