commondrm/drmrightsmanagerui/src/DRMCommonUtilities.cpp
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
     1 /*
     1 /*
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
    20 #include <stringloader.h>
    20 #include <StringLoader.h>
    21 #include <aknquerydialog.h>
    21 #include <AknQueryDialog.h>
    22 #include <aknnotewrappers.h>
    22 #include <aknnotewrappers.h>
    23 #include <oma2agent.h>
    23 #include <Oma2Agent.h>
    24 
    24 
    25 #include <drmrightsmanager.rsg>
    25 #include <DRMRightsManager.rsg>
    26 #include <data_caging_path_literals.hrh>
    26 #include <data_caging_path_literals.hrh>
    27 
    27 
    28 #include <utf.h>
    28 #include <utf.h>
    29 
    29 
    30 #include "drmcommonutilities.h"
    30 #include "DRMCommonUtilities.h"
    31 #include "drmrightsmgrapp.h"
    31 #include "DRMRightsMgrApp.h"
    32 #include "drmuilogger.h"
    32 #include "DRMUILogger.h"
    33 #include "drmrightsmgrappui.h"
    33 #include "DRMRightsMgrAppUi.h"
    34 #include "drmutilityinternaltypes.h"
    34 #include "drmutilityinternaltypes.h"
    35 
    35 
    36 // CONSTANTS
    36 // CONSTANTS
    37 
    37 
    38 // ROM folder
    38 // ROM folder
   306     HBufC* url16( NULL );
   306     HBufC* url16( NULL );
   307     HBufC* fullName( NULL );
   307     HBufC* fullName( NULL );
   308     TUint32 drmScheme( EDrmSchemeUnknownDrm );
   308     TUint32 drmScheme( EDrmSchemeUnknownDrm );
   309     params = new( ELeave )CArrayFixFlat<TPtrC>( sizeof( TPtrC ) );
   309     params = new( ELeave )CArrayFixFlat<TPtrC>( sizeof( TPtrC ) );
   310     CleanupStack::PushL( params );
   310     CleanupStack::PushL( params );
   311 
   311     TChar ch;
       
   312 
       
   313     aLex.Mark();
   312     while ( !aLex.Eos() )                // Extract the parameters
   314     while ( !aLex.Eos() )                // Extract the parameters
   313         {
   315         {
   314         params->AppendL( aLex.NextToken() );
   316         ch = aLex.Get();
       
   317         if ( ch == '\x00' ) {
       
   318             aLex.UnGet();
       
   319             params->AppendL( aLex.MarkedToken() );
       
   320             aLex.Get();
       
   321             aLex.Mark();
       
   322             }
   315         }
   323         }
   316 
   324 
   317     TInt startParam = KMaxTInt;
   325     TInt startParam = KMaxTInt;
   318 
   326 
   319     // Parse the DRM Rights Manager launch parameter string. First parameter
   327     // Parse the DRM Rights Manager launch parameter string. First parameter