satui/satapp/SATUIInc/CSatUiMessageQueryIcon.h
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/satui/satapp/SATUIInc/CSatUiMessageQueryIcon.h	Wed Sep 01 12:15:03 2010 +0100
@@ -0,0 +1,82 @@
+/*
+* Copyright (c) 2002-2006 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: 
+*     CPicture derived class. For DisplayText to show icon and text
+*     
+*
+*/
+
+
+#ifndef CSATUIMESSAGEQUERYICON_H
+#define CSATUIMESSAGEQUERYICON_H
+
+//  INCLUDES
+#include <gdi.h>
+
+// FORWARD DECLARATIONS
+class TSize;
+class CFbsBitmap;
+
+// CLASS DECLARATION
+
+class CSatUiMessageQueryIcon :public CPicture
+    {
+
+    public:  // Constructors and destructor
+        
+        /**
+        * C++ default constructor.
+		* @param aSize Size of the picture in twips.
+		* @param aBitmap Bitmap
+        */
+        CSatUiMessageQueryIcon( TSize aSize, CFbsBitmap& aBitmap );
+
+        /**
+        * Destructor.
+        */
+	    virtual ~CSatUiMessageQueryIcon();
+
+	public: // From CPicture
+
+		/**
+        * Draw the picture.
+        * @param aGc Graphic context.
+        * @param aTopLeft Co-ordinates of left corner.
+        * @param aClipRect Clipping rectangle.
+        * @param aMap Device map.
+        */
+		virtual void Draw( CGraphicsContext& aGc,
+						   const TPoint& aTopLeft,
+						   const TRect& aClipRect,
+						   MGraphicsDeviceMap* aMap ) const;
+		/**
+        * From CPicture.
+        * A derived class must implement this function.
+        */
+		virtual void ExternalizeL( RWriteStream& aStream ) const;
+		
+        /**
+        * Get the picture's size in twips.
+		* @param aSize Size.
+        */
+		virtual void GetOriginalSizeInTwips( TSize& aSize ) const;
+
+	protected:	// Data
+
+		TSize iSizeInTwips;
+		CFbsBitmap* iBitmap;
+    };
+
+#endif
+