|
|
|||
Location:
QikIpEditor.h
Link against: qikctl.lib
class CQikIpEditor : public CEikBorderedControl, public MQikControlStreamInterface, public MQikTextRepresentationInterface, public MQikCommandHandler, public MQikCommandListOwner;
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:
IPv4 addresses: n.n.n.n where n is decimal 0-255.
IPv6 addresses: n:n:n:n:n:n:n:n where n is hexadecimal 0-ffff.
Pv4 compatible addresses: 0:0:0:0:0:0:n.n.n.n where n is decimal 0-255.
IPv4 mapped address: 0:0:0:0:0:ffff:n.n.n.n where n is decimal 0-255.
All types of short verisons for IPv6 addresses are also supported.
Output format: The output is always given in normal form, i.e. not short form for IPv6 address.
Assosicated resource: QIK_IP_EDITOR.
MQikCommandListOwner - Interface for classes adding commandsMQikCommandHandler - Interface for classes responsible of executing commandsMQikTextRepresentationInterface - MQikTextRepresentationInterface should be implemented by controls that are normally shown in a container pop-out e.gMQikControlStreamInterface - MQikControlStreamInterface is used by controls to be able to handle cancel behaviour from e.gMEikBorderedControl - Interface for bordered controlsMObjectProvider - An interface that allows an object to be part of a network of object providersCBase - Base class for all classes to be instantiated on the heapCCoeControl - Control base class from which all other controls are derivedCEikBorderedControl - A control which is drawn surrounded by a rectangular borderCQikIpEditor - IP editorDefined 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()
IMPORT_C void SetMode(TIpType aIPMode);
Set mode of the ip editor.
|
|
IMPORT_C TIpType Mode() const;
Get the mode the editor is in.
|
IMPORT_C TInt SetIpAddress(const TDesC &aIpAddress);
Set IP address in editor.
|
|
IMPORT_C void IpAddress(TDes &aIpAddress) const;
Get IP address in editor.
|
protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Gets an object whose type is encapsulated by the specified TTypeUid object.
|
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
|
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
|
protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
|
protected: virtual IMPORT_C void WriteInternalStateL(RWriteStream &aWriteStream) const;
|
protected: virtual IMPORT_C void FocusChanged(TDrawNow aDrawNow);
|
protected: virtual IMPORT_C void Draw(const TRect &aRect) const;
|
CCoeControl::Draw()virtual IMPORT_C HBufC *TextRepresentationL() const;
This method shall return a textual representation of the controls current value
|
virtual IMPORT_C void SetControlValueObserver(MQikControlValueObserver *aObserver);
This method is used to set the control value observer that shall later be notified of control value changes.
|
protected: virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
HandleCommandL is called when the command has been activated by the user.
|
protected: virtual IMPORT_C MQikCommandHandler *MapCommandHandler(CQikCommand &aCommand);
Called from the CQikCommandManager for each command being added which do not already has its handler set.
|
|
virtual IMPORT_C void StoreUserDataL(RWriteStream &aWriteStream) const;
Write the current value of the control to aWriteStream
|
virtual IMPORT_C void RestoreUserDataL(RReadStream &aReadStream);
Read the previously written value of the control from aReadStream
|