videocollection/hgmyvideos/inc/CIptvResourceLoader.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 15 Jul 2010 18:41:27 +0300
branchRCL_3
changeset 20 2d690156cf8f
parent 8 ce5ada96ab30
permissions -rw-r--r--
Revision: 201025 Kit: 2010127

/*
* 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 <e32std.h>

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