phonebookui/Speeddial/ControlInc/SpdiaGrid.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:     This class provides drawing a shadow.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef     SPDIAGRID_H
       
    24 #define     SPDIAGRID_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <AknGrid.h>
       
    28 #include <aknlists.h>
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /*
       
    34 *  This class provides drawing a shadow.
       
    35 *
       
    36 *  @since 
       
    37 */
       
    38 class CSpdiaControl;
       
    39 
       
    40 class CSpdiaGrid  : public CAknQdialStyleGrid
       
    41     {
       
    42     public:
       
    43         // 640 x 480 40 x 30 VGA(Video Graphics Array)    
       
    44         // 480 x 640 30 x 40 VGA turned
       
    45         // 352 x 288 44 x 36 CIF(Common Intermediate Format)
       
    46         // 288 x 352 36 x 44 CIF turned
       
    47         // enum order defined in CAknQdialStyleGrid 
       
    48         enum TGridType
       
    49             {
       
    50             EtnCIF90,
       
    51             EtnCIF,
       
    52             EtnVGA90,
       
    53             EtnVGA,
       
    54             EtnCOM,
       
    55             EText
       
    56             };
       
    57 
       
    58         /**
       
    59         * constructor.
       
    60         */
       
    61         static CSpdiaGrid* NewL(const CSpdiaControl& aControl);
       
    62 
       
    63         /**
       
    64         * constructor.
       
    65         */
       
    66         CSpdiaGrid(const CSpdiaControl& aControl);
       
    67 
       
    68         /**
       
    69         * C++ default constructor.
       
    70         */
       
    71         CSpdiaGrid();
       
    72 
       
    73         /**
       
    74         * Destructor.
       
    75         */
       
    76         virtual ~CSpdiaGrid();
       
    77 
       
    78     private: // Functions from base classes
       
    79         /**
       
    80         * From CoeControl,SizeChanged.
       
    81         */
       
    82         void SizeChanged();
       
    83 
       
    84         /**
       
    85         * Passes skin information when needed.
       
    86         **/
       
    87         TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
    88 
       
    89     private:
       
    90         void Draw(const TRect& aRect) const;
       
    91 		
       
    92 	private:
       
    93 		void SizeChangedL();	
       
    94 		
       
    95     private:
       
    96         CSpdiaControl* iControl;
       
    97     };
       
    98 
       
    99 #endif      // SPDIAGRID_H
       
   100