mtpfws/mtpfw/dataproviders/dputility/inc/cmtpfsexclusionmgr.h
changeset 0 d0791faffa3f
child 47 63cf70d3ecd8
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CMTPFSEXCLUSIONMGR_H
       
    22 #define CMTPFSEXCLUSIONMGR_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <mtp/mtpprotocolconstants.h>
       
    26 #include "mtpdebug.h"
       
    27 #include <mtp/mmtpstoragemgr.h>
       
    28 #include <mtp/cmtpstoragemetadata.h>
       
    29 #include <mtp/cmtpmetadata.h>
       
    30 
       
    31 class MMTPDataProviderFramework;
       
    32 
       
    33 /** 
       
    34 Base class for exclusion managers. Derived classes are intended to implement
       
    35 specific exclusion behaviour.
       
    36 
       
    37 @internalTechnology
       
    38 */
       
    39 class CMTPFSExclusionMgr : public CBase
       
    40 	{
       
    41 public:
       
    42 	IMPORT_C virtual ~CMTPFSExclusionMgr();
       
    43 	
       
    44 	IMPORT_C virtual TBool IsFolderAcceptedL(const TDesC& aPath, TUint32 aStorageID) const;
       
    45 	IMPORT_C virtual TBool IsFileAcceptedL(const TDesC& aFileName, TUint32 aStorageID) const;
       
    46 	IMPORT_C virtual TBool IsFormatValid(TMTPFormatCode aFormat) const = 0;
       
    47     IMPORT_C virtual TBool IsExtensionValid(const TDesC& aExtension) const = 0;
       
    48     
       
    49 protected:
       
    50 	IMPORT_C CMTPFSExclusionMgr(MMTPDataProviderFramework& aFramework);
       
    51 		
       
    52 	IMPORT_C TBool IsPathAcceptedL(const TDesC& aPath, TUint32 aStorageId) const;
       
    53 	
       
    54 protected:
       
    55 	MMTPDataProviderFramework& iFramework;
       
    56 	TLinearOrder<CMTPMetaData::TPathHash> iOrder;
       
    57 	
       
    58 	/**
       
    59     FLOGGER debug trace member variable.
       
    60     */
       
    61     __FLOG_DECLARATION_MEMBER_MUTABLE;
       
    62 	
       
    63 	};
       
    64 	
       
    65 #endif // CMTPFSEXCLUSIONMGR_H