sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: sl@0: sl@0: // INCLUDE FILES sl@0: #include sl@0: #include "commoncontentpolicy.h" sl@0: sl@0: EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewL() sl@0: { return reinterpret_cast(CApfMimeContentPolicy::NewL()); } sl@0: sl@0: EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewLC() sl@0: { return reinterpret_cast(CApfMimeContentPolicy::NewLC()); } sl@0: sl@0: EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewL(RFs& aFs) sl@0: { return reinterpret_cast(CApfMimeContentPolicy::NewL(aFs)); } sl@0: sl@0: EXPORT_C CCommonContentPolicy* CCommonContentPolicy::NewLC(RFs& aFs) sl@0: { return reinterpret_cast(CApfMimeContentPolicy::NewLC(aFs)); } sl@0: sl@0: EXPORT_C CCommonContentPolicy::~CCommonContentPolicy() sl@0: { delete reinterpret_cast(this); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsClosedType(const TDesC& aMimeType) sl@0: { return reinterpret_cast(this)->IsClosedType(aMimeType); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsClosedExtension(const TDesC& aFileExtension) sl@0: { return reinterpret_cast(this)->IsClosedExtension(aFileExtension); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsClosedFileL(const TDesC& aFileName) sl@0: { return reinterpret_cast(this)->IsClosedFileL(aFileName); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsDRMEnvelopeL(const TDesC& aFileName) sl@0: { return reinterpret_cast(this)->IsDRMEnvelopeL(aFileName); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsClosedFileL(RFile& aFileHandle) sl@0: { return reinterpret_cast(this)->IsClosedFileL(aFileHandle); } sl@0: sl@0: EXPORT_C TBool CCommonContentPolicy::IsDRMEnvelopeL(RFile& aFileHandle) sl@0: { return reinterpret_cast(this)->IsDRMEnvelopeL(aFileHandle); } sl@0: