S60 5th Edition SDK
Example Applications Guide

CHelloWorldQueryDialog Class Reference

#include <helloworldbasicquerydialog.h>

Inheritance diagram for CHelloWorldQueryDialog:

List of all members.

Detailed Description

CHelloWorldQueryDialog class. This class is used to query the user for text information

Definition at line 29 of file helloworldbasicquerydialog.h.

Public Member Functions

 CHelloWorldQueryDialog (TDes &aBuf, HBufC *aDefInput)
virtual ~CHelloWorldQueryDialog ()

Private Member Functions

void PreLayoutDynInitL ()

Private Attributes

HBufC & iDefInput


Constructor & Destructor Documentation

CHelloWorldQueryDialog::CHelloWorldQueryDialog TDes &  aBuf,
HBufC *  aDefInput
 

C++ default constructor.

Parameters:
aBuf buffer to store the input
aDefInput default input for the dialog

Definition at line 26 of file helloworldbasicquerydialog.cpp.

00027     : CAknTextQueryDialog( aBuf )
00028     , iDefInput(*aDefInput)
00029     {
00030     }

virtual CHelloWorldQueryDialog::~CHelloWorldQueryDialog  )  [inline, virtual]
 

Destructor.

Definition at line 43 of file helloworldbasicquerydialog.h.

00043 {};


Member Function Documentation

void CHelloWorldQueryDialog::PreLayoutDynInitL  )  [private]
 

sets the default value to the dialog.

Definition at line 36 of file helloworldbasicquerydialog.cpp.

References iDefInput.

00037     {
00038     // first we have to execute PreLayoutDynInitL() of the base-class
00039     CAknTextQueryDialog::PreLayoutDynInitL();
00040 
00041     // acquire pointer to editor-control and set the default input.
00042     CAknQueryControl* control = QueryControl();
00043     control->SetTextL(iDefInput);
00044 
00045     // enable OK-button, so that default text can be accepted as it is
00046     // without modifying the text
00047     MakeLeftSoftkeyVisible( ETrue );
00048     }


Member Data Documentation

HBufC& CHelloWorldQueryDialog::iDefInput [private]
 

the default input for the dialog

Definition at line 57 of file helloworldbasicquerydialog.h.

Referenced by PreLayoutDynInitL().


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

© Nokia 2009

Back to top