25 #include <e32std.h> |
25 #include <e32std.h> |
26 #include <e32base.h> // CBase |
26 #include <e32base.h> // CBase |
27 #include <apmstd.h> // TDataType |
27 #include <apmstd.h> // TDataType |
28 #include <f32file.h> // RFs, RFile, CFileMan |
28 #include <f32file.h> // RFs, RFile, CFileMan |
29 |
29 |
30 #include "javaprotectionresolver.h" |
30 #include <javasuperdparser.h> |
|
31 |
|
32 #include "JavaProtectionResolver.h" |
31 |
33 |
32 // EXTERNAL DATA STRUCTURES |
34 // EXTERNAL DATA STRUCTURES |
33 |
35 |
34 // EXTERNAL FUNCTION PROTOTYPES |
36 // EXTERNAL FUNCTION PROTOTYPES |
35 |
37 |
88 // ----------------------------------------------------------------------------- |
90 // ----------------------------------------------------------------------------- |
89 // CJavaProtectionResolver::CheckDRMStatus |
91 // CJavaProtectionResolver::CheckDRMStatus |
90 // ----------------------------------------------------------------------------- |
92 // ----------------------------------------------------------------------------- |
91 // |
93 // |
92 TBool CJavaProtectionResolver::IsSuperDistributionPackageL( RFile& aFile ) |
94 TBool CJavaProtectionResolver::IsSuperDistributionPackageL( RFile& aFile ) |
93 { |
95 { |
94 /** |
96 TBool retVal( EFalse ); |
95 * JavaSuperDParser has been removed from 9.2 TB, |
|
96 * So we will always return EFalse and whole code of function is commented out. |
|
97 */ |
|
98 // TBool retVal( EFalse ); |
|
99 // |
|
100 // CFileMan* fileMan = CFileMan::NewL( iFs ); |
|
101 // iFs.MkDir( KFileProtTempDir ); |
|
102 // |
|
103 // Java::CJavaSuperDParser* javaParser( NULL ); |
|
104 // TRAPD( err, javaParser = Java::CJavaSuperDParser::NewL( iFs, |
|
105 // aFile, |
|
106 // KFileProtTempDir ) ); |
|
107 // if ( !err ) |
|
108 // { |
|
109 // retVal = ETrue; |
|
110 // } |
|
111 // delete javaParser; |
|
112 // |
|
113 // /*TInt err =*/ fileMan->Delete( KFileProtTempDir /*, CFileMan::ERecurse*/ ); |
|
114 // /*TInt err =*/ fileMan->RmDir( KFileProtTempDir ); |
|
115 // delete fileMan; |
|
116 |
97 |
117 // return retVal; |
98 CFileMan* fileMan = CFileMan::NewL( iFs ); |
118 return EFalse; |
99 iFs.MkDir( KFileProtTempDir ); |
|
100 |
|
101 Java::CJavaSuperDParser* javaParser( NULL ); |
|
102 TRAPD( err, javaParser = Java::CJavaSuperDParser::NewL( iFs, |
|
103 aFile, |
|
104 KFileProtTempDir ) ); |
|
105 if ( !err ) |
|
106 { |
|
107 retVal = ETrue; |
|
108 } |
|
109 delete javaParser; |
|
110 |
|
111 /*TInt err =*/ fileMan->Delete( KFileProtTempDir /*, CFileMan::ERecurse*/ ); |
|
112 /*TInt err =*/ fileMan->RmDir( KFileProtTempDir ); |
|
113 delete fileMan; |
|
114 |
|
115 return retVal; |
119 } |
116 } |
120 |
117 |
121 // End of File |
118 // End of File |