wlansecuritysettings/wlaneapsettingsui/pap/notifierui/src/papchallengereplydialog.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 PAP Challenge Reply Dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "papnotifdlgplugin.h"
       
    22 #include "papchallengereplydialog.h"
       
    23 
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CPapChallengeReplyDialog::CPapChallengeReplyDialog
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CPapChallengeReplyDialog::CPapChallengeReplyDialog( TDes& aResponse, 
       
    30                                                   CPapNotifDialogPlugin* aPlugin )
       
    31 : CAknTextQueryDialog( aResponse ), 
       
    32   iPlugin( aPlugin )
       
    33     {    
       
    34     }
       
    35 
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPapChallengeReplyDialog::~CPapChallengeReplyDialog
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 CPapChallengeReplyDialog::~CPapChallengeReplyDialog()
       
    42     {
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CPapChallengeReplyDialog::NewL
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CPapChallengeReplyDialog* CPapChallengeReplyDialog::NewL( TDes& aResponse, 
       
    51                                                     CPapNotifDialogPlugin* aPlugin )
       
    52     {
       
    53     CPapChallengeReplyDialog* self = new( ELeave ) CPapChallengeReplyDialog( 
       
    54                                                         aResponse, aPlugin );
       
    55     return self;
       
    56 }
       
    57 
       
    58 
       
    59 // -----------------------------------------------------------------------------
       
    60 // CPapChallengeReplyDialog::OkToExitL
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 TBool CPapChallengeReplyDialog::OkToExitL( TInt aButtonId )
       
    64     {
       
    65     if ( CAknTextQueryDialog::OkToExitL( aButtonId ) )
       
    66        {
       
    67         if ( aButtonId==EAknSoftkeyOk )
       
    68             {
       
    69             iPlugin->SetChallengeReplyDismissed();
       
    70             iPlugin->CompleteL( KErrNone );
       
    71             }
       
    72         else
       
    73             {
       
    74             // Everything else is for cancel.
       
    75             iPlugin->SetChallengeReplyDismissed();
       
    76             iPlugin->CompleteL( KErrCancel );
       
    77             }
       
    78 
       
    79         return( ETrue );
       
    80         }
       
    81 
       
    82     return( EFalse ); 
       
    83     }
       
    84 
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // CPapChallengeReplyDialog::HandleResourceChange
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 void CPapChallengeReplyDialog::HandleResourceChange( TInt aType )
       
    91     {
       
    92     CAknTextQueryDialog::HandleResourceChange( aType );
       
    93     if ( aType == KAknsMessageSkinChange )
       
    94         {
       
    95         }
       
    96     }
       
    97 
       
    98 
       
    99 // End of File