sl@0: // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: /** sl@0: @file sl@0: @test sl@0: */ sl@0: sl@0: #ifndef EGLTESTCOMMONSGIMAGEINFO_H sl@0: #define EGLTESTCOMMONSGIMAGEINFO_H sl@0: sl@0: #ifdef SYMBIAN_GRAPHICS_EGL_SGIMAGELITE sl@0: #include sl@0: #else sl@0: #include sl@0: #endif //SYMBIAN_GRAPHICS_EGL_SGIMAGELITE sl@0: #include sl@0: sl@0: /* Common base class, TSgImageInfoTest contains constructors, */ sl@0: /* copy constructor and a comparison operaror */ sl@0: /* Constructors can be used to modify the default pixelformat and */ sl@0: /* pixmap size if desired */ sl@0: /* The concept is that the base class will initialise the bulk of */ sl@0: /* the TSgImageInfo member data and each derived class can modify */ sl@0: /* the iUsage variable to be specific to it's particular type */ sl@0: /* The base class can be instantiated in the rare situation that */ sl@0: /* the iUsage member var does not match that of any derived class */ sl@0: /* e.g iUsage = ESgUsageBitOpenVgImage | ESgUsageBitOpenVgSurface */ sl@0: sl@0: //Common base class sl@0: class TSgImageInfoTest : public TSgImageInfo sl@0: { sl@0: public: sl@0: IMPORT_C TSgImageInfoTest(); sl@0: IMPORT_C TSgImageInfoTest(TUidPixelFormat aPixelformat, TSize aSize = KPixmapSize); sl@0: IMPORT_C ~TSgImageInfoTest(); sl@0: void operator=(const TSgImageInfo& aInfo); sl@0: TBool operator==(const TSgImageInfo& aInfo); sl@0: }; sl@0: sl@0: /* OpenVgImage Child variant */ sl@0: class TSgImageInfoOpenVgImage : public TSgImageInfoTest sl@0: { sl@0: public: sl@0: IMPORT_C TSgImageInfoOpenVgImage(); sl@0: IMPORT_C TSgImageInfoOpenVgImage(TUidPixelFormat aPixelFormat, TSize aSize = KPixmapSize); sl@0: IMPORT_C ~TSgImageInfoOpenVgImage(); sl@0: }; sl@0: sl@0: /* OpenVgTarget Child variant */ sl@0: class TSgImageInfoOpenVgTarget : public TSgImageInfoTest sl@0: { sl@0: public: sl@0: IMPORT_C TSgImageInfoOpenVgTarget(); sl@0: IMPORT_C TSgImageInfoOpenVgTarget(TUidPixelFormat aPixelFormat, TSize aSize = KPixmapSize); sl@0: IMPORT_C ~TSgImageInfoOpenVgTarget(); sl@0: }; sl@0: sl@0: #endif // EGLTESTCOMMONSGIMAGEINFO_H