diff -r 8bda91a87a00 -r 8ee96d21d9bf profilesservices/FileList/Src/CFLDDRMImplementationEmpty.cpp --- a/profilesservices/FileList/Src/CFLDDRMImplementationEmpty.cpp Thu Aug 19 10:12:30 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Implementation of the CFLDDRMImplementation. -* -*/ - - - -// INCLUDE FILES -#include "CFLDDRMImplementation.h" - -#include -#include - -// ============================ MEMBER FUNCTIONS =============================== - -// ----------------------------------------------------------------------------- -// CFLDDRMImplementation::ConstructL -// Empty implementation -// ----------------------------------------------------------------------------- -// -void CFLDDRMImplementation::ConstructL() - { - iDRMCommon = DRMCommon::NewL(); - User::LeaveIfError( iDRMCommon->Connect() ); - } - -// Destructor -CFLDDRMImplementation::~CFLDDRMImplementation() - { - if( iDRMCommon ) - { - iDRMCommon->Disconnect(); // ignore possible error - delete iDRMCommon; - } - } - -// ----------------------------------------------------------------------------- -// CFLDDRMImplementation::IsFileValidL -// Empty implementation -// ----------------------------------------------------------------------------- -// -TBool CFLDDRMImplementation::IsFileValidL( - const TDesC& aFileName, TIntention aIntention ) - { - TBool isValidUnprotected( ETrue ); - - if( aFileName.Compare( KNullDesC ) != 0 ) - { - TBool isProtected( EFalse ); - iDRMCommon->IsProtectedFile( aFileName, isProtected ); - if( !isProtected ) - { - // The file in question is not a DCF file. - // Return ETrue if file is also Ok unprotected, otherwise EFalse. - isValidUnprotected = - IsFileValidUnprotectedL( aFileName, aIntention ); - } - } - - return isValidUnprotected; - } - -// End of File