diff -r 000000000000 -r 2c201484c85f cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptoservices/filebasedcertificateandkeystores/test/keytool/keytoolfileview.h Wed Jul 08 11:25:26 2009 +0100 @@ -0,0 +1,57 @@ +/* +* 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