phonebookui/Speeddial/VPbkControlInc/SpdiaGridVPbk.h
changeset 0 e686773b3f54
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/Speeddial/VPbkControlInc/SpdiaGridVPbk.h	Tue Feb 02 10:12:17 2010 +0200
@@ -0,0 +1,100 @@
+/*
+* Copyright (c) 2002 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:     This class provides drawing a shadow.
+*
+*/
+
+
+
+
+
+
+#ifndef     SPDIAGRIDVPBK_H
+#define     SPDIAGRIDVPBK_H
+
+//  INCLUDES
+#include <AknGrid.h>
+#include <aknlists.h>
+
+//  FORWARD DECLARATIONS
+
+// CLASS DECLARATION
+/*
+*  This class provides drawing a shadow.
+*
+*  @since 
+*/
+class CSpeedDialPrivate;
+
+NONSHARABLE_CLASS(CSpdiaGridVPbk ) : public CAknQdialStyleGrid
+    {
+    public:
+        // 640 x 480 40 x 30 VGA(Video Graphics Array)    
+        // 480 x 640 30 x 40 VGA turned
+        // 352 x 288 44 x 36 CIF(Common Intermediate Format)
+        // 288 x 352 36 x 44 CIF turned
+        // enum order defined in CAknQdialStyleGrid 
+        enum TGridType
+            {
+            EtnCIF90,
+            EtnCIF,
+            EtnVGA90,
+            EtnVGA,
+            EtnCOM,
+            EText
+            };
+
+        /**
+        * constructor.
+        */
+        static CSpdiaGridVPbk* NewL(const CSpeedDialPrivate& aControl);
+
+        /**
+        * constructor.
+        */
+        CSpdiaGridVPbk(const CSpeedDialPrivate& aControl);
+
+        /**
+        * C++ default constructor.
+        */
+        CSpdiaGridVPbk();
+
+        /**
+        * Destructor.
+        */
+        virtual ~CSpdiaGridVPbk();
+
+    private: // Functions from base classes
+        /**
+        * From CoeControl,SizeChanged.
+        */
+        void SizeChanged();
+
+        /**
+        * Passes skin information when needed.
+        **/
+        TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
+
+    private:
+        void Draw(const TRect& aRect) const;
+
+	private:
+		void SizeChangedL();
+		
+    private:
+        CSpeedDialPrivate* iControl;
+    };
+
+#endif      // SPDIAGRIDVPBK_H
+