harvester/monitorplugins/inc/fsutil.h
changeset 0 c53acadfccc6
equal deleted inserted replaced
-1:000000000000 0:c53acadfccc6
       
     1 /*
       
     2 * Copyright (c) 2006-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:  Some generic utilities.*
       
    15 */
       
    16 
       
    17 #ifndef __FSUTIL_H__
       
    18 #define __FSUTIL_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class CMdEHarvesterSession;
       
    23 
       
    24 class FSUtil
       
    25     {
       
    26 	public:
       
    27 	    
       
    28 	    static inline TUint32 MediaID( const RFs& aFs, TInt aDrive );
       
    29 	        
       
    30 	    static inline TUint32 MediaID( const RFs& aFs, const TDesC& aUri );
       
    31 
       
    32 		/*
       
    33 		 * Returns previous media id was inserted to a slot
       
    34 		 * 
       
    35 		 * @param aMdeSession	Session for database access
       
    36 		 * @param aDrive		Drive letter which media id is wanted
       
    37 		 */
       
    38 		static inline TUint32 GetPreviousMediaIDL( const CMdEHarvesterSession* aMdeSession, 
       
    39 												   TChar aDrive );
       
    40 	    
       
    41 	private:
       
    42 	
       
    43 	    static inline TInt DriveNumber( const TDesC& aUri );
       
    44     };
       
    45 
       
    46 #include "fsutil.inl" // inlined methods
       
    47 
       
    48 #endif // __FSUTIL_H__
       
    49