omadrm/drmhelper/src/drmhelper.cpp
branchRCL_3
changeset 12 8a03a285ab14
parent 10 89a1f2bd800d
child 16 457cd4423b8c
equal deleted inserted replaced
11:e16d72588c28 12:8a03a285ab14
    23 #include "DRMHelperInfoNoteWrapper.h"
    23 #include "DRMHelperInfoNoteWrapper.h"
    24 #include "DRMRightsClient.h"
    24 #include "DRMRightsClient.h"
    25 #include "DcfCommon.h"
    25 #include "DcfCommon.h"
    26 #include "DRMHelperDownloadManager.h"
    26 #include "DRMHelperDownloadManager.h"
    27 
    27 
    28 #include <SaCls.h>
    28 #include <sacls.h>
    29 #include <DRMHelper.rsg>
    29 #include <Drmhelper.rsg>
    30 #include <AknQueryDialog.h>
    30 #include <AknQueryDialog.h>
    31 #include <DRMCommon.h>
    31 #include <DRMCommon.h>
    32 
    32 
    33 #include <StarterClient.h>
    33 #include <starterclient.h>
    34 
    34 
    35 #ifdef RD_MULTIPLE_DRIVE
    35 #ifdef RD_MULTIPLE_DRIVE
    36 #include <DriveInfo.h>
    36 #include <driveinfo.h>
    37 #endif
    37 #endif
    38 
    38 
    39 #include <StringLoader.h>
    39 #include <StringLoader.h>
    40 #include <eikproc.h> //CEikProcess
    40 #include <eikproc.h> //CEikProcess
    41 #include <eikdoc.h> //CEikDocument
    41 #include <eikdoc.h> //CEikDocument
    42 #include <documenthandler.h> // KDRMErr*
    42 #include <DocumentHandler.h> // KDRMErr*
    43 #include <aknnotewrappers.h> // information note
    43 #include <aknnotewrappers.h> // information note
    44 #include <aknglobalnote.h> // global info note
    44 #include <AknGlobalNote.h> // global info note
    45 
    45 
    46 #include <drmconstraint.h>
    46 #include <DrmConstraint.h>
    47 
    47 
    48 #include <stringresourcereader.h>
    48 #include <stringresourcereader.h>
    49 #include <apgcli.h>
    49 #include <apgcli.h>
    50 #include <data_caging_path_literals.hrh>
    50 #include <data_caging_path_literals.hrh>
    51 
    51 
    52 #include <AiwGenericParam.h>
    52 #include <AiwGenericParam.h>
    53 #include <dcfrep.h>
    53 #include <DcfRep.h>
    54 #include <DcfEntry.h>
    54 #include <DcfEntry.h>
    55 
    55 
    56 #include <caf/caf.h>
    56 #include <caf/caf.h>
       
    57 #include <caf/cafplatform.h>
    57 
    58 
    58 #include <AknLaunchAppService.h> // for launching RMUI embedded
    59 #include <AknLaunchAppService.h> // for launching RMUI embedded
    59 
    60 
    60 #include <utf.h>
    61 #include <utf.h>
    61 
    62 
    62 #include <schemehandler.h> // for handling URLs
    63 #include <schemehandler.h> // for handling URLs
    63 #include "drmhelperserver.h"
    64 #include "DRMHelperServer.h"
    64 #include "consumedata.h"
    65 #include "ConsumeData.h"
    65 #include "drmtypes.h"
    66 #include "DRMTypes.h"
    66 #include "drmclockclient.h"
    67 #include "DRMClockClient.h"
    67 #include "DRMPointerArray.h"
    68 #include "DRMPointerArray.h"
    68 
    69 
    69 #include <SecondaryDisplay/DRMHelperSecondaryDisplay.h> // for secondary display support
    70 #include <SecondaryDisplay/DRMHelperSecondaryDisplay.h> // for secondary display support
    70 #include <aknmediatorfacade.h>
    71 #include <AknMediatorFacade.h>
    71 #include <mediatoreventprovider.h>
    72 #include <MediatorEventProvider.h>
    72 #include <mediatordomainuids.h>
    73 #include <MediatorDomainUIDs.h>
    73 #include <featmgr.h>
    74 #include <featmgr.h>
    74 
    75 
    75 #include "RoapStorageClient.h"
    76 #include "RoapStorageClient.h"
    76 
    77 
    77 #include <centralrepository.h>
    78 #include <centralrepository.h>
    86 #include <cmdestination.h>
    87 #include <cmdestination.h>
    87 #include <cmconnectionmethoddef.h>
    88 #include <cmconnectionmethoddef.h>
    88 #include <cmmanager.h>
    89 #include <cmmanager.h>
    89 
    90 
    90 // publish & subrscibe
    91 // publish & subrscibe
    91 #include <E32Property.h>
    92 #include <e32property.h>
    92 #include <PsVariables.h>
    93 #include <PSVariables.h>
    93 
    94 
    94 #ifdef __SERIES60_NATIVE_BROWSER
    95 #ifdef __SERIES60_NATIVE_BROWSER
    95 #include <browseruisdkcrkeys.h>
    96 #include <browseruisdkcrkeys.h>
    96 #endif
    97 #endif
    97 
    98 
  3594     CleanupStack::Pop( b );
  3595     CleanupStack::Pop( b );
  3595     b = NULL;
  3596     b = NULL;
  3596     CleanupStack::PushL( localIDBuf );
  3597     CleanupStack::PushL( localIDBuf );
  3597 
  3598 
  3598     // length of startparam is always 1 and some markers are needed
  3599     // length of startparam is always 1 and some markers are needed
  3599     TInt length = 1 + aUrl->Length() + localIDBuf->Des().Length() + 4;
  3600     TInt length = 1 + aUrl->Length() + localIDBuf->Des().Length() + 3;
  3600 
  3601 
  3601     aLaunchParam = HBufC::NewMaxL( length );
  3602     aLaunchParam = HBufC::NewMaxL( length );
  3602 
  3603 
  3603     TPtr ptr( aLaunchParam->Des() );
  3604     TPtr ptr( aLaunchParam->Des() );
  3604     ptr.SetLength( 0 );
  3605     ptr.SetLength( 0 );
  3624     ptr.SetLength( length );
  3625     ptr.SetLength( length );
  3625     for ( TInt i = 0 ; i < aUrl->Length(); i++ )
  3626     for ( TInt i = 0 ; i < aUrl->Length(); i++ )
  3626         {
  3627         {
  3627         ptr[index++] = ( unsigned char ) (*aUrl)[i];
  3628         ptr[index++] = ( unsigned char ) (*aUrl)[i];
  3628         }
  3629         }
  3629 
  3630     
  3630     ptr.Append( KMarker() );
  3631     ptr[index] = ( unsigned char ) KMarker()[0];
  3631     
  3632     
  3632     CleanupStack::PopAndDestroy( localIDBuf );
  3633     CleanupStack::PopAndDestroy( localIDBuf );
  3633     }
  3634     }
  3634 
  3635 
  3635 
  3636