diff -r ccd8e69b5392 -r 496ad160a278 inc/musresourcefinderutil.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/musresourcefinderutil.h Fri Jun 11 13:36:18 2010 +0300 @@ -0,0 +1,66 @@ +/* +* 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 +#include + +// 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