diff -r 839377eedc2b -r befca0ec475f videocollection/hgmyvideos/inc/CIptvResourceLoader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videocollection/hgmyvideos/inc/CIptvResourceLoader.h Wed Sep 01 12:30:28 2010 +0100 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* +*/ + + + + +#ifndef CIPTVRESOURCELOADER_H +#define CIPTVRESOURCELOADER_H + +// INCLUDES +#include + +class CCoeEnv; +class RFs; + +// CLASS DECLARATION +NONSHARABLE_CLASS ( CIptvResourceLoader ) : public CBase + { + public: + /** + * Two-phased constructor. + * @param + */ + static CIptvResourceLoader* NewL( CCoeEnv& aCoeEnv ); + + /** + * Destructor. + */ + virtual ~CIptvResourceLoader(); + + /** + * Add resource. + * + * @param aResourceFile Descriptor containing the resource file to be loaded + */ + void AddResourceL( const TDesC& aResourceFile ); + + private: // New functions + + /** + * C++ default constructor. + */ + CIptvResourceLoader( CCoeEnv& aCoeEnv ); + + /** + * By default Symbian 2nd phase constructor is private. + * @param + */ + void ConstructL(); + + /** + * Search resource file. + * + * @param aFile Buffer descriptor to the resource file + * @return System wide error code + */ + TInt SearchResourceFile( const TDesC& aFile ); + + /** + * Add resource file. + * + * @param aFile Buffer descriptor to the resource file + * @return System wide error code + */ + TInt AddResourceFile( const TDesC& aFile ); + + private: // Data members + + /** + * Resource file offset. + */ + TInt iOffset; + + /** + * Is resource added + */ + TBool iAdded; + + /** + * Reference to CCoeEnv. + */ + CCoeEnv& iCoeEnv; + + }; + +#endif // CIPTVRESOURCELOADER_H + +// End of File