os/graphics/graphicsdeviceinterface/directgdiinterface/inc/directgdidriverinternal.h
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/graphicsdeviceinterface/directgdiinterface/inc/directgdidriverinternal.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,125 @@
1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// This class represents the body part of CDirectGdiDriver that defines the HAI.
1.18 +//
1.19 +//
1.20 +
1.21 +
1.22 +#ifndef __DIRECTGDIDRIVERINTERNAL_H__
1.23 +#define __DIRECTGDIDRIVERINTERNAL_H__
1.24 +
1.25 +/**
1.26 +@file
1.27 +@publishedPartner
1.28 +@prototype
1.29 +*/
1.30 +
1.31 +#include <e32base.h>
1.32 +
1.33 +//forward declarations
1.34 +class RSgDrawable;
1.35 +class RSgImage;
1.36 +class MDirectGdiEngine;
1.37 +
1.38 +/**
1.39 +This class represents the body part of CDirectGdiDriver that defines the HAI.
1.40 +An adaptation must derive from this class and implement all the interfaces to
1.41 +provide the functionality required by the generic layer.
1.42 +
1.43 +@publishedPartner
1.44 +@prototype
1.45 +@deprecated
1.46 +*/
1.47 +class CDirectGdiDriverInternal : public CBase
1.48 + {
1.49 +public:
1.50 + IMPORT_C static TInt New(CDirectGdiDriverInternal*& aInternal, RLibrary aLibrary);
1.51 + inline RLibrary Library() const;
1.52 +
1.53 + /**
1.54 + @see CDirectGdiDriver::Flush()
1.55 + */
1.56 + virtual void Flush() = 0;
1.57 +
1.58 + /**
1.59 + @see CDirectGdiDriver::Finish()
1.60 + */
1.61 + virtual void Finish() = 0;
1.62 +
1.63 + /**
1.64 + @see CDirectGdiDriver::GetError()
1.65 + */
1.66 + virtual TInt GetError() = 0;
1.67 +
1.68 + /**
1.69 + @see CDirectGdiDriver::SetError()
1.70 + */
1.71 + virtual void SetError(TInt aErr) = 0;
1.72 +
1.73 + /**
1.74 + @see CDirectGdiDriver::CreateDrawableSource()
1.75 +
1.76 + @param aHandle Handle of the newly created drawable source.
1.77 + @param aRSgDrawable The RSgDrawable object to use when creating the drawable source.
1.78 + */
1.79 + virtual TInt CreateDrawableSource(TInt& aHandle, const RSgDrawable& aRSgDrawable) = 0;
1.80 +
1.81 + /**
1.82 + @see CDirectGdiDriver::CloseDrawableSource()
1.83 +
1.84 + @param aHandle A handle to a RDirectGdiDrawableSource object to be closed.
1.85 + */
1.86 + virtual void CloseDrawableSource(TInt& aHandle) = 0;
1.87 +
1.88 + /**
1.89 + @see CDirectGdiDriver::CreateImageTarget()
1.90 +
1.91 + @param aHandle Handle of the newly created image target.
1.92 + @param aRSgImage The RSgImage to use when creating the image target.
1.93 + */
1.94 + virtual TInt CreateImageTarget(TInt& aHandle, const RSgImage& aRSgImage) = 0;
1.95 +
1.96 + /**
1.97 + @see CDirectGdiDriver::CloseImageTarget()
1.98 +
1.99 + @param aHandle A handle to a RDirectGdiImageTarget object to be closed.
1.100 + */
1.101 + virtual void CloseImageTarget(TInt& aHandle) = 0;
1.102 +
1.103 + /**
1.104 + @see CDirectGdiDriver::CreateEngine()
1.105 + */
1.106 + virtual TInt CreateEngine(MDirectGdiEngine*& aEngine) = 0;
1.107 +
1.108 + /**
1.109 + @see CDirectGdiDriver::DestroyEngine()
1.110 + */
1.111 + virtual void DestroyEngine(MDirectGdiEngine* aEngine) = 0;
1.112 +
1.113 + /**
1.114 + @see CDirectGdiDriver::GetInterface()
1.115 + */
1.116 + virtual TInt GetInterface(TUid aInterfaceId, TAny*& aInterface) = 0;
1.117 +
1.118 +protected:
1.119 + inline CDirectGdiDriverInternal(RLibrary aLibrary);
1.120 +private:
1.121 + /** Handle to the DirectGDI adapter DLL owned by this thread.*/
1.122 + const RLibrary iAdapterLibrary;
1.123 + };
1.124 +
1.125 +#include <graphics/directgdidriverinternal.inl>
1.126 +
1.127 +
1.128 +#endif //__DIRECTGDIDRIVERINTERNAL_H__