pkiutilities/CTSecurityDialogs/NotifInc/CTSelectCertificateDialog.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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:   CT Select Certificate Dialog
       
    15 *
       
    16 */
       
    17 
       
    18  
       
    19 
       
    20 #ifndef __CTSELECTCERTIFICATEDIALOG_H
       
    21 #define __CTSELECTCERTIFICATEDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <aknlistquerydialog.h>
       
    25 
       
    26 class TCTTokenObjectHandle;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 /**
       
    30 *  Certificate selection query class
       
    31 *
       
    32 *  @lib CTSecDlgNotifier.dll
       
    33 *  @since Series 60 2.6
       
    34 */
       
    35 NONSHARABLE_CLASS( CCTSelectCertificateDialog ): public CAknListQueryDialog
       
    36     {
       
    37     public: // Constructors and destructor
       
    38         
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42 	    ~CCTSelectCertificateDialog();
       
    43 
       
    44     public: // Functions from CAknQueryDialog
       
    45         
       
    46 	    /**
       
    47 	    * RunDlgLD Launches the Select Certificate Dialog
       
    48 	    * @param	aCertificates	List of certificate labels
       
    49 	    * @param	aSelectedIndex	Selected certificate index.
       
    50 		* @param	aClientStatus   Client Status 		
       
    51 	    * @param	iRetVal ETrue for positive response from the user, EFalse otherwise.
       
    52 	    */
       
    53 	    static void RunDlgLD( MDesCArray* aCertificates, 
       
    54                               RArray<TCTTokenObjectHandle>& aCertHandleList,
       
    55                               TCTTokenObjectHandle& aSelectedCert,
       
    56                               TRequestStatus& aClientStatus, 
       
    57                               TBool& aRetVal );
       
    58 
       
    59     private:
       
    60 
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */        
       
    64 	    CCTSelectCertificateDialog( MDesCArray* aCertificates, 
       
    65                                     RArray<TCTTokenObjectHandle>& aCertHandleList,
       
    66                                     TCTTokenObjectHandle& aSelectedCert,
       
    67                                     TRequestStatus& aClientStatus, 
       
    68                                     TBool& aRetVal );
       
    69 
       
    70 		TBool OkToExitL( TInt aButtonId );
       
    71 		
       
    72 		void PostLayoutDynInitL();
       
    73 		
       
    74 
       
    75 	private:
       
    76 
       
    77 		TRequestStatus* iClientStatus;
       
    78 		TBool& iRetVal;
       
    79 		TInt iSelectedIndex;
       
    80         RArray<TCTTokenObjectHandle>& iCertHandleList;
       
    81         TCTTokenObjectHandle& iSelectedCert;
       
    82     };
       
    83     
       
    84 #endif // __CTSELECTCERTIFICATEDIALOG_H
       
    85 
       
    86 // End of File