os/graphics/fbs/fontandbitmapserver/tfbs/trfile.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-2010 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 // TRFILE.CPP
    15 // 
    16 //
    17 
    18 #ifndef __TRFILE_H__
    19 #define __TRFILE_H__
    20 
    21 #include <fbs.h>
    22 #include <bitstd.h>
    23 #include "test/TGraphicsHarness.h"
    24 
    25 class CTFile : public CTGraphicsBase
    26 	{
    27 public:
    28 	CTFile(CTestStep* aStep);
    29 	~CTFile();
    30 protected:
    31 //from 	CTGraphicsStep
    32 	virtual void RunTestCaseL(TInt aCurTestCase);
    33 	virtual void ConstructL();
    34 private:
    35 	void CreateL();
    36 	void SaveL();
    37 	void StoreL();
    38 	void LoadL();
    39 	void LoadAndCompressL();
    40 	void Draw(CFbsBitGc* aGc,const TSize& aSize);
    41 	void CleanUp();
    42 	void BlitAndCompareL(CFbsBitmap* aBmpOrig,CFbsBitmap* aBmpTest,const TSize& aBmpSize);
    43 
    44 private:
    45 	RFbsSession* iFbs;
    46 	RPointerArray<CFbsBitmap> iSource;
    47 	RFs iFs;
    48 	TBool iShutdownFbs;
    49 	TBool iSkipRomBitmapTests;
    50 	};
    51 
    52 
    53 class CTFileStep : public CTGraphicsStep
    54 	{
    55 public:
    56 	CTFileStep();
    57 protected:	
    58 	//from CTGraphicsStep
    59 	virtual CTGraphicsBase* CreateTestL();
    60 	};
    61 
    62 _LIT(KTFileStep,"TFile");
    63 
    64 #endif