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