os/mm/mmswadaptation/videorenderer/inc/resourcefilereader.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 /**
    17  @file
    18  @internalComponent
    19 */
    20 
    21 #ifndef RESOURCEFILEREADER_H
    22 #define RESOURCEFILEREADER_H
    23 
    24 #include <e32std.h>
    25 #include <e32base.h>
    26 #include <barsc.h>
    27 
    28 // class declaration
    29 class TUncompressedVideoFormat;
    30 
    31 
    32 /** This class is responsible for reading the supplied resource file */
    33 NONSHARABLE_CLASS(CResourceFileReader) : public CBase
    34 	{
    35 public:
    36 	static CResourceFileReader* NewL(const TDesC& aResourceFile);
    37 	static CResourceFileReader* NewLC(const TDesC& aResourceFile);
    38 	~CResourceFileReader();
    39 	
    40 	void ReadSupportedFormatL(RArray<TUncompressedVideoFormat>& aArray);
    41 	void ReadTimerInfoL(TInt64& aDefaultDelay, TInt64& aMaxDelay);
    42 
    43 private:
    44 	CResourceFileReader();
    45 	void ConstructL(const TDesC& aResourceFile);
    46 
    47 private:
    48 	RFs iFs;
    49 	RResourceFile iResourceFile;
    50 	};
    51 
    52 #endif // RESOURCEFILEREADER_H
    53