equal
deleted
inserted
replaced
28 #include <RoapEngBase.h> |
28 #include <RoapEngBase.h> |
29 #include <RoapObserver.h> |
29 #include <RoapObserver.h> |
30 #include <centralrepository.h> // link against centralrepository.lib |
30 #include <centralrepository.h> // link against centralrepository.lib |
31 #include <msvuids.h> |
31 #include <msvuids.h> |
32 #include <msvids.h> |
32 #include <msvids.h> |
33 #include <DownloadMgrClient.h> |
|
34 |
33 |
35 #ifdef RD_MULTIPLE_DRIVE |
34 #ifdef RD_MULTIPLE_DRIVE |
36 #include <driveinfo.h> |
35 #include <driveinfo.h> |
37 #endif |
36 #endif |
38 |
37 |
44 |
43 |
45 #include "CRoHandler.h" |
44 #include "CRoHandler.h" |
46 #include "RoMtmCli.h" // for CRightsObjectMtmClient |
45 #include "RoMtmCli.h" // for CRightsObjectMtmClient |
47 #include "RoapSyncWrapper.h" |
46 #include "RoapSyncWrapper.h" |
48 |
47 |
49 #include "StringResourceReader.h" |
48 #include "RoHandlerStringResourceReader.h" |
50 #include "rohandlerdmgrwrapper.h" |
49 #include "rohandlerdmgrwrapper.h" |
51 #include "rohandlerinternalcrkeys.h" |
50 #include "rohandlerinternalcrkeys.h" |
52 |
51 |
53 #ifdef _DEBUG |
52 #ifdef _DEBUG |
54 #define DRMDEBUGLIT( a, b ) _LIT( a, b ) |
53 #define DRMDEBUGLIT( a, b ) _LIT( a, b ) |
97 #else |
96 #else |
98 _LIT( KDriveZ, "z:" ); |
97 _LIT( KDriveZ, "z:" ); |
99 _LIT( KRoHandlerTriggerFilePath, "c:\\system\\data\\" ); |
98 _LIT( KRoHandlerTriggerFilePath, "c:\\system\\data\\" ); |
100 #endif |
99 #endif |
101 |
100 |
102 _LIT( KPushMtmRes, "PushMtmUi.rsc" ); |
|
103 _LIT( KRoHandlerResourceFile, "RoHandler.rsc" ); |
101 _LIT( KRoHandlerResourceFile, "RoHandler.rsc" ); |
104 |
102 |
105 _LIT8( KRoapTriggerElement, "roapTrigger" ); |
103 _LIT8( KRoapTriggerElement, "roapTrigger" ); |
106 _LIT8( KWbxmlRoapTriggerElement, "\x03\x13j" ); |
104 _LIT8( KWbxmlRoapTriggerElement, "\x03\x13j" ); |
107 _LIT8( KRoapTriggerRoAcquisition, "roAcquisition" ); |
105 _LIT8( KRoapTriggerRoAcquisition, "roAcquisition" ); |
1186 User::LeaveIfError( fs.Connect() ); |
1184 User::LeaveIfError( fs.Connect() ); |
1187 #ifdef _DRM_TESTING |
1185 #ifdef _DRM_TESTING |
1188 TRAP( r, WriteL( _L8( "ReadFromResourceLC-fs.Connect" ) ) ); |
1186 TRAP( r, WriteL( _L8( "ReadFromResourceLC-fs.Connect" ) ) ); |
1189 #endif |
1187 #endif |
1190 CleanupClosePushL( fs ); |
1188 CleanupClosePushL( fs ); |
1191 CStringResourceReader* reader( |
1189 CRoHandlerStringResourceReader* reader( |
1192 new ( ELeave ) CStringResourceReader( fs, aFile ) ); |
1190 new ( ELeave ) CRoHandlerStringResourceReader( fs, aFile ) ); |
1193 #ifdef _DRM_TESTING |
1191 #ifdef _DRM_TESTING |
1194 TRAP( r, WriteL( _L8( "ReadFromResourceLC-CStringResourceReader" ) ) ); |
1192 TRAP( r, WriteL( _L8( "ReadFromResourceLC-CRoHandlerStringResourceReader" ) ) ); |
1195 #endif |
1193 #endif |
1196 CleanupStack::PushL( reader ); |
1194 CleanupStack::PushL( reader ); |
1197 aBuf = reader->AllocReadResourceL( aIndex ); |
1195 aBuf = reader->AllocReadResourceL( aIndex ); |
1198 #ifdef _DRM_TESTING |
1196 #ifdef _DRM_TESTING |
1199 TRAP( r, WriteL( _L8( "ReadFromResourceLC-AllocReadResourceL" ) ) ); |
1197 TRAP( r, WriteL( _L8( "ReadFromResourceLC-AllocReadResourceL" ) ) ); |