harvester/monitorplugins/mmcplugin/inc/mmcfilelist.h
changeset 0 c53acadfccc6
child 1 acef663c1218
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __MMCFILELIST_H__
       
    19 #define __MMCFILELIST_H__
       
    20 
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 #include "harvestermediaidutil.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class CHarvesterEventManager;
       
    28 class CPlaceholderData;
       
    29 class CMdEHarvesterSession;
       
    30 class CHarvesterPluginFactory;
       
    31 
       
    32 class CMmcFileList : public CBase
       
    33 {
       
    34 public:
       
    35 
       
    36 	static CMmcFileList* NewL();	
       
    37 	virtual ~CMmcFileList();
       
    38 	
       
    39 private:	
       
    40 	CMmcFileList();
       
    41 	void ConstructL();
       
    42 	
       
    43 	static TBool IsDescInArray(const TPtrC& aSearch, const RPointerArray<HBufC>& aArray);
       
    44 	
       
    45 public:	
       
    46 	void BuildFileListL(RFs& aFs, const TDesC& aDrivePath, 
       
    47 			RPointerArray<CPlaceholderData>& aEntryArray );
       
    48 	void HandleFileEntryL( CMdEHarvesterSession& aMdeSession,
       
    49 			RPointerArray<CPlaceholderData>& aEntryArray,
       
    50 			RPointerArray<CPlaceholderData>& aHarvestEntryArray,
       
    51 			TUint32 aMediaID,
       
    52 			CHarvesterPluginFactory* aPluginFactory );
       
    53 
       
    54 private:
       
    55 	CHarvesterEventManager* iHem;
       
    56     // not own
       
    57     CHarvesterMediaIdUtil* iMediaIdUtil;
       
    58 };
       
    59 
       
    60 #endif /*MMCFILELIST_H_*/