|
1 /* |
|
2 * Copyright (c) 2006 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 "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 * Resolves the protection status for a Java file. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __JAVAPROTECTIONRESOLVER_H |
|
22 #define __JAVAPROTECTIONRESOLVER_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32std.h> |
|
27 #include <e32base.h> // CBase |
|
28 #include <apmstd.h> // TDatatype |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class RFs; |
|
36 class RFile; |
|
37 |
|
38 // DATA TYPES |
|
39 |
|
40 // FUNCTION PROTOTYPES |
|
41 |
|
42 // CLASS DECLARATION |
|
43 /** |
|
44 * CJavaProtectionResolver... |
|
45 * |
|
46 * @lib muiu.lib |
|
47 * @since 3.1 |
|
48 */ |
|
49 NONSHARABLE_CLASS( CJavaProtectionResolver ) : public CBase |
|
50 { |
|
51 public: // New methods |
|
52 |
|
53 /** |
|
54 * Factory method. |
|
55 * |
|
56 * @param aFs IN Fileserver session. |
|
57 * @return Pointer to instance in CleanupStack |
|
58 */ |
|
59 static CJavaProtectionResolver* NewLC( RFs& aFs ); |
|
60 |
|
61 /** |
|
62 * Destructor |
|
63 */ |
|
64 virtual ~CJavaProtectionResolver(); |
|
65 |
|
66 /** |
|
67 * Checks if file is a superdistributable java archive |
|
68 * @return ETrue, if file is SD JAR and Java is supported, |
|
69 * EFalse, otherwise. |
|
70 */ |
|
71 TBool IsSuperDistributionPackageL( RFile& aFile ); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * Constructor. |
|
77 * |
|
78 * @param aFs IN Fileserver session. |
|
79 */ |
|
80 CJavaProtectionResolver( RFs& aFs ); |
|
81 |
|
82 private: // data |
|
83 |
|
84 RFs& iFs; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // __JAVAPROTECTIONRESOLVER_H |