williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: williamr@2: #ifndef __EIKPICTUREFACTORY_H__ williamr@2: #define __EIKPICTUREFACTORY_H__ williamr@2: williamr@2: #include // class TUid williamr@2: #include // class TPictureHeader; williamr@2: williamr@2: williamr@2: /** Provides the support for embedding something other than a CApaDoor. williamr@2: williamr@2: @publishedAll williamr@2: @released */ williamr@2: class MEikPictureFactory williamr@2: { williamr@2: public: williamr@2: IMPORT_C virtual TUid Id() const; williamr@2: /** Tests if the factory supports the specified picture type. williamr@2: williamr@2: @param aPictureType The picture type. williamr@2: @return ETrue if the factory supports the specified picture type, otherwise williamr@2: EFalse. */ williamr@2: virtual TBool SupportsPictureType(TUid aPictureType) const=0; williamr@2: /** Gets a pointer to the picture factory. williamr@2: williamr@2: Use of this function does not transfer ownership of the picture factory to williamr@2: the caller. williamr@2: williamr@2: @param aPictureType The picture type. williamr@2: @return Pointer to the picture factory. */ williamr@2: virtual const MPictureFactory* PictureFactory(TUid aPictureType) const=0; williamr@2: /** Inserts a new picture object. williamr@2: williamr@2: Ownership of aData transfers immediately the function is called. williamr@2: williamr@2: @param aPictureType The picture type. williamr@2: @param aData The base address of the data. williamr@2: @return The picture header. */ williamr@2: virtual TPictureHeader InsertL(TUid aPictureType, CBase* aData)=0; williamr@2: /** Enables editing/viewing of an object williamr@2: williamr@2: @param aPictureHeader The picture header. williamr@2: @param aReadOnly ETrue if object is read only, otherwise EFalse. */ williamr@2: virtual void EditL(const TPictureHeader& aPictureHeader, TBool aReadOnly)=0; williamr@2: private: williamr@2: IMPORT_C virtual void MEikPictureFactory_Reserved_1(); williamr@2: IMPORT_C virtual void MEikPictureFactory_Reserved_2(); williamr@2: }; williamr@2: williamr@2: williamr@2: #endif // __EIKPICTUREFACTORY_H__