pkiutilities/CTSecurityDialogs/NotifInc/CTPinPinQueryDialog.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2004 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:   Header file of the multiline PIN query dialog
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CCTPINPINQUERYDIALOG_H
       
    20 #define CCTPINPINQUERYDIALOG_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <AknQueryDialog.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 *  Multiline PIN query dialog class
       
    29 *
       
    30 *  @lib CTSecDlgNotifier.dll
       
    31 *  @since Series 60 2.8
       
    32 */
       
    33 NONSHARABLE_CLASS( CCTPinPinQueryDialog ): public CAknMultiLineDataQueryDialog
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * Two-phased constructor.
       
    39         */
       
    40         static CCTPinPinQueryDialog* NewL(
       
    41             const TDesC& aDlgText1,
       
    42             const TDesC& aDlgText2,
       
    43             TDes&  aPin1,
       
    44             TDes&  aPin2,
       
    45             const TInt aMinTextLength, 
       
    46             const TInt aMaxTextLength, 
       
    47             TBool& aRetVal);
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CCTPinPinQueryDialog();
       
    53 
       
    54     public: // New functions
       
    55 
       
    56         /**
       
    57         * RunDlgLD Launches the multiline PIN Query Dialog
       
    58         * @param aClientStatus  Reference to Client Status
       
    59         * @param aResourceId  Resource ID
       
    60         */
       
    61         void RunDlgLD(TRequestStatus& aClientStatus, TInt aResourceId);
       
    62 
       
    63     private: // Functions from base classes
       
    64 
       
    65          /**
       
    66         *
       
    67         */
       
    68 	    void UpdateLeftSoftKeyL();
       
    69 
       
    70         /**
       
    71         *
       
    72         */
       
    73 	    TBool CheckIfEntryTextOk() const;
       
    74 
       
    75         /**
       
    76         *
       
    77 		* @param	aButtonId 
       
    78 		* @return	TBool
       
    79         */
       
    80 		TBool OkToExitL( TInt aButtonId );
       
    81 
       
    82         /**
       
    83         *
       
    84         */
       
    85 	    void PreLayoutDynInitL();
       
    86 
       
    87         /**
       
    88         *
       
    89         */	
       
    90 		void PostLayoutDynInitL();
       
    91 
       
    92         /**
       
    93         *
       
    94 		* @param  aKeyEvent
       
    95 		* @param  aType
       
    96 		* @return TKeyResponse
       
    97         */
       
    98 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    99 
       
   100 
       
   101     private:
       
   102 
       
   103         /**
       
   104         * C++ default constructor.
       
   105         */
       
   106         CCTPinPinQueryDialog(
       
   107             const TDesC& aDlgText1,
       
   108             const TDesC& aDlgText2,
       
   109             TDes&  aPin1,
       
   110             TDes&  aPin2,
       
   111             const TInt aMinTextLength, 
       
   112             const TInt aMaxTextLength, 
       
   113             TBool& aRetVal);
       
   114 
       
   115         /**
       
   116         * By default Symbian 2nd phase constructor is private.
       
   117         */
       
   118         void ConstructL();
       
   119 
       
   120     private:    // Data
       
   121 	    const TDesC& iDlgText1;
       
   122         const TDesC& iDlgText2;
       
   123 	    TDes& iPinValue1;
       
   124         TDes& iPinValue2;
       
   125 	    TInt iMinTextLength;
       
   126 	    TInt iMaxTextLength;
       
   127 		TRequestStatus* iClientStatus;
       
   128 		TBool& iRetVal; //Dialog response
       
   129 
       
   130         TBool iFirstOk;
       
   131         TBool iSecondOk;
       
   132     };
       
   133 
       
   134 #endif      // CCTPINPINQUERYDIALOG_H   
       
   135             
       
   136 // End of File