Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
19 @internalComponent - Internal Symbian test code
22 #ifndef __TDISPLAYMODE_MAPPING_H__
23 #define __TDISPLAYMODE_MAPPING_H__
26 #include <pixelformats.h>
29 // a helper class for mapping between display modes and pixel formats in directgdi tests
30 class TDisplayModeMapping
33 static TDisplayMode MapPixelFormatToDisplayMode(const TUidPixelFormat aFormat);
34 static TUidPixelFormat MapDisplayModeToPixelFormat(const TDisplayMode aDisplayMode);
35 static TDisplayMode ConvertPixelFormatStringToDisplayMode(const TPtrC aPixelformatString);
36 static TUidPixelFormat ConvertPixelFormatStringToPixelFormat(const TPtrC aPixelformatString);
37 static TPtrC ConvertPixelFormatToPixelFormatString(const TUidPixelFormat aFormat);
38 static TPtrC ConvertPixelFormatToShortPixelFormatString(const TUidPixelFormat aFormat);