class CAknMultiLineDataQueryDialog : public CAknQueryDialog |
Query dialog with data input on more than one line (2 lines at the moment).
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.
Protected Member Functions | |
---|---|
CAknMultiLineDataQueryDialog(const TTone &) | |
CAknMultiLineDataQueryDialog * | DoNewL(T1 &, T2 &, const TTone &) |
IMPORT_C void | DoSetPromptL() |
IMPORT_C CAknMultilineQueryControl * | FirstControl() |
T & | FirstData(const T &) |
const T & | FirstData(const T &) |
IMPORT_C void | HandleResourceChange(TInt) |
IMPORT_C TBool | NeedToDismissQueryL(const TKeyEvent &) |
IMPORT_C TBool | OkToExitL(TInt) |
IMPORT_C void | PreLayoutDynInitL() |
IMPORT_C CAknQueryControl * | QueryControl() |
IMPORT_C CAknPopupHeadingPane * | QueryHeading() |
IMPORT_C CAknMultilineQueryControl * | SecondControl() |
T & | SecondData(const T &) |
const T & | SecondData(const T &) |
IMPORT_C TPtrC | SecondPrompt() |
void | SetDataL(T1 &, T2 &) |
IMPORT_C void | UpdateLeftSoftKeyL() |
Private Member Functions | |
---|---|
IMPORT_C void | CAknDialog_Reserved() |
IMPORT_C void | CAknQueryDialog_Reserved() |
IMPORT_C void | CEikDialog_Reserved_1() |
IMPORT_C void | CEikDialog_Reserved_2() |
TInt | CurrentLine() |
IMPORT_C void * | ExtensionInterface(TUid) |
TBool | FirstLineEnabled() |
void | HandleOrientationSwitch() |
TBool | SecondLineEnabled() |
Inherited Enumerations | |
---|---|
CAknQueryDialog:TTone | |
CCoeControl:TZoomType | |
CEikDialog:@121 |
Protected Attributes | |
---|---|
TDes16 * | iSecondText |
TDes16 * | iText |
Private Attributes | |
---|---|
MAknQueryData * | iFirstData |
TInt | iFirstEditorMaxLength |
MAknQueryData * | iSecondData |
TInt | iSecondEditorMaxLength |
TDesC * | iSecondPrompt |
IMPORT_C | CAknMultiLineDataQueryDialog | ( | const TTone & | aTone | ) | [protected] |
C++ default constructor.
const TTone & aTone | Reference to TTone enumeration. |
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.
TDes * aDataText | First line parameter. |
TTimeIntervalSeconds * aDuration | Second line parameter. |
TDesC * aPrompt = NULL | First prompt value. NULL in default. |
TDesC * aPrompt2 = NULL | Second prompt value. NULL in default. |
const TTone & aTone = ENoTone | Reference to TTone enum. Default is ENoTone. |
IMPORT_C | CAknMultiLineDataQueryDialog | ( | TTime * | aTime, |
TTimeIntervalSeconds * | aDuration, | |||
TDesC * | aPrompt = NULL, | |||
TDesC * | aPrompt2 = NULL, | |||
const TTone & | aTone = ENoTone | |||
) |
Constructor.
TTime * aTime | First line parameter. |
TTimeIntervalSeconds * aDuration | Second line parameter. |
TDesC * aPrompt = NULL | First prompt value. NULL in default. |
TDesC * aPrompt2 = NULL | Second prompt value. NULL in default. |
const TTone & aTone = ENoTone | Reference to TTone enum. Default is ENoTone. |
IMPORT_C | CAknMultiLineDataQueryDialog | ( | TInt * | aNumber, |
TInt * | aNumber2, | |||
TDesC * | aPrompt = NULL, | |||
TDesC * | aPrompt2 = NULL, | |||
const TTone & | aTone = ENoTone | |||
) |
Constructor.
TInt | CurrentLine | ( | ) | const [private] |
Gets a pointer to the current line.
This does not imply transfer of ownership from the dialog.
CAknMultiLineDataQueryDialog * | DoNewL | ( | T1 & | aData1, |
T2 & | aData2, | |||
const TTone & | aTone | |||
) | [protected, static, inline] |
T1 & aData1 | First line parameter. |
T2 & aData2 | Second line parameter. |
const TTone & aTone | Reference to TTone enum. |
IMPORT_C void | DoSetPromptL | ( | ) | [protected, virtual] |
Sets the prompt inside the query control.
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C CAknMultilineQueryControl * | FirstControl | ( | ) | const [protected] |
Access to 1st query control
T & | FirstData | ( | const T & | ) | [protected, inline] |
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in TAknQueryData, see aknquerydata.h
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.
const T & |
const T & | FirstData | ( | const T & | ) | const [protected, inline] |
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in TAknQueryData, see aknquerydata.h
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.
const T & |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl.
Handles pointer events.
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [protected, virtual] |
From CCoeControl.
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.
TInt aType | A message UID value. The most common is KEikMessageColorSchemeChange which controls get when the colour scheme is changed. Other examples include: KEikMessageFadeAllWindows, KEikMessageUnfadeWindows, KEikMessageZoomChange, KEikMessageVirtualCursorStateChange, KEikMessageCapsLock, KEikMessagePrepareForSave. |
IMPORT_C TBool | NeedToDismissQueryL | ( | const TKeyEvent & | aKeyEvent | ) | [protected, virtual] |
Allows dismissing of queries. Same as base class implementation only take into consideration both controls
const TKeyEvent & aKeyEvent |
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TTime & | aTime1, |
TTime & | aTime2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TDes & | aText1, |
TDes & | aText2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TDes & | aText1, |
TTime & | aTime2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TDes & | aText1, |
TInt & | aNum2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TDes & | aText1, |
TTimeIntervalSeconds & | aDur2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
TDes & aText1 | First line parameter. |
TTimeIntervalSeconds & aDur2 | Second line parameter. |
TTone aTone = ENoTone | Reference to TTone enumeration. Default is ENoTone. |
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TTime & | aTime1, |
TTimeIntervalSeconds & | aDur2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
TTime & aTime1 | First line parameter. |
TTimeIntervalSeconds & aDur2 | Second line parameter. |
TTone aTone = ENoTone | Reference to TTone enumeration. Default is ENoTone. |
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TInt & | aNum1, |
TInt & | aNum2, | |||
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C CAknMultiLineDataQueryDialog * | NewL | ( | TPosition & | aPos, |
TTone | aTone = ENoTone | |||
) | [static] |
Creates a new instance of a multiline dialog.
IMPORT_C TBool | 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.
TInt aButtonId | The ID of the button that was activated. |
IMPORT_C void | PreLayoutDynInitL | ( | ) | [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. Note:
Control values that should not influence the sizing and layout are set using PostLayoutDynInitL().
IMPORT_C CAknQueryControl * | QueryControl | ( | ) | const [protected, virtual] |
Gets a querycontrol.
IMPORT_C CAknPopupHeadingPane * | QueryHeading | ( | ) | const [protected, virtual] |
Not implemented.
IMPORT_C CAknMultilineQueryControl * | SecondControl | ( | ) | const [protected] |
Access to 2nd query control
T & | SecondData | ( | const T & | ) | [protected, inline] |
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in TAknQueryData, see aknquerydata.h
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.
const T & |
const T & | SecondData | ( | const T & | ) | const [protected, inline] |
Data access.
Derived class can use this method to get access to the query data. The query data is a reference stored in TAknQueryData, see aknquerydata.h
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.
const T & |
void | SetDataL | ( | T1 & | aData1, |
T2 & | aData2 | |||
) | [protected, inline] |
Sets the query data for the first and the second line. Must be called by derived classes during second phase construction (NewL() method).
T1 & aData1 | |
T2 & aData2 |
IMPORT_C void | SetMaxLengthOfFirstEditor | ( | TInt | aFirstTextEditorMaxLength | ) |
Sets a max length for the first editor in a query.
TInt aFirstTextEditorMaxLength | Max length for editor |
IMPORT_C void | SetMaxLengthOfSecondEditor | ( | TInt | aSecondTextEditorMaxLength | ) |
Sets a max length for the second editor in a query.
TInt aSecondTextEditorMaxLength | Max length for editor. |
IMPORT_C void | SetPromptL | ( | const TDesC & | aFirstPrompt, |
const TDesC & | aSecondPrompt | |||
) |
Sets a prompt text for the query. This will override the text given in the constructor.
IMPORT_C void | UpdateLeftSoftKeyL | ( | ) | [protected, virtual] |
If the query text is ok (retrieved form query controls) the left soft key is displayed, otherwise it is hidden.
TDes16 * | iSecondText | [protected] |
Deprecated do not use A text of the secondline. Use data access template methods instead.
TDes16 * | iText | [protected] |
Deprecated - use data access template methods instead A text of the first line. Use data access template methods instead.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.