phoneuis/easydialing/tsrc/edta/src/edta_querydialog.cpp
branchRCL_3
changeset 3 8871b09be73b
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Easy dialing test application.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 
       
    20 #include <avkon.hrh>
       
    21 #include "edta_querydialog.h"
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 // C++ default constructor can NOT contain any code, that
       
    26 // might leave.
       
    27 //
       
    28 CEdtaQueryDialog::CEdtaQueryDialog( TDes& aBuf, const HBufC *aDefInput )
       
    29     : CAknTextQueryDialog( aBuf )
       
    30     , iDefInput(*(const_cast<HBufC*> (aDefInput)))
       
    31     {
       
    32     }
       
    33 
       
    34 
       
    35 
       
    36 // ---------------------------------------------------------
       
    37 // CEdtaQueryDialog::PreLayoutDynInitL
       
    38 // ---------------------------------------------------------
       
    39 //
       
    40 void  CEdtaQueryDialog::PreLayoutDynInitL()
       
    41     {
       
    42     // first we have to execute PreLayoutDynInitL() of the base-class
       
    43     CAknTextQueryDialog::PreLayoutDynInitL();
       
    44 
       
    45     // acquire pointer to editor-control and set the default input.
       
    46     CAknQueryControl* control = QueryControl();
       
    47     control->SetTextL(iDefInput);
       
    48 
       
    49     // enable OK-button, so that default text can be accepted as it is
       
    50     // without modifying the text
       
    51     MakeLeftSoftkeyVisible( ETrue );
       
    52     }
       
    53 
       
    54 //  End of File
       
    55