examples/S60CppExamples/helloworldbasic/src/helloworldbasicquerydialog.cpp

00001 /*
00002 * ==============================================================================
00003 *  Name        : helloworldbasicquerydialog.cpp
00004 *  Part of     : helloworldbasicquery
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 // INCLUDE FILES
00017 
00018 #include <avkon.hrh>
00019 #include "HelloWorldBasicQueryDialog.h"
00020 
00021 // ================= MEMBER FUNCTIONS =======================
00022 
00023 // C++ default constructor can NOT contain any code, that
00024 // might leave.
00025 //
00026 CHelloWorldQueryDialog::CHelloWorldQueryDialog( TDes& aBuf, HBufC *aDefInput )
00027     : CAknTextQueryDialog( aBuf )
00028     , iDefInput(*aDefInput)
00029     {
00030     }
00031 
00032 // ---------------------------------------------------------
00033 // CHelloWorldQueryDialog::PreLayoutDynInitL
00034 // ---------------------------------------------------------
00035 //
00036 void  CHelloWorldQueryDialog::PreLayoutDynInitL()
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     }
00049 
00050 //  End of File
00051 

Generated by  doxygen 1.6.2