API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknquerydialog.h>
Inherits CAknQueryDialog.
Inherited by CAknMultiLineIpQueryDialog.
Object of this class is created by using NewL method and by passing parameters as appropriate.
Attention: When deriving from this class, you must call SetDataL()
during second phase construction.
Enumeration for tones. The tone played before the dialog is shown. Application specific tones may be played by casting the
application defined Sound ID (SID), to
TTone
.
Enumeration values:
ENoTone
No tone is played.
EConfirmationTone
A confirmation tone is played.
EWarningTone
A warning tone is played.
EErrorTone
An error tone is played.
Public Member Functions |
|
virtual IMPORT_C | ~CAknMultiLineDataQueryDialog () |
Destructor. |
|
IMPORT_C void | SetPromptL (const TDesC &aFirstPrompt, const TDesC &aSecondPrompt) |
Sets a prompt text for the query. |
|
IMPORT_C void | SetMaxLengthOfFirstEditor (TInt aFirstTextEditorMaxLength) |
Sets a max length for the first editor in a query. |
|
IMPORT_C void | SetMaxLengthOfSecondEditor (TInt aSecondTextEditorMaxLength) |
Sets a max length for the second editor in a query. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TTime *aTime, TTime *aTime2, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TDes *aDataText, TDes *aDataText2, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TDes *aDataText, TTime *aTime, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TDes *aDataText, TInt *aNumber, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TDes *aDataText, TTimeIntervalSeconds *aDuration, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TTime *aTime, TTimeIntervalSeconds *aDuration, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (TInt *aNumber, TInt *aNumber2, TDesC *aPrompt=NULL, TDesC *aPrompt2=NULL, const TTone &aTone=ENoTone) |
Constructor. |
|
Static Public Member Functions |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TTime &aTime1, TTime &aTime2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TDes &aText1, TDes &aText2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TDes &aText1, TTime &aTime2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TDes &aText1, TInt &aNum2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TDes &aText1, TTimeIntervalSeconds &aDur2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TTime &aTime1, TTimeIntervalSeconds &aDur2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TInt &aNum1, TInt &aNum2, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
static IMPORT_C CAknMultiLineDataQueryDialog * | NewL (TPosition &aPos, TTone aTone=ENoTone) |
Creates a new instance of a multiline dialog. |
|
Protected Member Functions |
|
template<class T1, class T2> | |
void | SetDataL (T1 &aData1, T2 &aData2) |
Sets the query data for the first and the second line. |
|
IMPORT_C | CAknMultiLineDataQueryDialog (const TTone &aTone) |
C++ default constructor. |
|
virtual IMPORT_C TBool | OkToExitL (TInt aButtonId) |
From CEikdialog . |
|
IMPORT_C void | PreLayoutDynInitL () |
From CEikdialog . |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
IMPORT_C void | UpdateLeftSoftKeyL () |
If the query text is ok (retrieved form query controls) the left soft key is displayed, otherwise it is hidden. |
|
IMPORT_C void | DoSetPromptL () |
Sets the prompt inside the query control. |
|
IMPORT_C TBool | NeedToDismissQueryL (const TKeyEvent &aKeyEvent) |
Allows dismissing of queries. |
|
IMPORT_C CAknMultilineQueryControl * | FirstControl () const |
Access to 1st query control. |
|
IMPORT_C CAknMultilineQueryControl * | SecondControl () const |
Access to 2nd query control. |
|
IMPORT_C CAknQueryControl * | QueryControl () const |
Gets a querycontrol. |
|
IMPORT_C CAknPopupHeadingPane * | QueryHeading () const |
Not implemented. |
|
template<class T> | |
T & | FirstData (const T &) |
Data access. |
|
template<class T> | |
T & | SecondData (const T &) |
Data access. |
|
template<class T> | |
const T & | FirstData (const T &) const |
Data access. |
|
template<class T> | |
const T & | SecondData (const T &) const |
Data access. |
|
IMPORT_C TPtrC | SecondPrompt () const |
Prompts access for derived classes. |
|
Static Protected Member Functions |
|
template<class T1, class T2> | |
static CAknMultiLineDataQueryDialog * | DoNewL (T1 &aData1, T2 &aData2, const TTone &aTone) |
Utility function called by NewL() method - should really be private but it is left here to show to people extending this class what their NewL() method should do. |
|
Protected Attributes |
|
TDes16 * | iText |
Deprecated - use data access template methods instead A text of the first line. |
|
TDes16 * | iSecondText |
Deprecated do not use A text of the secondline. |
|
Destructor. |
|
C++ default constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Constructor.
|
|
Utility function called by Creates new instance of the multiline dialog.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Sets the prompt inside the query control. Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Access to 1st query control.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in The client ultimately owns the data this reference references and so it should never need to call these methods. Derived class however, might need to set or get the data and hence this method have been provided. The derived class is responsible for choosing the correct type, if not the cast will fail. |
|
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in The client ultimately owns the data this reference references and so it should never need to call these methods. Derived class however, might need to set or get the data and hence this method have been provided. The derived class is responsible for choosing the correct type, if not the cast will fail. |
|
From Handles pointer events.
Reimplemented from CAknQueryDialog. |
|
From Handles a change to the control's resources. The types of resources handled are those which are shared across the environment, e.g. colours or fonts.
Reimplemented from CEikDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Allows dismissing of queries. Same as base class implementation only take into consideration both controls Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
Creates a new instance of a multiline dialog.
|
|
From
This function is called by the
Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
From 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. Note:
Control values that should not influence the sizing and layout are set using Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Gets a querycontrol.
Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Not implemented.
Reimplemented from CAknQueryDialog. |
|
Access to 2nd query control.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in The client ultimately owns the data this reference references and so it should never need to call these methods. Derived class however, might need to set or get the data and hence this method have been provided. The derived class is responsible for choosing the correct type, if not the cast will fail. |
|
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in The client ultimately owns the data this reference references and so it should never need to call these methods. Derived class however, might need to set or get the data and hence this method have been provided. The derived class is responsible for choosing the correct type, if not the cast will fail. |
|
Prompts access for derived classes.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Sets the query data for the first and the second line.
Must be called by derived classes during second phase construction ( First line data. Second line data. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Sets a max length for the first editor in a query.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Sets a max length for the second editor in a query.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
Sets a prompt text for the query. This will override the text given in the constructor.
Reimplemented in CAknMultiLineIpQueryDialog. |
|
If the query text is ok (retrieved form query controls) the left soft key is displayed, otherwise it is hidden. Reimplemented from CAknQueryDialog. Reimplemented in CAknMultiLineIpQueryDialog. |
|
Deprecated do not use A text of the secondline.
|
|
Deprecated - use data access template methods instead A text of the first line.
|