os/graphics/windowing/windowserver/test/t_integ/inc/t_winutils.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-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 //
    15 
    16 /**
    17  @file
    18  @test
    19  @internalComponent
    20 */
    21 
    22 #ifndef __T_WINUTILS_H__
    23 #define __T_WINUTILS_H__
    24 
    25 #include <e32std.h>
    26 #include <w32std.h>
    27 #include <displaymode.h>
    28 #include <fbs.h>
    29 #include <bitdev.h>
    30 #include <iniparser.h>
    31 
    32 class CTestBitmap : public CBase
    33 	{
    34 public:
    35 	IMPORT_C static CTestBitmap* NewLC(const TSize& aSizeInPixels,TDisplayMode aDispMode);
    36 	IMPORT_C static CTestBitmap* NewL(const TSize& aSizeInPixels,TDisplayMode aDispMode);
    37 	IMPORT_C static CTestBitmap* NewL(TInt aHandle);
    38 	inline CFbsBitmap& Bitmap() const {return *iBitmap;}
    39 	inline CFbsBitmapDevice& Device() const {return *iDevice;}
    40 	inline CFbsBitGc& Gc() const {return *iGc;}
    41 	~CTestBitmap();
    42 
    43 private:
    44 	static CTestBitmap* NewLC(TInt aHandle,const TSize& aSizeInPixels,TDisplayMode aDispMode);
    45 	void ConstructL(TInt aHandle,const TSize& aSizeInPixels,TDisplayMode aDispMode);
    46 
    47 private:
    48 	CFbsBitmap* iBitmap;
    49 	CFbsBitmapDevice* iDevice;
    50 	CFbsBitGc* iGc;
    51 	};
    52 
    53 class TImportPseudoAppConfig
    54 	{
    55 public:
    56 	IMPORT_C static void ImportPseudoAppConfigL(TInt aScreenNo, TInt& aFrameDuration, TInt& aFrameDelay,
    57 	                                            TDisplayMode& aMode, TSize& aScreenSize, CIniData* aUtils);
    58 	};
    59 
    60 #endif //__T_WINUTILS_H__