CAknIpAddressQueryDialog Class Reference

API published in: S60 1st Ed

Link against: avkon.lib

Capability Information

Required Capabilities

None


#include <aknquerydialog.h>

Inherits CAknQueryDialog.


Detailed Description

This class should be used when user is reguest to enter IP address.

Public Member Functions

virtual IMPORT_C  ~CAknIpAddressQueryDialog ()
  C++ Destructor.
IMPORT_C void  SetMinimumAndMaximum (const TInetAddr &aMinimumAddress, const TInetAddr &aMaximumAddress)
  Set maximum and minimum addresses to editor.
virtual IMPORT_C TBool  NeedToDismissQueryL (const TKeyEvent &aKeyEvent)
  Allows dismissing of queries.

Static Public Member Functions

static IMPORT_C CAknIpAddressQueryDialog NewL (TInetAddr &aInetAddr, const TTone &aTone=ENoTone)
  Second phase construction.

Protected Member Functions

virtual IMPORT_C CAknQueryControl QueryControl () const
IMPORT_C void  SetSizeAndPosition (const TSize &aSize)
  From CEikdialog EIKON provides an implementation of this function, which positions the dialog in the centre of the screen.
IMPORT_C void  PreLayoutDynInitL ()
  From CEikdialog.
IMPORT_C void  PostLayoutDynInitL ()
  From CEikdialog.
virtual IMPORT_C void  DoSetPromptL ()
  Set the prompt inside the query control.
virtual IMPORT_C TBool  OkToExitL (TInt aButtonId)
  From CEikdialog.
IMPORT_C void  UpdateLeftSoftKeyL ()
  If the query text is ok (retrieved form query control) then display the left soft key, otherwise hide it.
TInetAddr &  InetAddr ()
const TInetAddr &  InetAddr () const

Protected Attributes

TInetAddr &  iInetAddr
  data

Constructor & Destructor Documentation

virtual IMPORT_C CAknIpAddressQueryDialog::~CAknIpAddressQueryDialog  )  [virtual]
 

C++ Destructor.


Member Function Documentation

virtual IMPORT_C void CAknIpAddressQueryDialog::DoSetPromptL  )  [protected, virtual]
 

Set the prompt inside the query control.

If dialog is active redo layout and draw.

Reimplemented from CAknQueryDialog.

const TInetAddr& CAknIpAddressQueryDialog::InetAddr  )  const [inline, protected]
 
Returns:
data
TInetAddr& CAknIpAddressQueryDialog::InetAddr  )  [inline, protected]
 
Returns:
data
virtual IMPORT_C TBool CAknIpAddressQueryDialog::NeedToDismissQueryL const TKeyEvent &  aKeyEvent  )  [virtual]
 

Allows dismissing of queries.

Clients can override this and implement something different.

Reimplemented from CAknQueryDialog.

static IMPORT_C CAknIpAddressQueryDialog* CAknIpAddressQueryDialog::NewL TInetAddr &  aInetAddr,
const TTone aTone = ENoTone
[static]
 

Second phase construction.

virtual IMPORT_C TBool CAknIpAddressQueryDialog::OkToExitL TInt  aButtonId  )  [protected, virtual]
 

From CEikdialog.

This function is called by the EIKON framework if the user activates a button in the button panel. It is not called if the Cancel button is activated, unless the EEikDialogFlagNotifyEsc flag is set.

Parameters:
aButtonId  The ID of the button that was activated
Returns:
Should return ETrue if the dialog should exit, and EFalse if it should not.

Reimplemented from CAknQueryDialog.

IMPORT_C void CAknIpAddressQueryDialog::PostLayoutDynInitL  )  [protected, virtual]
 

From CEikdialog.

This function is called by the EIKON dialog framework just before the dialog is activated, after it has called PreLayoutDynInitL() and the dialog has been sized.

Reimplemented from CAknQueryDialog.

IMPORT_C void CAknIpAddressQueryDialog::PreLayoutDynInitL  )  [protected, virtual]
 

From CEikdialog.

This function is called by the EIKON dialog framework just before the dialog is activated, but before it is sized, and before PostLayoutDynInitL() is called.

Reimplemented from CAknQueryDialog.

virtual IMPORT_C CAknQueryControl* CAknIpAddressQueryDialog::QueryControl  )  const [protected, virtual]
 
Returns:
pointer to query control or NULL

Reimplemented from CAknQueryDialog.

IMPORT_C void CAknIpAddressQueryDialog::SetMinimumAndMaximum const TInetAddr &  aMinimumAddress,
const TInetAddr &  aMaximumAddress
 

Set maximum and minimum addresses to editor.

This override values given in resource. only values inside the initial minimum and maximum are permitted

Parameters:
aMinimumAddress  Minimumm address
aMaximumAddress  Maximum address.
IMPORT_C void CAknIpAddressQueryDialog::SetSizeAndPosition const TSize &  aSize  )  [protected, virtual]
 

From CEikdialog EIKON provides an implementation of this function, which positions the dialog in the centre of the screen.

However, it can be overridden by derived classes..

Parameters:
aSize  The size for the dialog.

Reimplemented from CAknQueryDialog.

IMPORT_C void CAknIpAddressQueryDialog::UpdateLeftSoftKeyL  )  [protected, virtual]
 

If the query text is ok (retrieved form query control) then display the left soft key, otherwise hide it.

Reimplemented from CAknQueryDialog.


Field Documentation

TInetAddr& CAknIpAddressQueryDialog::iInetAddr [protected]
 

data


The documentation for this class was generated from the following file:

Copyright © Nokia Corporation 2001-2008
Back to top