diff -r 675a964f4eb5 -r 35751d3474b7 cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h --- a/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h Tue Jul 21 01:04:32 2009 +0100 +++ b/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h Thu Sep 10 14:01:51 2009 +0300 @@ -1,57 +1,58 @@ -/* -* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of the License "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - - -#ifndef __KEYTOOLFILEVIEW_H_ -#define __KEYTOOLFILEVIEW_H_ - -#include -#include -#include - -#include "keytool_view.h" - -class CKeytoolFileView : public CBase, public MKeyToolView - { -public: - static CKeytoolFileView* NewLC(const TDesC& aInputFile); - ~CKeytoolFileView(); - void ConstructL(const TDesC& aInputFile); - CArrayFixFlat* ReadArrayArgumentsLC(TInt cmdIndex); - TInt SplitFileInputToArrayL(); - -public: // From MKeyToolView - void DisplayUsage(); - void BoilerPlate(); - void DisplayKeyInfoL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise); - void DisplayErrorL(const TDesC& aError, TBool aPageWise); - void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise); - void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aIsDetailed, TBool aPageWise); - -protected: - - -private: - CKeytoolFileView(); - TBool ReadLine(const TDesC8& aBuffer, TInt& aPos, TPtrC8& aLine); -private: - RFs iFs; - RFile iFile; - RPointerArray iArgs; - }; - -#endif +/* +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + +#ifndef __KEYTOOLFILEVIEW_H_ +#define __KEYTOOLFILEVIEW_H_ + +#include +#include +#include + +#include "keytool_view.h" + +class CKeytoolFileView : public CBase, public MKeyToolView + { +public: + static CKeytoolFileView* NewLC(const TDesC& aInputFile); + ~CKeytoolFileView(); + void ConstructL(const TDesC& aInputFile); + CArrayFixFlat* ReadArrayArgumentsLC(TInt cmdIndex); + TInt SplitFileInputToArrayL(); + +public: // From MKeyToolView + void DisplayUsage(); + void BoilerPlate(); + void DisplayKeyInfoL(CCTKeyInfo& aKey, TBool aIsDetailed, TBool aPageWise); + void DisplayErrorL(const TDesC& aError, TBool aPageWise); + void DisplayErrorL(const TDesC& aError, TInt aErrorCode, TBool aPageWise); + void DisplayCertL(CCTCertInfo& aCert, CCertificate& aCertificate, RUidArray aApps, TBool aTrusted, TBool aIsDetailed, TBool aPageWise); + +protected: + + +private: + CKeytoolFileView(); + TBool ReadLine(const TDesC8& aBuffer, TInt& aPos, TPtrC8& aLine); +private: + RFs iFs; + RFile iFile; + RPointerArray iArgs; + }; + +#endif +