appinstaller/AppinstUi/Plugin/CommonUI/Inc/CUICertificateDetailsDialog.h
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2002-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:   This file contains the header file of the 
       
    15 *                CCUICertificateDetailsDialog class.
       
    16 *
       
    17 *                This dialog shows detailed information about certificates.
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef CUICERTIFICATEDETAILSDIALOG_H
       
    23 #define CUICERTIFICATEDETAILSDIALOG_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <e32base.h>
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 class CX509Certificate;
       
    30 
       
    31 namespace SwiUI
       
    32 {
       
    33 namespace CommonUI
       
    34 {
       
    35 
       
    36 //  FORWARD DECLARATIONS
       
    37 class CCUICertificateInfo;
       
    38 
       
    39 /**
       
    40 * This dialog shows detailed information about certificates.
       
    41 *
       
    42 * @lib swinstcommonui.lib
       
    43 * @since 3.0
       
    44 */
       
    45 NONSHARABLE_CLASS(CCUICertificateDetailsDialog) : public CBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         
       
    49         /**
       
    50         * Two-phased constructor.
       
    51         *
       
    52         * Constructs the dialog.
       
    53         * @since 3.0
       
    54         * @return Pointer to the created certificate details dialog.
       
    55         */
       
    56         static CCUICertificateDetailsDialog* NewL();
       
    57         
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         virtual ~CCUICertificateDetailsDialog();
       
    62 
       
    63     public: // New functions
       
    64         
       
    65         /**
       
    66         * Displays the dialog.
       
    67         * @since 3.0
       
    68         * @param aCertInfo - Certificate information object.
       
    69         */   
       
    70         void ExecuteLD( const CCUICertificateInfo& aCertInfo );      
       
    71 
       
    72     protected: // New functions
       
    73         
       
    74         /**
       
    75         * Adds a field (header and value) to the dialog.
       
    76         * @since 3.0
       
    77         * @param aMessage - Buffer where to append the field.
       
    78         * @param aHeaderResourceId - Resource id of the header string.
       
    79         * @param aValue - Field value.
       
    80         */     
       
    81         void AddFieldLC( HBufC*& aMessage, TInt aHeaderResourceId, const TDesC& aValue );
       
    82        
       
    83         /**
       
    84         * Converts date to local format.
       
    85         * @since 3.0
       
    86         * @param aDate - The date to be formatted.
       
    87         * @return Descriptor having the formatted date. Ownership transfers to caller.
       
    88         */    
       
    89         HBufC* DateToStringLC( const TDateTime& aDate );
       
    90 	
       
    91         /**
       
    92         * Devides input descriptor to blocks.
       
    93         * @since 3.0
       
    94         * @param aInput - Input string.
       
    95         * @param aOutput - Pointer to output string.
       
    96         */
       
    97         void DevideToBlocks( const TDesC8& aInput, TPtr aOutput );
       
    98 
       
    99     private:
       
   100         
       
   101         /**
       
   102         * Constructor.
       
   103         */
       
   104         CCUICertificateDetailsDialog();
       
   105 
       
   106         /**
       
   107         * 2nd phase constructor.
       
   108         */
       
   109         void ConstructL();       
       
   110     };
       
   111 }
       
   112 }
       
   113 
       
   114 
       
   115 #endif      // CUICERTIFICATEDETAILSDIALOG_H
       
   116             
       
   117 // End of File