UIQ Technology
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: QikIpEditor.h
Link against: qikctl.lib

Class CQikIpEditor

class CQikIpEditor : public CEikBorderedControl, public MQikControlStreamInterface, public MQikTextRepresentationInterface, public MQikCommandHandler, public MQikCommandListOwner;

Description

IP editor.

This class provides a control to edit IP addresses. It handles IPv4 and IPv6 addresses. The IP mode is determined by the address passed to the editor or by setting it explicity.

Input format:

Output format: The output is always given in normal form, i.e. not short form for IPv6 address.

Assosicated resource: QIK_IP_EDITOR.

Derivation

  • MObjectProvider - An interface that allows an object to be part of a network of object providers
  • CBase - Base class for all classes to be instantiated on the heap
  • Members

    Defined in CQikIpEditor:
    CQikIpEditor(), ConstructFromResourceL(), ConstructL(), Draw(), FocusChanged(), GetColorUseListL(), HandleCommandL(), HandlePointerEventL(), HandleResourceChange(), IpAddress(), MapCommandHandler(), MinimumSize(), Mode(), MopSupplyObject(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), RestoreUserDataL(), SetControlValueObserver(), SetIpAddress(), SetMode(), SizeChanged(), StoreUserDataL(), TextRepresentationL(), WriteInternalStateL(), ~CQikIpEditor()

    Inherited from CBase:
    Delete(), Extension_(), operator new()

    Inherited from CCoeControl:
    AccumulatedZoom(), ActivateGc(), BackedUpWindow(), Background(), CapturesPointer(), ClaimPointerGrab(), CloseWindow(), Components(), ControlContext(), ControlEnv(), CopyControlContextFrom(), CreateBackedUpWindowL(), CreateWindowL(), DeactivateGc(), DrawBackground(), DrawDeferred(), DrawForeground(), DrawNow(), DrawableWindow(), EAbsoluteZoom, ERelativeZoom, EnableDragEvents(), FindBackground(), FindFontProvider(), GetColor(), GetGc(), GrabbingComponent(), HandleComponentControlsResourceChange(), HandleRedrawEvent(), HitTest(), IgnoreEventsUntilNextPointerUp(), Index(), InitComponentArrayL(), IsActivated(), IsBackedUp(), IsBeingDestroyed(), IsBlank(), IsDimmed(), IsFocused(), IsNonFocusing(), IsReadyToDraw(), IsVisible(), LayoutManager(), MaximumWidth(), Observer(), OverrideColorL(), OwnsWindow(), Parent(), Position(), PositionRelativeToScreen(), Rect(), RecursivelyMergedInputCapabilities(), ReportEventL(), Reserved_CCoeControl_10(), Reserved_CCoeControl_11(), Reserved_CCoeControl_12(), Reserved_CCoeControl_13(), ResetGc(), ScreenFont(), SetAllowStrayPointers(), SetBackground(), SetBlank(), SetCanDrawOutsideRect(), SetComponentsToInheritVisibility(), SetControlContext(), SetCornerAndSize(), SetExtent(), SetExtentToWholeScreen(), SetFocus(), SetFocusing(), SetFontProviderL(), SetGc(), SetGloballyCapturing(), SetHitTest(), SetMaximumWidth(), SetMopParent(), SetNonFocusing(), SetObserver(), SetPointerCapture(), SetPosition(), SetRect(), SetSize(), SetSizeWithoutNotification(), SetUniqueHandle(), SetZoomFactorL(), Size(), SystemGc(), TZoomType, TextDrawer(), UniqueHandle(), Window(), ZoomWithType(), iCoeEnv, iContext, iPosition, iSize

    Inherited from CEikBorderedControl:
    ActivateL(), Border(), ComponentControl(), CountComponentControls(), GetHelpContext(), HandleControlArrayEventL(), HandlePointerBufferReadyL(), HasBorder(), InputCapabilities(), MakeVisible(), PositionChanged(), RequestRelayout(), SetAdjacent(), SetBorder(), SetContainerWindowL(), SetDimmed(), SetLayoutManagerL(), SetNeighbor(), SetParent(), SetTextBaselineSpacing(), TextBaselineOffset(), iBorder

    Inherited from MEikBorderedControl:
    ETypeId, anonymous

    Inherited from MObjectProvider:
    MopGetObject(), MopGetObjectNoChaining()

    Inherited from MQikCommandHandler:
    HandleAttemptDimmedSelectionL()


    Construction and destruction


    CQikIpEditor()

    IMPORT_C CQikIpEditor();

    Description

    Constructor.


    ~CQikIpEditor()

    virtual IMPORT_C ~CQikIpEditor();

    Description

    Destructor.


    ConstructL()

    IMPORT_C void ConstructL();

    Description

    Second phase construction.

    [Top]


    Member functions


    SetMode()

    IMPORT_C void SetMode(TIpType aIPMode);

    Description

    Set mode of the ip editor.

    Parameters

    TIpType aIPMode

    The mode to use.

    Panic codes

    EQikPanicUnknownIPMode

    DEBUG_BUILDS: Unknown IP mode. RELEASE_BUILDS: does nothing.


    Mode()

    IMPORT_C TIpType Mode() const;

    Description

    Get the mode the editor is in.

    Return value

    TIpType

    The current mode.


    SetIpAddress()

    IMPORT_C TInt SetIpAddress(const TDesC &aIpAddress);

    Description

    Set IP address in editor.

    Parameters

    const TDesC &aIpAddress

    The IP address.

    Return value

    TInt

    KErrNone if no error, else KErrArgument .


    IpAddress()

    IMPORT_C void IpAddress(TDes &aIpAddress) const;

    Description

    Get IP address in editor.

    Parameters

    TDes &aIpAddress

    IP address in editor.


    MopSupplyObject()

    protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);

    Description

    Gets an object whose type is encapsulated by the specified TTypeUid object.

    Parameters

    TTypeUid aId

    Encapsulates the Uid that identifies the type of object required.

    Return value

    TTypeUid::Ptr

    Encapsulates the pointer to the object provided. Note that the encapsulated pointer may be NULL.


    ConstructFromResourceL()

    virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);

    Description

    Parameters

    TResourceReader &aReader

    See also:


    MinimumSize()

    virtual IMPORT_C TSize MinimumSize();

    Description

    Return value

    TSize

    See also:


    HandleResourceChange()

    virtual IMPORT_C void HandleResourceChange(TInt aType);

    Description

    Parameters

    TInt aType

    See also:


    OfferKeyEventL()

    virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);

    Description

    Parameters

    const TKeyEvent &aKeyEvent

    TEventCode aType

    Return value

    TKeyResponse

    See also:


    GetColorUseListL()

    virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;

    Description

    Parameters

    CArrayFix< TCoeColorUse > &aColorUseList

    See also:


    PrepareForFocusLossL()

    virtual IMPORT_C void PrepareForFocusLossL();

    Description

    See also:


    PrepareForFocusGainL()

    virtual IMPORT_C void PrepareForFocusGainL();

    Description

    See also:


    HandlePointerEventL()

    protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);

    Description

    Parameters

    const TPointerEvent &aPointerEvent

    See also:


    SizeChanged()

    protected: virtual IMPORT_C void SizeChanged();

    Description

    See also:


    WriteInternalStateL()

    protected: virtual IMPORT_C void WriteInternalStateL(RWriteStream &aWriteStream) const;

    Description

    Parameters

    RWriteStream &aWriteStream

    See also:


    FocusChanged()

    protected: virtual IMPORT_C void FocusChanged(TDrawNow aDrawNow);

    Description

    Parameters

    TDrawNow aDrawNow


    Draw()

    protected: virtual IMPORT_C void Draw(const TRect &aRect) const;

    Description

    Parameters

    const TRect &aRect

    See also:


    TextRepresentationL()

    virtual IMPORT_C HBufC *TextRepresentationL() const;

    Description

    This method shall return a textual representation of the controls current value

    Return value

    HBufC *


    SetControlValueObserver()

    virtual IMPORT_C void SetControlValueObserver(MQikControlValueObserver *aObserver);

    Description

    This method is used to set the control value observer that shall later be notified of control value changes.

    Parameters

    MQikControlValueObserver *aObserver


    HandleCommandL()

    protected: virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);

    Description

    HandleCommandL is called when the command has been activated by the user.

    Parameters

    CQikCommand &aCommand


    MapCommandHandler()

    protected: virtual IMPORT_C MQikCommandHandler *MapCommandHandler(CQikCommand &aCommand);

    Description

    Called from the CQikCommandManager for each command being added which do not already has its handler set.

    Parameters

    CQikCommand &aCommand

    Return value

    MQikCommandHandler *


    StoreUserDataL()

    virtual IMPORT_C void StoreUserDataL(RWriteStream &aWriteStream) const;

    Description

    Write the current value of the control to aWriteStream

    Parameters

    RWriteStream &aWriteStream

    The stream that the current control value should be written to


    RestoreUserDataL()

    virtual IMPORT_C void RestoreUserDataL(RReadStream &aReadStream);

    Description

    Read the previously written value of the control from aReadStream

    Parameters

    RReadStream &aReadStream

    The stream that holds the previously stored control value

    Terms and conditions of use of the material