wlansecuritysettings/wlaneapsettingsui/EapGtc/NotifierUi/src/GTCResponseQueryDialog.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2009 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 the License "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: Implementation of Gtc Response Query Dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "GtcNotifDlgPlugin.h"
       
    22 #include "GTCResponseQueryDialog.h"
       
    23 
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CGTCResponseQueryDialog::CGTCResponseQueryDialog
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CGTCResponseQueryDialog::CGTCResponseQueryDialog( TDes& aResponse, 
       
    30                                                   CGtcDialogPlugin* aPlugin )
       
    31 : CAknTextQueryDialog( aResponse ), 
       
    32   iPlugin( aPlugin )
       
    33     {    
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CGTCResponseQueryDialog::~CGTCResponseQueryDialog
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CGTCResponseQueryDialog::~CGTCResponseQueryDialog()
       
    42     {
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CGTCResponseQueryDialog::NewL
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CGTCResponseQueryDialog* CGTCResponseQueryDialog::NewL( TDes& aResponse, 
       
    51                                                     CGtcDialogPlugin* aPlugin )
       
    52     {
       
    53     CGTCResponseQueryDialog* self = new( ELeave ) CGTCResponseQueryDialog( 
       
    54                                                         aResponse, aPlugin );
       
    55     return self;
       
    56 }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CGTCResponseQueryDialog::OkToExitL
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 TBool CGTCResponseQueryDialog::OkToExitL( TInt aButtonId )
       
    64     {
       
    65     if ( CAknTextQueryDialog::OkToExitL( aButtonId ) )
       
    66        {
       
    67         // This will be the case always since there is no "cancel" in this dialog.
       
    68         if ( aButtonId==EAknSoftkeyOk )
       
    69             {
       
    70             iPlugin->CompleteL( KErrNone );
       
    71             }
       
    72         else
       
    73             {
       
    74             // Everything else is for cancel.
       
    75             iPlugin->CompleteL( KErrCancel );
       
    76             }
       
    77 
       
    78         return( ETrue );
       
    79         }
       
    80 
       
    81     return( EFalse ); 
       
    82     }
       
    83 
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 // CGTCResponseQueryDialog::HandleResourceChange
       
    87 // -----------------------------------------------------------------------------
       
    88 //
       
    89 void CGTCResponseQueryDialog::HandleResourceChange( TInt aType )
       
    90     {
       
    91     CAknTextQueryDialog::HandleResourceChange( aType );
       
    92     if ( aType == KAknsMessageSkinChange )
       
    93         {
       
    94         }
       
    95     }
       
    96 
       
    97 
       
    98 // End of File