phoneuis/dialer/inc/cdialerkeypadcontainer.h
branchRCL_3
changeset 3 8871b09be73b
parent 0 5f000ab63145
child 4 24062c24fe38
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
    24 #include    <coecntrl.h>
    24 #include    <coecntrl.h>
    25 #include    <coecobs.h>    // MCoeControlObserver
    25 #include    <coecobs.h>    // MCoeControlObserver
    26 #include    <coemain.h>
    26 #include    <coemain.h>
    27 
    27 
    28 #include    "cdialercontainerbase.h"
    28 #include    "cdialercontainerbase.h"
       
    29 #include    "cdialerkeypadlabelmanager.h"
    29 
    30 
    30 // CONSTANTS
    31 // CONSTANTS
    31 
    32 
    32 // FORWARD DECLARATIONS
    33 // FORWARD DECLARATIONS
    33 class CDialerKeyPadButton;
    34 class CDialerKeyPadButton;
       
    35 
    34 
    36 
    35 // CLASS DECLARATION
    37 // CLASS DECLARATION
    36  
    38  
    37 /**
    39 /**
    38 *  CDialerKeyPadContainer container class
    40 *  CDialerKeyPadContainer container class
    39 *
    41 *
    40 *  @lib dialer.lib
    42 *  @lib dialer.lib
    41 *  @since S60 v5.0
    43 *  @since S60 v5.0
    42 */
    44 */
    43 NONSHARABLE_CLASS(CDialerKeyPadContainer) : public CDialerContainerBase, 
    45 NONSHARABLE_CLASS(CDialerKeyPadContainer) : public CDialerContainerBase, 
    44                                             public MCoeForegroundObserver
    46                                             public MCoeForegroundObserver,
       
    47                                             public MDialerKeyPadLabelManagerCallback
    45     {
    48     {
    46     public:  // Constructors and destructor
    49     public:  // Constructors and destructor
    47         
    50         
    48         /**
    51         /**
    49         * Two phase constructor
    52         * Two phase constructor
    67         * Enables or disables tactile feedback audio for keypad buttons.
    70         * Enables or disables tactile feedback audio for keypad buttons.
    68         */
    71         */
    69         
    72         
    70         void EnableTactileFeedback( const TBool aEnable );
    73         void EnableTactileFeedback( const TBool aEnable );
    71         
    74         
    72     private:  // Functions from base classes
    75         // moved from private to public
    73         
       
    74         /**
       
    75         * From CCoeControl
       
    76         */
       
    77         TInt CountComponentControls() const;
       
    78         
       
    79         /**
       
    80         * From CCoeControl
       
    81         */
       
    82         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    83         
       
    84         /**
       
    85          * From CoeControl.
       
    86          */
       
    87         void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    88         
       
    89         /**
       
    90         * @see CCoeControl
       
    91         */
       
    92         void HandleResourceChange( TInt aType );   
       
    93         
       
    94         /**
    76         /**
    95         * @see CCoeControl
    77         * @see CCoeControl
    96         */        
    78         */        
    97         void MakeVisible( TBool aVisible );     
    79         void MakeVisible( TBool aVisible );
       
    80         
       
    81         /**
       
    82          * Sets the operation mode. New mode takes effect once the
       
    83          * size of the component is reset.
       
    84          * @param   aOperatingMode  New operation mode.
       
    85          */
       
    86         void SetOperationMode( TDialerOperationMode aOperatingMode );
       
    87         
       
    88     private:  // Functions from base classes
       
    89         
       
    90         /**
       
    91         * From CCoeControl
       
    92         */
       
    93         TInt CountComponentControls() const;
       
    94         
       
    95         /**
       
    96         * From CCoeControl
       
    97         */
       
    98         CCoeControl* ComponentControl( TInt aIndex ) const;
       
    99         
       
   100         /**
       
   101          * From CoeControl.
       
   102          */
       
   103         void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
   104         
       
   105         /**
       
   106         * @see CCoeControl
       
   107         */
       
   108         void HandleResourceChange( TInt aType );   
    98         
   109         
    99         /**
   110         /**
   100         * @see MCoeControlObserver
   111         * @see MCoeControlObserver
   101         */        
   112         */        
   102         void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType );      
   113         void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType );      
   109         /**
   120         /**
   110         * @see MCoeForegroundObserver
   121         * @see MCoeForegroundObserver
   111         */         
   122         */         
   112         void HandleLosingForeground();      
   123         void HandleLosingForeground();      
   113         
   124         
       
   125         /**
       
   126          * @see MDialerKeyPadLabelManagerCallback
       
   127          */
       
   128         void KeyLabelsChanged();
   114         
   129         
   115     private: // From CDialerContainerBase
   130     private: // From CDialerContainerBase
   116     
   131     
   117         /**
   132         /**
   118         * @see CDialerContainerBase
   133         * @see CDialerContainerBase
   138         * Set layout in Phone Dialer mode
   153         * Set layout in Phone Dialer mode
   139         */
   154         */
   140         void SetPhoneLayout();
   155         void SetPhoneLayout();
   141 
   156 
   142         /**
   157         /**
       
   158          * Set layout in Easy Dialing mode
       
   159          */
       
   160         void SetEasyDialingLayout();
       
   161         
       
   162         /**
   143         * Set layout in Video DTMF mode
   163         * Set layout in Video DTMF mode
   144         */
   164         */
   145         void SetVideoLayout();
   165         void SetVideoLayout();
   146         
   166         
   147         /**
   167         /**
   148         * Create keypad buttons.
   168         * Create keypad buttons.
   149         */
   169         */
   150         void CreateButtonsL();
   170         void CreateButtonsL();
   151         
       
   152         
   171         
   153     private:    // Data
   172     private:    // Data
   154     
   173     
   155         TDialerOperationMode iOperatingMode;
   174         TDialerOperationMode iOperatingMode;
   156         
   175         
   172         
   191         
   173         /**
   192         /**
   174          * Stores last pointer event. 
   193          * Stores last pointer event. 
   175          */        
   194          */        
   176         TPointerEvent iPointerEvent;
   195         TPointerEvent iPointerEvent;
       
   196         
       
   197         /**
       
   198          * Helper to manage keypad button labels
       
   199          */
       
   200         CDialerKeyPadLabelManager* iKeyLabelManager;
   177     };
   201     };
   178 
   202 
   179 #endif      // CDIALERKEYPADCONTAINER_H
   203 #endif      // CDIALERKEYPADCONTAINER_H
   180 
   204 
   181 // End of File
   205 // End of File