sl@0: // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: #include "testlauncherquerydialog.h" sl@0: sl@0: #include sl@0: sl@0: sl@0: CHelloWorldQueryDialog::CHelloWorldQueryDialog(TDes& aBuf, HBufC *aDefInput) : sl@0: CAknTextQueryDialog(aBuf), iDefInput(*aDefInput) sl@0: { sl@0: // empty sl@0: } sl@0: sl@0: void CHelloWorldQueryDialog::PreLayoutDynInitL() sl@0: { sl@0: // first we have to execute PreLayoutDynInitL() of the base-class sl@0: CAknTextQueryDialog::PreLayoutDynInitL(); sl@0: sl@0: // acquire pointer to editor-control and set the default input. sl@0: CAknQueryControl* control = QueryControl(); sl@0: control->SetTextL(iDefInput); sl@0: sl@0: // enable OK-button, so that default text can be accepted as it is sl@0: // without modifying the text sl@0: MakeLeftSoftkeyVisible(ETrue); sl@0: }