examples/SDKExamples/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 and/or its subsidiary(-ies).
00010 *  All rights reserved.
00011 *  This component and the accompanying materials are made available
00012 *  under the terms of "Eclipse Public License v1.0"
00013 *  which accompanies this distribution, and is available
00014 *  at the URL "http://www.eclipse.org/legal/epl-v10.html".
00015 * ==============================================================================
00016 */
00017 
00018 // INCLUDE FILES
00019 
00020 #include <avkon.hrh>
00021 #include "HelloWorldBasicQueryDialog.h"
00022 
00023 // ================= MEMBER FUNCTIONS =======================
00024 
00025 // C++ default constructor can NOT contain any code, that
00026 // might leave.
00027 //
00028 CHelloWorldQueryDialog::CHelloWorldQueryDialog( TDes& aBuf, HBufC *aDefInput )
00029     : CAknTextQueryDialog( aBuf )
00030     , iDefInput(*aDefInput)
00031     {
00032     }
00033 
00034 // ---------------------------------------------------------
00035 // CHelloWorldQueryDialog::PreLayoutDynInitL
00036 // ---------------------------------------------------------
00037 //
00038 void  CHelloWorldQueryDialog::PreLayoutDynInitL()
00039     {
00040     // first we have to execute PreLayoutDynInitL() of the base-class
00041     CAknTextQueryDialog::PreLayoutDynInitL();
00042 
00043     // acquire pointer to editor-control and set the default input.
00044     CAknQueryControl* control = QueryControl();
00045     control->SetTextL(iDefInput);
00046 
00047     // enable OK-button, so that default text can be accepted as it is
00048     // without modifying the text
00049     MakeLeftSoftkeyVisible( ETrue );
00050     }
00051 
00052 //  End of File
00053 

Generated by  doxygen 1.6.2