os/security/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h
First public contribution.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __KEYTOOLFILEVIEW_H_
20 #define __KEYTOOLFILEVIEW_H_
23 #include <mctkeystore.h>
24 #include <cctcertinfo.h>
26 #include "keytool_view.h"
28 class CKeytoolFileView : public CBase, public MKeyToolView
31 static CKeytoolFileView* NewLC(const TDesC& aInputFile);
33 void ConstructL(const TDesC& aInputFile);
34 CArrayFixFlat<TPtrC>* ReadArrayArgumentsLC(TInt cmdIndex);
35 TInt SplitFileInputToArrayL();
37 public: // From MKeyToolView
40 void DisplayKeyInfoL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise);
41 void DisplayErrorL(const TDesC& aError, TBool aPageWise);
42 void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise);
43 void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aTrusted, TBool aIsDetailed, TBool aPageWise);
50 TBool ReadLine(const TDesC8& aBuffer, TInt& aPos, TPtrC8& aLine);
54 RPointerArray<HBufC> iArgs;