satui/satapp/SATUISrc/CSatUiWaitDialog.cpp
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Implements the feature for investigating length of the input. Softkeys
       
    16 *     are set based on this information.
       
    17 *     
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #include    <avkon.hrh>
       
    23 #include    <avkon.rsg>
       
    24 #include    <eikbtgpc.h>
       
    25 #include    <msatuiadapter.h>
       
    26 #include    <msatuiobserver.h>
       
    27 #include    "CSatUiWaitDialog.h"
       
    28 #include    "tflogger.h"
       
    29 
       
    30 // ================= MEMBER FUNCTIONS =======================
       
    31 
       
    32 // C++ default constructor can NOT contain any code, that
       
    33 // might leave.
       
    34 //
       
    35 CSatUiWaitDialog::CSatUiWaitDialog(
       
    36     CEikDialog** aSelfPtr,
       
    37     MSatUiAdapter& aAdapter, 
       
    38     TBool aVisibilityDelayOff ) :
       
    39     CAknWaitDialog( aSelfPtr, aVisibilityDelayOff ),
       
    40     iAdapter( aAdapter )
       
    41     {
       
    42     }
       
    43 
       
    44 // Destructor.
       
    45 CSatUiWaitDialog::~CSatUiWaitDialog()
       
    46     {
       
    47     }
       
    48 
       
    49 // ---------------------------------------------------------
       
    50 // CSatUiWaitDialog::OkToExitL()
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 TBool CSatUiWaitDialog::OkToExitL( TInt aButtonId )
       
    54     {
       
    55     TFLOGSTRING( "CSatUiWaitDialog::OkToExitL called" )
       
    56     if ( aButtonId == EAknSoftkeyCancel )
       
    57         {        
       
    58         iAdapter.SessionTerminated( ESessionCancel );
       
    59         }
       
    60     TFLOGSTRING( "CSatUiWaitDialog::OkToExitL exit" )
       
    61     return ETrue;
       
    62     }
       
    63 //  End of File