diff -r 79d62d1d7957 -r 493788a4a8a4 omadrm/drmhelper/src/drmhelper.cpp --- a/omadrm/drmhelper/src/drmhelper.cpp Tue Feb 02 00:21:44 2010 +0200 +++ b/omadrm/drmhelper/src/drmhelper.cpp Fri Apr 16 15:14:55 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2003-2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -25,51 +25,52 @@ #include "DcfCommon.h" #include "DRMHelperDownloadManager.h" -#include -#include +#include +#include #include #include -#include +#include #ifdef RD_MULTIPLE_DRIVE -#include +#include #endif #include #include //CEikProcess #include //CEikDocument -#include // KDRMErr* +#include // KDRMErr* #include // information note -#include // global info note - -#include +#include // global info note + +#include #include #include #include #include -#include +#include #include #include +#include #include // for launching RMUI embedded #include -#include // for handling URLs -#include "drmhelperserver.h" -#include "consumedata.h" -#include "drmtypes.h" -#include "drmclockclient.h" +#include // for handling URLs +#include "DRMHelperServer.h" +#include "ConsumeData.h" +#include "DRMTypes.h" +#include "DRMClockClient.h" #include "DRMPointerArray.h" #include // for secondary display support -#include -#include -#include +#include +#include +#include #include #include "RoapStorageClient.h" @@ -88,11 +89,11 @@ #include // publish & subrscibe -#include -#include +#include +#include #ifdef __SERIES60_NATIVE_BROWSER -#include +#include #endif #ifndef __SERIES60_NATIVE_BROWSER @@ -3587,16 +3588,16 @@ { TInt index; - // MaxInt will fit into 10 characters - HBufC* b( HBufC::NewLC( 10 ) ); + // MaxInt will fit into 11 characters + HBufC* b( HBufC::NewLC( 11 ) ); b->Des().NumUC( aLocalId ); HBufC* localIDBuf( b->ReAllocL( b->Des().Length() ) ); CleanupStack::Pop( b ); b = NULL; CleanupStack::PushL( localIDBuf ); - // length of startparam is always 1 and 2 spaces are needed - TInt length = 1 + aUrl->Length() + localIDBuf->Des().Length() + 2; + // length of startparam is always 1 and some markers are needed + TInt length = 1 + aUrl->Length() + localIDBuf->Des().Length() + 3; aLaunchParam = HBufC::NewMaxL( length ); @@ -3604,7 +3605,7 @@ ptr.SetLength( 0 ); _LIT( KOne, "1" ); _LIT( KTwo, "2" ); - _LIT( KSpace, " " ); + _LIT( KMarker, "\x00" ); // start param is 1 for embedded launch and 2 for launching details view // standalone @@ -3616,9 +3617,9 @@ { ptr.Append( KTwo() ); } - ptr.Append( KSpace() ); + ptr.Append( KMarker() ); ptr.Append( localIDBuf->Des() ); - ptr.Append( KSpace() ); + ptr.Append( KMarker() ); index = ptr.Length(); ptr.SetLength( length ); @@ -3627,6 +3628,8 @@ ptr[index++] = ( unsigned char ) (*aUrl)[i]; } + ptr[index] = ( unsigned char ) KMarker()[0]; + CleanupStack::PopAndDestroy( localIDBuf ); } @@ -5604,7 +5607,7 @@ CAknLaunchAppService* launchAppService = CAknLaunchAppService::NewL( KUidDRMUI, this, paramList ); - + CleanupStack::PushL( launchAppService ); iWait.Start();