epoc32/include/eikpicturefactory.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/eikpicturefactory.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/eikpicturefactory.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,65 @@
     1.4 -eikpicturefactory.h
     1.5 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +
    1.21 +#ifndef __EIKPICTUREFACTORY_H__
    1.22 +#define __EIKPICTUREFACTORY_H__
    1.23 +
    1.24 +#include <e32std.h>		// class TUid
    1.25 +#include <gdi.h>		// class TPictureHeader;
    1.26 +
    1.27 +
    1.28 +/** Provides the support for embedding something other than a CApaDoor. 
    1.29 +
    1.30 +@publishedAll 
    1.31 +@released */
    1.32 +class MEikPictureFactory
    1.33 +	{
    1.34 +public:
    1.35 +	IMPORT_C virtual TUid Id() const;
    1.36 +	/** Tests if the factory supports the specified picture type.
    1.37 +	
    1.38 +	@param aPictureType The picture type.
    1.39 +	@return ETrue if the factory supports the specified picture type, otherwise 
    1.40 +	EFalse. */
    1.41 +	virtual TBool SupportsPictureType(TUid aPictureType) const=0;
    1.42 +	/** Gets a pointer to the picture factory.
    1.43 +	
    1.44 +	Use of this function does not transfer ownership of the picture factory to 
    1.45 +	the caller.
    1.46 +	
    1.47 +	@param aPictureType The picture type.
    1.48 +	@return Pointer to the picture factory. */
    1.49 +	virtual const MPictureFactory* PictureFactory(TUid aPictureType) const=0;
    1.50 +	/** Inserts a new picture object. 
    1.51 +	
    1.52 +	Ownership of aData transfers immediately the function is called.
    1.53 +	
    1.54 +	@param aPictureType The picture type.
    1.55 +	@param aData The base address of the data.
    1.56 +	@return The picture header. */
    1.57 +	virtual TPictureHeader InsertL(TUid aPictureType, CBase* aData)=0;
    1.58 +	/** Enables editing/viewing of an object
    1.59 +	
    1.60 +	@param aPictureHeader The picture header.
    1.61 +	@param aReadOnly ETrue if object is read only, otherwise EFalse. */
    1.62 +	virtual void EditL(const TPictureHeader& aPictureHeader, TBool aReadOnly)=0;
    1.63 +private:
    1.64 +	IMPORT_C virtual void MEikPictureFactory_Reserved_1();
    1.65 +	IMPORT_C virtual void MEikPictureFactory_Reserved_2();
    1.66 +	};
    1.67 +
    1.68 +
    1.69 +#endif 	// __EIKPICTUREFACTORY_H__