tsrc/drmstub/src/drmcommonstub.cpp
changeset 22 496ad160a278
parent 0 f0cf47e981f9
equal deleted inserted replaced
15:ccd8e69b5392 22:496ad160a278
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include <drmcommon.h>
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 // -----------------------------------------------------------------------------
       
    24 // 
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C DRMCommon* DRMCommon::NewL(void)
       
    28     {
       
    29     DRMCommon* self = new ( ELeave ) DRMCommon;
       
    30     CleanupStack::PushL( self );
       
    31     self->ConstructL();
       
    32     CleanupStack::Pop( self );
       
    33     return self;
       
    34     }
       
    35     
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // 
       
    39 // -----------------------------------------------------------------------------
       
    40 //    
       
    41 EXPORT_C DRMCommon::~DRMCommon(void)
       
    42     {
       
    43     }
       
    44 
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // 
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 EXPORT_C TInt DRMCommon::Connect(void)
       
    51     {
       
    52     return KErrNone;
       
    53     }
       
    54     
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // 
       
    58 // -----------------------------------------------------------------------------
       
    59 //    
       
    60 EXPORT_C TInt DRMCommon::Disconnect(void)
       
    61     {
       
    62     return KErrNone;
       
    63     }
       
    64 
       
    65 
       
    66 // -----------------------------------------------------------------------------
       
    67 // 
       
    68 // -----------------------------------------------------------------------------
       
    69 //
       
    70 EXPORT_C TInt DRMCommon::IsProtectedFile( const TDesC& aFileName, 
       
    71                                           TBool& aProtection)
       
    72     {
       
    73     if ( aFileName == KMusDrmProtectedFileName() )
       
    74         {
       
    75         aProtection = ETrue;
       
    76         }
       
    77     else
       
    78         {
       
    79         aProtection = EFalse;
       
    80         }
       
    81         
       
    82     return KErrNone;
       
    83     }
       
    84 
       
    85 
       
    86 // -----------------------------------------------------------------------------
       
    87 // 
       
    88 // -----------------------------------------------------------------------------
       
    89 //
       
    90 EXPORT_C DRMCommon::DRMCommon(void)
       
    91     :iIsConnected( EFalse )
       
    92     {
       
    93     }
       
    94     
       
    95     
       
    96 // -----------------------------------------------------------------------------
       
    97 // 
       
    98 // -----------------------------------------------------------------------------
       
    99 //
       
   100 EXPORT_C void DRMCommon::ConstructL(void)
       
   101     {
       
   102     }
       
   103 
       
   104 
       
   105 
       
   106 
       
   107 
       
   108