genericservices/s60compatibilityheaders/commonengine/src/commoncontentpolicy.cpp
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <apfmimecontentpolicy.h>
       
    20 #include "commoncontentpolicy.h"
       
    21 
       
    22 EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewL()
       
    23 	{ return reinterpret_cast<CCommonContentPolicy*>(CApfMimeContentPolicy::NewL()); }
       
    24 	
       
    25 EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewLC()
       
    26 	{ return reinterpret_cast<CCommonContentPolicy*>(CApfMimeContentPolicy::NewLC()); }
       
    27 	
       
    28 EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewL(RFs& aFs)
       
    29 	{ return reinterpret_cast<CCommonContentPolicy*>(CApfMimeContentPolicy::NewL(aFs)); }
       
    30 	
       
    31 EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewLC(RFs& aFs)
       
    32 	{ return reinterpret_cast<CCommonContentPolicy*>(CApfMimeContentPolicy::NewLC(aFs)); }
       
    33 	
       
    34 EXPORT_C CCommonContentPolicy::~CCommonContentPolicy()
       
    35 	{ delete reinterpret_cast<CApfMimeContentPolicy*>(this); }
       
    36 	
       
    37 EXPORT_C TBool CCommonContentPolicy::IsClosedType(const TDesC& aMimeType)
       
    38 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsClosedType(aMimeType); }
       
    39 	
       
    40 EXPORT_C TBool CCommonContentPolicy::IsClosedExtension(const TDesC& aFileExtension)
       
    41 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsClosedExtension(aFileExtension); }
       
    42 	
       
    43 EXPORT_C TBool CCommonContentPolicy::IsClosedFileL(const TDesC& aFileName)
       
    44 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsClosedFileL(aFileName); }
       
    45 	
       
    46 EXPORT_C TBool CCommonContentPolicy::IsDRMEnvelopeL(const TDesC& aFileName)
       
    47 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsDRMEnvelopeL(aFileName); }
       
    48 	
       
    49 EXPORT_C TBool CCommonContentPolicy::IsClosedFileL(RFile& aFileHandle)
       
    50 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsClosedFileL(aFileHandle); }
       
    51 	
       
    52 EXPORT_C TBool CCommonContentPolicy::IsDRMEnvelopeL(RFile& aFileHandle)
       
    53 	{ return reinterpret_cast<CApfMimeContentPolicy*>(this)->IsDRMEnvelopeL(aFileHandle); }
       
    54