pkiutilities/CTSecurityDialogs/ClientInc/CDigSigningNote.h
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003 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 CDigSigningNote
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CDIGSIGNINGNOTE_H
       
    20 #define CDIGSIGNINGNOTE_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "SecurityDialogBase.h"
       
    24 #include <DigSigningNote.h>  // MDigSigningNote
       
    25 #include <e32std.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  This class implements MDigSigningNote interface.
       
    31 *  
       
    32 *
       
    33 *  @lib CTSecDlgs.lib
       
    34 *  @since Series60_2.6
       
    35 */
       
    36 class CDigSigningNote : public CSecurityDialogBase, public MDigSigningNote
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39         
       
    40         /**
       
    41         * Two-phased constructor.
       
    42         */
       
    43         static CDigSigningNote* NewL();
       
    44         
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48         virtual ~CDigSigningNote();
       
    49     
       
    50     public: // Functions from MDigSigningNote
       
    51 
       
    52         /**
       
    53         * Informs the user during digital signing.
       
    54         * @param aNoteType Identifies the note type.
       
    55         * @param aStatus OUT: KErrNone or KErrNotSupported
       
    56         * @return void
       
    57         */
       
    58         void ShowNote(MDigSigningNote::TNoteType aNoteType, TRequestStatus& aStatus);
       
    59         
       
    60         /**
       
    61         * Saves receipt to Notepad if receipt saving is on in .ini-file and
       
    62         * informs user about this.
       
    63         * @since ?Series60_version
       
    64         * @param aSignedText Signed text in readable form.
       
    65 		* @param aStatus OUT: KErrNone or KErrNotSupported
       
    66         * @return void
       
    67         */
       
    68         void SaveSignedText(const TDesC& aSignedText, TRequestStatus& aStatus);
       
    69         
       
    70         /**
       
    71         * Shows instructions how to unblock PIN.
       
    72         * @since ?Series60_version
       
    73         * @param aLabel Label of the PIN.
       
    74         * @param aStatus KErrNone or KErrNotSupported
       
    75         * @return void
       
    76         */
       
    77         void ShowPINBlockedInfo(const TPINLabel& aLabel, TRequestStatus& aStatus);
       
    78 
       
    79         /**
       
    80     	*	Release is called to free resources of the MSecurityDialog class
       
    81 	    */
       
    82 	    void Release();
       
    83 
       
    84     private:
       
    85 
       
    86         /**
       
    87         * C++ default constructor.
       
    88         */
       
    89         CDigSigningNote();
       
    90 
       
    91         /**
       
    92         * By default Symbian 2nd phase constructor is private.
       
    93         */
       
    94         void ConstructL();
       
    95 
       
    96     private:    // Data
       
    97         
       
    98 	    CBufFlat*	iSenderBuffer;	// Stream buffer for outgoing streams.
       
    99     	HBufC8*     iBufferData;    // iSenderBuffer help buffer
       
   100     };
       
   101 
       
   102 #endif      // CDIGSIGNINGNOTE_H  
       
   103             
       
   104 // End of File