videofeeds/utils/inc/CIptvResourceLoader.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:43:00 +0200
branchRCL_3
changeset 8 ce5ada96ab30
parent 0 96612d01cf9f
permissions -rw-r--r--
Revision: 201007 Kit: 201008

/*
* Copyright (c) 2004-2007 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 <e32std.h>

class CCoeEnv;
class RFs;

// CLASS DECLARATION
class CIptvResourceLoader : public CBase
    {
    public:
        /**
         * Two-phased constructor.
         * @param 
         */
        IMPORT_C static CIptvResourceLoader* NewL( CCoeEnv& aCoeEnv );

        /**
         * Destructor.
         */
        virtual ~CIptvResourceLoader();

        /**
         * Add resource.
         *
         * @param aResourceFile Descriptor containing the resource file to be loaded
         */
        IMPORT_C 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