inc/musresourcefinderutil.h
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 16:50:40 +0000
branchRCL_3
changeset 44 87ee154df721
parent 0 f0cf47e981f9
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2005-2006 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:  The ECOM interface implementation.
*
*/


#ifndef MUSRESOURCEFINDER_H
#define MUSRESOURCEFINDER_H

#include "musunittesting.h"

#include <e32def.h>
#include <e32cmn.h>

// possible locations of compiled resource file

_LIT( KMusResourceRom, "z:\\resource\\" );
_LIT( KMusResourceRam, "c:\\resource\\" );

_LIT( KMusAppResourceRom, "z:\\resource\\apps\\" );
_LIT( KMusAppResourceRam, "c:\\resource\\apps\\" );



class MusResourceFinderUtil
    {
    MUS_UNITTEST( UT_MusResourceFinderUtil )
    
    public:
        /**
         * Returns the full path of resource file name from Resource Dir
         * Note : This function will leave with KErrNotFound 
         *        If the file is not found in Rom or Ram.     
         */
        static HBufC* ResourcePathL( const TDesC& aFileName );  

        /**
         * Returns the full path of resource file name from App Resource Dir
         * Note : This function will leave with KErrNotFound 
         *        If the file is not found in Rom or Ram.     
         */  
        static HBufC* AppResourcePathL( const TDesC& aFileName );
           
        /**
         * Checks the Existence of File
         * Returns ETrue if Exist else EFalse
         */  
        static TBool IsExistL( const TDesC& aFileNameWithPath ); 
    
    };
    
#include "musresourcefinderutil.inl"

#endif // MUSRESOURCEFINDER_H