diff -r 000000000000 -r 8466d47a6819 emailuis/uicomponents/inc/fsalfwatermark.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/uicomponents/inc/fsalfwatermark.h Thu Dec 17 08:39:21 2009 +0200 @@ -0,0 +1,115 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Alf Watermark object + * +*/ + + + +#ifndef C_FSALFWATERMARK_H +#define C_FSALFWATERMARK_H +// SF +#include +#include +#include +// + +/** + * Class used for placing watermark. + * + * @lib fs_generic + */ + +NONSHARABLE_CLASS(CFsAlfWatermark) : public CBase + { + +public: + + /** + * Factory method. + * + * @param aParentControl Parent control for watermark layout. + * @param aParentLayout ParentLayout for watermarkLayout. + */ + static CFsAlfWatermark* NewL( CAlfControl& aParentControl, + CAlfLayout& aParentLayout ); + + /** + * C++ destructor. + */ + virtual ~CFsAlfWatermark(); + + /** + * Returns the position of the watermark. + * + * @return Reference to the object holding position of watermark. + */ + TAlfTimedPoint Pos(); + + /** + * Returns the size of the watermark. + * + * @return Reference to the object holding size of watermark. + */ + TAlfTimedPoint Size(); + + /** + * Returns opacity of the watermark. + * + * @return Reference to the object holding opacity of watermark. + */ + TAlfTimedValue& Opacity(); + + /** + * Sets the texture for watermark. + * + * @param aTexture Reference to the new watermark texture. + */ + // + void SetWatermarkTextureL( CAlfTexture& aTexture ); + // + +private: + + /** + * 2nd phase constructor. + * + * @param aParentControl Parent control for watermark layout. + * @param aParentLayout ParentLayout for watermarkLayout. + */ + void ConstructL( CAlfControl& aParentControl, CAlfLayout& aParentLayout ); + + /** + * C++ constructor. + */ + CFsAlfWatermark(); + +private: + + /** + * Pointer to the watermark layout. + * Own. + */ + CAlfDeckLayout* iWatermarkLayout; + + /** + * Pointer to the watermark texture. + * Not own. + */ + CAlfTexture* iWatermarkTexture; + + }; + + +#endif /*C_FSALFWATERMARK_H*/