os/security/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytool_view_imp.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2004-2009 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 the License "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: 
    15 *
    16 */
    17 
    18 
    19 #ifndef __KEYTOOL_VIEW_IMP_H_
    20 #define __KEYTOOL_VIEW_IMP_H_
    21 
    22 #include <e32base.h>
    23 #include <mctkeystore.h>
    24 #include <cctcertinfo.h>
    25 
    26 #include "keytool_view.h"
    27 
    28 class CKeytoolConsoleView : public CBase, public MKeyToolView
    29 	{
    30 public:
    31 	static CKeytoolConsoleView* NewLC(CConsoleBase& aConsole);
    32 	~CKeytoolConsoleView();
    33 	void ConstructL();
    34 		
    35 public:  // From MKeyToolView
    36 	 void DisplayUsage();
    37 	 void BoilerPlate();
    38 	 void DisplayKeyInfoL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise);
    39 	 void DisplayErrorL(const TDesC& aError, TBool aPageWise);
    40 	 void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise);
    41 	 void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aTrusted, TBool aIsDetailed, TBool aPageWise);
    42 	 	
    43 protected:
    44 
    45 	
    46 private:
    47 	CKeytoolConsoleView(CConsoleBase& aConsole);
    48 	
    49 private:
    50 	CConsoleBase	& iConsole;
    51 	};
    52 
    53 #endif
    54