Update contrib.
1 // Copyright (c) 2008-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 __TDISPLAYMODEMAPPING_H__
23 #define __TDISPLAYMODEMAPPING_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 ConvertDisplayModeToString(const TDisplayMode aFormat);
39 static void ConvertPixelFormats(TPtrC aPixelFormatInput, RArray<TUidPixelFormat>& aPixelFormatArray);
42 #endif //__TDISPLAYMODEMAPPING_H__