securitydialogs/secuidialognotifiersrv/inc/secuidialogoperbasicpinquery.h
changeset 61 1cc4c46c2963
equal deleted inserted replaced
56:25a3fbb5e4d3 61:1cc4c46c2963
       
     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:  Basic PIN query operation in secui dialog
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SECUIDIALOGOPERBASICPINQUERY_H
       
    19 #define SECUIDIALOGOPERBASICPINQUERY_H
       
    20 
       
    21 #include "secuidialogoperation.h"    // CSecuiDialogOperation
       
    22 #include <secdlgimpldefs.h>             // TPINValue
       
    23 
       
    24 class MSecuiDialogOperationObserver;
       
    25 class CSecQueryUi;
       
    26 
       
    27 
       
    28 /**
       
    29  * CBasicPinQueryOperation is a CSecuiDialogOperation that handles
       
    30  * EEnterPIN, EEnablePIN, EChangePIN, and EDisablePIN operations.
       
    31  */
       
    32 NONSHARABLE_CLASS( CBasicPinQueryOperation ) : public CSecuiDialogOperation
       
    33     {
       
    34     public:     // constructors and destructor
       
    35         static CBasicPinQueryOperation* NewL( MSecuiDialogOperationObserver& aObserver,
       
    36                 const RMessage2& aMessage, TInt aReplySlot );
       
    37         ~CBasicPinQueryOperation();
       
    38 
       
    39     public:     // from CSecuiDialogOperation
       
    40         void StartL( const TDesC8& aBuffer );
       
    41         void CancelOperation();
       
    42 
       
    43     protected:  // from CActive (via CSecuiDialogOperation)
       
    44         void RunL();
       
    45         void DoCancel();
       
    46 
       
    47     private:    // new functions
       
    48         CBasicPinQueryOperation( MSecuiDialogOperationObserver& aObserver,
       
    49                 const RMessage2& aMessage, TInt aReplySlot );
       
    50         void ReturnResultL( TInt aErrorCode );
       
    51 
       
    52     private:    // data
       
    53         const TPINInput* iPinInput;
       
    54         TPINValue iPinValue;
       
    55         TBool iStartUp;
       
    56     };
       
    57 
       
    58 #endif  // SECUIDIALOGOPERBASICPINQUERY_H
       
    59