profilesservices/ProfileEngine/WrapperSrc/CProEngDrmCommonWrapper.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  The wrapper of DRMCommon class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPROENGDRMCOMMONWRAPPER_H
       
    20 #define CPROENGDRMCOMMONWRAPPER_H
       
    21 
       
    22 
       
    23 // INCLUDE FILES
       
    24 #include    <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class DRMCommon;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 * This class is a wrapper around the DRMCommon class.
       
    33 *
       
    34 *  @lib ProfileEngine.lib
       
    35 *  @since 3.1
       
    36 */
       
    37 NONSHARABLE_CLASS( CProEngDrmCommonWrapper ) : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40 
       
    41         /**
       
    42          * Two-phased constructor.
       
    43          */
       
    44         static CProEngDrmCommonWrapper* NewL();
       
    45 
       
    46         /**
       
    47          * Destructor.
       
    48          */
       
    49         virtual ~CProEngDrmCommonWrapper();
       
    50 
       
    51     public:  // New functions
       
    52 
       
    53         /**
       
    54          * Checks if the given file is protected.
       
    55          * @param aFileName the file to be checked.
       
    56          * @return ETrue if protected, EFalse otherwise.
       
    57          */
       
    58         TBool IsProtected( const TDesC& aFileName );
       
    59         
       
    60         /**
       
    61          * Checks if the given file is protected.
       
    62          * @param aFileName the file to be checked.
       
    63          * @return ETrue if protected, EFalse otherwise.
       
    64          */
       
    65         TBool IsProtectedL( const TDesC& aFileName );
       
    66 
       
    67     private:
       
    68 
       
    69         /**
       
    70          * C++ default constructor.
       
    71          */
       
    72         CProEngDrmCommonWrapper();
       
    73 
       
    74         /**
       
    75         * By default Symbian 2nd phase constructor is private.
       
    76         */
       
    77         void ConstructL();
       
    78 
       
    79     private: // Data
       
    80 
       
    81         /// Own: The real DRMCommon 
       
    82         DRMCommon* iDrmCommon;
       
    83 
       
    84     };
       
    85 
       
    86 #endif      //  CPROENGDRMCOMMONWRAPPER_H
       
    87 
       
    88 //  End of File
       
    89