1.1 --- a/epoc32/include/icl/imageconstruct.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/icl/imageconstruct.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,137 @@
1.4 -imageconstruct.h
1.5 +
1.6 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
1.7 +// All rights reserved.
1.8 +// This component and the accompanying materials are made available
1.9 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.10 +// which accompanies this distribution, and is available
1.11 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.12 +//
1.13 +// Initial Contributors:
1.14 +// Nokia Corporation - initial contribution.
1.15 +//
1.16 +// Contributors:
1.17 +//
1.18 +// Description:
1.19 +// ImageConstruct.h - classes used during construction of decoders/encoders
1.20 +//
1.21 +//
1.22 +
1.23 +#ifndef __ImageConstruct_h
1.24 +#define __ImageConstruct_h
1.25 +
1.26 +#include <e32base.h>
1.27 +
1.28 +// forward declarations
1.29 +class CImageDecoder;
1.30 +class CImageDecoderPlugin;
1.31 +class CImageEncoder;
1.32 +class CImageEncoderPlugin;
1.33 +class RCImageDecodeConstructTest;
1.34 +class RCImageEncodeConstructTest;
1.35 +
1.36 +/**
1.37 +@publishedAll
1.38 +@released
1.39 +
1.40 +Provides functions related to constructing decoders.
1.41 +
1.42 +Objects of this class are loaded by ECOM, and it is this class which
1.43 +is responsible for instantiating the decoder plugins. Plugin writers
1.44 +must derive their own plugin specific variants. The derived class
1.45 +is responsible for defining its own factory function to create instances
1.46 +of itself.
1.47 +*/
1.48 +
1.49 +class CImageDecodeConstruct : public CBase
1.50 + {
1.51 + friend class CImageDecoder;
1.52 +public:
1.53 + IMPORT_C ~CImageDecodeConstruct();
1.54 +
1.55 + IMPORT_C TUid ImplementationUid() const;
1.56 + // create new CImageDecoder - default creates basic CImageDecoder
1.57 + IMPORT_C virtual CImageDecoder* NewDecoderL() const;
1.58 +
1.59 + /**
1.60 + Creates a new concrete CImageDecoderPlugin object.
1.61 +
1.62 + This is a pure virtual function that each derived class must implement.
1.63 +
1.64 + @return A pointer to a fully constructed CImageDecoderPlugin.
1.65 + */
1.66 + virtual CImageDecoderPlugin* NewPluginL() const = 0;
1.67 +
1.68 + // request threaded decode - default false
1.69 + IMPORT_C virtual TBool RequestThread() const;
1.70 +protected:
1.71 + IMPORT_C CImageDecodeConstruct();
1.72 + IMPORT_C void ConstructL();
1.73 +
1.74 +private:
1.75 + IMPORT_C virtual void ReservedVirtual1();
1.76 + IMPORT_C virtual void ReservedVirtual2();
1.77 + IMPORT_C virtual void ReservedVirtual3();
1.78 + IMPORT_C virtual void ReservedVirtual4();
1.79 +private:
1.80 + /**
1.81 + This member is internal and not intended for use.
1.82 + */
1.83 + TUid iDtorIDKey;
1.84 +
1.85 + /**
1.86 + This member is internal and not intended for use.
1.87 + */
1.88 + TAny* iReserved;
1.89 +
1.90 +friend class RCImageDecodeConstructTest;
1.91 + };
1.92 +
1.93 +/**
1.94 +@publishedAll
1.95 +@released
1.96 +
1.97 +Provides functions related to constructing encoders.
1.98 +
1.99 +Objects of this class are loaded by ECOM, and it is this class which
1.100 +is responsible for instantiating the encoder plugins. Plugin writers
1.101 +must derive their own plugin specific variants. The derived class
1.102 +is responsible for defining its own factory function to create instances
1.103 +of itself.
1.104 +*/
1.105 +class CImageEncodeConstruct : public CBase
1.106 + {
1.107 + friend class CImageEncoder;
1.108 +public:
1.109 + IMPORT_C ~CImageEncodeConstruct();
1.110 +
1.111 + IMPORT_C TUid ImplementationUid() const;
1.112 + // create new CImageEncoder - default creates basic CImageEncoder
1.113 + IMPORT_C virtual CImageEncoder* NewEncoderL() const;
1.114 +
1.115 + /**
1.116 + Creates new concrete CImageEncoderPlugin object.
1.117 +
1.118 + This is a virtual function that each derived class must implement.
1.119 +
1.120 + @return A pointer to fully constructed CImageEncoderPlugin.
1.121 + */
1.122 + virtual CImageEncoderPlugin* NewPluginL() const = 0;
1.123 +
1.124 + // request threaded encode - default false
1.125 + IMPORT_C virtual TBool RequestThread() const;
1.126 +protected:
1.127 + IMPORT_C CImageEncodeConstruct();
1.128 + IMPORT_C void ConstructL();
1.129 +
1.130 +private:
1.131 + IMPORT_C virtual void ReservedVirtual1();
1.132 + IMPORT_C virtual void ReservedVirtual2();
1.133 + IMPORT_C virtual void ReservedVirtual3();
1.134 + IMPORT_C virtual void ReservedVirtual4();
1.135 +private:
1.136 + TUid iDtorIDKey;
1.137 + TAny* iReserved;
1.138 +friend class RCImageEncodeConstructTest;
1.139 + };
1.140 +
1.141 +#endif //__ImageConstruct_h