|
1 /* |
|
2 * Copyright (c) 2007-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 __KEYTOOLFILEVIEW_H_ |
|
20 #define __KEYTOOLFILEVIEW_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <mctkeystore.h> |
|
24 #include <cctcertinfo.h> |
|
25 |
|
26 #include "keytool_view.h" |
|
27 |
|
28 class CKeytoolFileView : public CBase, public MKeyToolView |
|
29 { |
|
30 public: |
|
31 static CKeytoolFileView* NewLC(const TDesC& aInputFile); |
|
32 ~CKeytoolFileView(); |
|
33 void ConstructL(const TDesC& aInputFile); |
|
34 CArrayFixFlat<TPtrC>* ReadArrayArgumentsLC(TInt cmdIndex); |
|
35 TInt SplitFileInputToArrayL(); |
|
36 |
|
37 public: // From MKeyToolView |
|
38 void DisplayUsage(); |
|
39 void BoilerPlate(); |
|
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 aIsDetailed, TBool aPageWise); |
|
44 |
|
45 protected: |
|
46 |
|
47 |
|
48 private: |
|
49 CKeytoolFileView(); |
|
50 TBool ReadLine(const TDesC8& aBuffer, TInt& aPos, TPtrC8& aLine); |
|
51 private: |
|
52 RFs iFs; |
|
53 RFile iFile; |
|
54 RPointerArray<HBufC> iArgs; |
|
55 }; |
|
56 |
|
57 #endif |