mmfenh/enhancedmediaclient/Client/src/Components/StreamControl/ClientUtility.cpp
branchRCL_3
changeset 46 0ac9a5310753
parent 45 095bea5f582e
equal deleted inserted replaced
45:095bea5f582e 46:0ac9a5310753
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Definition of the ClientUtility class.
    14 * Description:  Definition of the ClientUtility class.
    15 *  Version     : %version: 12 %
    15 *  Version     : %version: bh1mmcf#12 %
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 //
    19 //
    20 // Copyright (c) Symbian Software Ltd 2002-2006.  All rights reserved.
    20 // Copyright (c) Symbian Software Ltd 2002-2006.  All rights reserved.
    25 #include <bautils.h>
    25 #include <bautils.h>
    26 #include <mmf/common/mmfpaniccodes.h>
    26 #include <mmf/common/mmfpaniccodes.h>
    27 #include <StreamControlCustomCommands.h>
    27 #include <StreamControlCustomCommands.h>
    28 #include <mmf/server/mmfdrmpluginserverproxy.h>
    28 #include <mmf/server/mmfdrmpluginserverproxy.h>
    29 #include "../../../Plugins/FileSource/inc/FileDataSourceUid.hrh"
    29 #include "../../../Plugins/FileSource/inc/FileDataSourceUid.hrh"
       
    30 #include "../../../Plugins/ProgDLSource/inc/ProgDLSourceUid.hrh"
    30 using namespace ContentAccess;
    31 using namespace ContentAccess;
    31 using namespace multimedia;
    32 using namespace multimedia;
    32 
    33 
    33 const TInt KMaxMimeLength = 256;
    34 const TInt KMaxMimeLength = 256;
    34 const TInt KMaxHeaderSize = 256;
    35 const TInt KMaxHeaderSize = 256;
  2293     aIsSecureDrmProcess = EFalse;
  2294     aIsSecureDrmProcess = EFalse;
  2294 
  2295 
  2295     //need to proceed only in case of local playback mode
  2296     //need to proceed only in case of local playback mode
  2296     TUid sourceUid = iCurrentConfig->iSource->SourceSinkUid();
  2297     TUid sourceUid = iCurrentConfig->iSource->SourceSinkUid();
  2297     TBool localPlaybackMode;
  2298     TBool localPlaybackMode;
  2298 	if( mode == EPlayback && ( sourceUid.iUid == KFileDataSourcePlugin ) )
  2299 	if( mode == EPlayback && ( sourceUid.iUid == KFileDataSourcePlugin || sourceUid.iUid == KMmfProgDLSourceUid ) )
  2299 		{
  2300 		{
  2300 		localPlaybackMode = ETrue;
  2301 		localPlaybackMode = ETrue;
  2301 		}
  2302 		}
  2302 	else
  2303 	else
  2303 		{
  2304 		{
  2322             User::LeaveIfError(error);
  2323             User::LeaveIfError(error);
  2323             }
  2324             }
  2324         }
  2325         }
  2325     else if(iFileName.Length() != 0)  //need to check if file name exist
  2326     else if(iFileName.Length() != 0)  //need to check if file name exist
  2326         {
  2327         {
  2327         TRAP(error, content = ContentAccess::CContent::NewL(iFileName));
  2328         TRAP(error, content = ContentAccess::CContent::NewL(iFileName,EContentShareReadWrite));
  2328         if(error == KErrPermissionDenied)
  2329         if(error == KErrPermissionDenied)
  2329             {
  2330             {
  2330             aIsSecureDrmProcess = ETrue;
  2331             aIsSecureDrmProcess = ETrue;
  2331             return;
  2332             return;
  2332             }
  2333             }