phonebookui/Speeddial/VPbkControlInc/SpdiaGridDlgVPbk.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:     The main UI container element of the Speeddial Control 
       
    15 *                Utility that contains the 3x3 grid of speeddial entries.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef     SPDIAGRIDDLGVPBK_H
       
    25 #define     SPDIAGRIDDLGVPBK_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <AknGrid.h>
       
    29 #include <AknDialog.h>   // CEikDialog
       
    30 
       
    31 
       
    32 //  FORWARD DECLARATIONS
       
    33 
       
    34 // CLASS DECLARATION
       
    35 class CSpeedDialPrivate;
       
    36 class CSpdiaGridVPbk;
       
    37 
       
    38 
       
    39 /**
       
    40 *  The main UI container element of the Speeddial Control Utility 
       
    41 *  that contains the 3x3 grid of speeddial entries.
       
    42 *
       
    43 *  @since 
       
    44 */
       
    45 NONSHARABLE_CLASS( CSpdiaGridDlgVPbk ) : public CAknDialog
       
    46                      // public MPbkContactDbObserver
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49         /**
       
    50         * Creates a selection grid dialog.
       
    51         *
       
    52         * @param aDial   select dial number.
       
    53         */
       
    54         static CSpdiaGridDlgVPbk* NewL(TInt& aDial, const CSpeedDialPrivate& aControl);
       
    55 
       
    56         /**
       
    57         * Construction.
       
    58         */ 
       
    59         CSpdiaGridDlgVPbk(TInt& aDial, const CSpeedDialPrivate& aControl);
       
    60 
       
    61         /**
       
    62         * Construction.
       
    63         */ 
       
    64         CSpdiaGridDlgVPbk();
       
    65 
       
    66         /**
       
    67         * Destructor.
       
    68         */ 
       
    69         virtual ~CSpdiaGridDlgVPbk();
       
    70         
       
    71         /**
       
    72         * From CAknDialog takes care of skin changes and layout.
       
    73         * @param aType skin event identifier.
       
    74         */
       
    75         void HandleResourceChange(TInt aType);
       
    76         
       
    77         /**
       
    78         * from CAknDialog
       
    79         */ 
       
    80         void HandleDialogPageEventL (TInt);
       
    81 
       
    82 
       
    83     public: // data structures
       
    84 
       
    85     public:  // constructors
       
    86 
       
    87     public:  // constructors
       
    88         void FocusChanged(TDrawNow aDrawNow);
       
    89 
       
    90     protected:
       
    91         /**
       
    92         * from CAknDialog
       
    93         */ 
       
    94         void PreLayoutDynInitL();
       
    95 
       
    96         /**
       
    97         * from CAknDialog
       
    98         */
       
    99         void PostLayoutDynInitL();
       
   100 
       
   101         /**
       
   102         * from CAknDialog
       
   103         */ 
       
   104         SEikControlInfo CreateCustomControlL(TInt aControlType);
       
   105 
       
   106         /**
       
   107         * from CAknDialog
       
   108         */ 
       
   109         TBool OkToExitL(TInt aButtonId);
       
   110 
       
   111     protected:
       
   112         /**
       
   113         * from CCoeControl
       
   114         */ 
       
   115         TKeyResponse OfferKeyEventL(
       
   116                     const TKeyEvent& aKeyEvent,
       
   117                     TEventCode aType);
       
   118 
       
   119     private: // Functions from base classes
       
   120         /**
       
   121         * From MContactDbObserver, Handles an event of type aEventType.
       
   122         */
       
   123         //void HandleDatabaseEventL(TContactDbObserverEvent aEvent);
       
   124 
       
   125     private:  // functions
       
   126         /**
       
   127         * 
       
   128         */ 
       
   129         void LoadCbaL();
       
   130 
       
   131     private:  // data
       
   132         CSpeedDialPrivate* iControl;
       
   133 
       
   134         TInt&       iDial;
       
   135         
       
   136         CSpdiaGridVPbk* iGrid;
       
   137         TSize       iCellSize;
       
   138         TInt        iCbaID;
       
   139         TBool       iNeedUpdate;
       
   140         TInt        iPrevIndex;
       
   141    };
       
   142 
       
   143 #endif  // SPDIAGRIDDLG_H
       
   144             
       
   145 
       
   146 // End of File
       
   147