pkiutilities/CTSecurityDialogs/NotifInc/CTSignTextDialog.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 Read and Sign Dialog for Digital Signature
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CTSIGNTEXTDIALOG_H
       
    21 #define __CTSIGNTEXTDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "CTSecurityDialogDefs.h"
       
    25 #include <aknmessagequerydialog.h>
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *
       
    32 *
       
    33 *  @lib 
       
    34 *  @since 
       
    35 */
       
    36 NONSHARABLE_CLASS( CCTSignTextDialog ): public CAknMessageQueryDialog
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43 	    ~CCTSignTextDialog();
       
    44 
       
    45     public:
       
    46 
       
    47 	    /**
       
    48 	    * RunDlgLD launches the Read And Sign Dialog
       
    49 	    * @param	aReceiptToSign	Text to be signed
       
    50 		* @param	aStatus			Client status				
       
    51 	    * @param	aRetVal			ETrue for positive user response
       
    52 	    */
       
    53 	    static void RunDlgLD(TInt aResourceId, const TDesC& aReceiptToSign, 
       
    54 	                         TRequestStatus& aStatus, TBool& aRetVal);        
       
    55     
       
    56     protected:
       
    57 
       
    58         /**
       
    59         * C++ default constructor.
       
    60         */
       
    61 	    CCTSignTextDialog(const TDesC& aReceiptToSign, TRequestStatus& aStatus, TBool& aRetVal, TBool aSignText);
       
    62 
       
    63     protected:  // Functions from CAknMessageQueryDialog  
       
    64         
       
    65         /**
       
    66         *
       
    67 		* @param  aKeyEvent
       
    68 		* @param  aType
       
    69 		* @return TKeyResponse
       
    70         */
       
    71 		TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    72 
       
    73         /**
       
    74         * 
       
    75         */
       
    76 	    void PreLayoutDynInitL();
       
    77 
       
    78         /**
       
    79         * 
       
    80         */
       
    81 		void PostLayoutDynInitL();
       
    82 
       
    83         /**
       
    84         * 
       
    85         */        
       
    86         TBool OkToExitL( TInt aButtonId );
       
    87 
       
    88         
       
    89 
       
    90 
       
    91     protected:  //Data
       
    92         
       
    93 	    const TDesC& iReceiptToSign;
       
    94 		TRequestStatus* iClientStatus;
       
    95 	
       
    96 	private:
       
    97 		TBool& iRetVal;
       
    98         TBool iSignText;
       
    99     };
       
   100 
       
   101 #endif // __CTSIGNTEXTDIALOG_H
       
   102 
       
   103 // End of File