CAknIpFieldEditor Class Reference

class CAknIpFieldEditor : public CEikMfne

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

Since
Series 60 0.9
Public Member Functions
CAknIpFieldEditor()
IMPORT_C TInetAddrAddress()
IMPORT_C voidConstructFromResourceL(TResourceReader &)
voidConstructL(TInetAddr &, TInetAddr &, TInetAddr &, const TInt)
IMPORT_C voidGetMinimumAndMaximum(TInetAddr &, TInetAddr &)
IMPORT_C voidHandlePointerEventL(const TPointerEvent &)
IMPORT_C CAknIpFieldEditor *NewL(TInetAddr &, TInetAddr &, TInetAddr &)
IMPORT_C CAknIpFieldEditor *NewL()
IMPORT_C TKeyResponseOfferKeyEventL(const TKeyEvent &, TEventCode)
IMPORT_C TInetAddrReadIPAddress(TResourceReader &)
IMPORT_C voidSetAddress(const TInetAddr &)
IMPORT_C voidSetMinimumAndMaximum(const TInetAddr &, const TInetAddr &)
Private Member Functions
IMPORT_C voidCEikMfne_Reserved()
IMPORT_C void *ExtensionInterface(TUid)
voidSplitAddressIntoFields(const TInetAddr &, TUint8 &, TUint8 &, TUint8 &, TUint8 &)
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::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()
Inherited Enumerations
CCoeControl:TZoomType
CEikMfne:TFeatureId
CEikMfne:TFingerSupportParams
Private Attributes
TInt iSpare
TInt iSpare2
Inherited Attributes
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CEikBorderedControl::iBorder

Constructor & Destructor Documentation

CAknIpFieldEditor()

IMPORT_CCAknIpFieldEditor()

C++ default constructor.

Member Functions Documentation

Address()

IMPORT_C TInetAddrAddress()const

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

CEikMfne_Reserved()

IMPORT_C voidCEikMfne_Reserved()[private, virtual]

ConstructFromResourceL(TResourceReader &)

IMPORT_C voidConstructFromResourceL(TResourceReader &aResourceReader)[virtual]

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.

Parameters

TResourceReader & 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.

Parameters

TInetAddr & aMinimumAddressReference to a TInetAddr struct. Defines lower limits for IP editor fields.
TInetAddr & aMaximumAddressReference to a TInetAddr struct. Defines upper limits for IP editor fields.
TInetAddr & aInitialAddressReference to a TInetAddr struct. Defines the initial address of the IP editor.
const TInt aFlags = 0The number field's flags. Default is 0.

ExtensionInterface(TUid)

IMPORT_C void *ExtensionInterface(TUidaInterface)[private, virtual]

Parameters

TUid aInterface

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.

Parameters

TInetAddr & aMinimumAddressReference to a TInetAddr struct in which the lower limits are wanted to be returned.
TInetAddr & 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]

From CCoeControl.

Handles pointer events.

Parameters

const TPointerEvent & 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.

Parameters

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

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.

OfferKeyEventL(const TKeyEvent &, TEventCode)

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

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

Parameters

const TKeyEvent & aKeyEventThe key event that occured.
TEventCode aTypeThe type of key event that occured.

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.

Parameters

TResourceReader & aResourceReaderReference to a resource reader associated to the IP_FIELD resource.

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.

Parameters

const TInetAddr & 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.

Parameters

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

SplitAddressIntoFields(const TInetAddr &, TUint8 &, TUint8 &, TUint8 &, TUint8 &)

voidSplitAddressIntoFields(const TInetAddr &aAddress,
TUint8 &aFieldA,
TUint8 &aFieldB,
TUint8 &aFieldC,
TUint8 &aFieldD
)const [private]

Method takes a TInetAddr and returns 4 separate 8-bit unsigned fields const TInetAddr& aAddress - Reference to a TInetAddr struct

Parameters

const TInetAddr & aAddress
TUint8 & aFieldA
TUint8 & aFieldB
TUint8 & aFieldC
TUint8 & aFieldD

Member Data Documentation

TInt iSpare

TInt iSpare[private]

TInt iSpare2

TInt iSpare2[private]