phoneapp/phoneuivoipextension/inc/cphonetransferdialercontroller.h
branchRCL_3
changeset 61 41a7f70b3818
parent 9 8871b09be73b
child 62 5266b1f337bd
equal deleted inserted replaced
58:40a3f856b14d 61:41a7f70b3818
     1 /*
     1 /*
     2 * Copyright (c) 2008, 2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    21 #ifndef CPHONETRANSFERDIALERCONTROLLER_H_
    21 #ifndef CPHONETRANSFERDIALERCONTROLLER_H_
    22 #define CPHONETRANSFERDIALERCONTROLLER_H_
    22 #define CPHONETRANSFERDIALERCONTROLLER_H_
    23 
    23 
    24 // INCLUDES
    24 // INCLUDES
    25 #include <aknbutton.h>
    25 #include <aknbutton.h>
    26 #include "cphonedialercontroller.h"
    26 #include "mphonedialercontroller.h"
    27 
    27 
    28 // FORWARD DECLARATIONS
    28 // FORWARD DECLARATIONS
    29 class CAknToolbar; 
    29 class CAknToolbar; 
    30 
    30 
    31 /**
    31 /**
    32 *  VoIP unattended transfer dialer customization
    32 *  VoIP unattended transfer dialer customization
    33 */
    33 */
    34 NONSHARABLE_CLASS( CPhoneTransferDialerController ): public CPhoneDialerController
    34 NONSHARABLE_CLASS( CPhoneTransferDialerController ): public CBase,
       
    35                                        public MPhoneDialerController
    35     {
    36     {
    36     public:      
    37     public:      
    37 
    38 
    38         static CPhoneTransferDialerController* NewL();
    39         static CPhoneTransferDialerController* NewL();
    39         
    40         
    42         */
    43         */
    43         virtual ~CPhoneTransferDialerController();
    44         virtual ~CPhoneTransferDialerController();
    44 
    45 
    45     public: // From MDialerController
    46     public: // From MDialerController
    46     
    47     
       
    48         
       
    49         /**
       
    50         * Initializes the controller. 
       
    51         * @param    aToolbar    CAknToolbar instance.
       
    52         * @since    S60 v5.1
       
    53         */ 
       
    54         void InitializeL( CAknToolbar& aToolbar );
       
    55         
    47         /**
    56         /**
    48         * Returns Cba resource id
    57         * Returns Cba resource id
    49         * @return Resource Id of the softkeys
    58         * @return Resource Id of the softkeys
    50         * @since S60 v5.1
    59         * @since S60 v5.1
    51         */
    60         */
    64         * @since S60 v5.1
    73         * @since S60 v5.1
    65         */
    74         */
    66         const TDesC& NumberEntryPromptTextL();
    75         const TDesC& NumberEntryPromptTextL();
    67         
    76         
    68         /**
    77         /**
    69          * @see MPhoneDialerController
    78         * Handles the number entry empty event
    70          */
    79         * @param aEmpty ETrue if numberentry is empty
    71         TInt GetButtonData( TButtonIndex aIndex, RPointerArray<CButtonData>& aData ) const;
    80         * @since S60 v5.1
       
    81         */
       
    82         void HandleNumberEntryIsEmpty( TBool aEmpty );
    72         
    83         
    73         /**
    84         /**
    74          * @see MPhoneDialerController
    85         * Sets visibility of buttons created by the implementation
    75          */
    86         * @param aShow ETrue if numberentry is empty
    76         TInt ButtonState( TButtonIndex aIndex ) const;
    87         * @since S60 v5.1
    77         
    88         */
    78         /**
    89         void ShowButtons( TBool aShow );
    79          * @see MPhoneDialerController
       
    80          */
       
    81         TBool ButtonDimmed( TButtonIndex aIndex ) const;
       
    82         
       
    83         /**
       
    84          * @see MPhoneDialerController
       
    85          */
       
    86         TBool EasyDialingAllowed() const;
       
    87         
    90         
    88     private:
    91     private:
    89     
    92     
       
    93         /**
       
    94          * Creates instance of CAKnButton
       
    95          * @param aNormalIconId Button normal icon id
       
    96          * @param aNormalMaskId Mask id
       
    97          * @param aTooltipText Reference to tooltip text
       
    98          * @param aSkinIconId Skin icon id
       
    99          * @return Pointer to created button instance
       
   100          */
       
   101         CAknButton* CreateButtonLC( TInt aNormalIconId,
       
   102                                     TInt aNormalMaskId,
       
   103                                     const TDesC& aTooltipText, 
       
   104                                     const TAknsItemID& aSkinIconId ) const; 
       
   105         
    90         /**
   106         /**
    91          * Returns tool tip for specific command
   107          * Returns tool tip for specific command
    92          * @param aCommandId Command id which the tooltip text 
   108          * @param aCommandId Command id which the tooltip text 
    93          * is needed
   109          * is needed
    94          * @return Pointer to descriptor containing tooltip text
   110          * @return Pointer to descriptor containing tooltip text
    95          */
   111          */
    96         HBufC* GetTooltipTextL( TInt aCommandId ) const; 
   112         HBufC* GetTooltipTextL( TInt aCommandId ) const; 
    97         
   113         
    98         TAknsItemID SkinId( TInt aIconIndex ) const;
   114         TAknsItemID SkinId( TInt aIconIndex ) const;
    99 
   115 
   100         CButtonData* CreateButtonDataL(
       
   101                 TInt aCommandId,
       
   102                 TInt aNormalIconId,
       
   103                 TInt aNormalMaskId ) const;
       
   104     protected:
   116     protected:
   105 
   117 
   106         /**
   118         /**
   107         * By default EPOC constructor is private.
   119         * By default EPOC constructor is private.
   108         */
   120         */
   109         CPhoneTransferDialerController();
   121         CPhoneTransferDialerController();
   110             
   122             
   111     private: // Data
   123     private: // Data
   112     
   124     
       
   125         // Pointer to CAknToolbar, Not own
       
   126         CAknToolbar* iToolbar;
       
   127         
       
   128         // ETrue if number entry input field is empty
       
   129         TBool iNumberEntryIsEmpty;
       
   130         
   113         // Number entry prompt text ("Address:")
   131         // Number entry prompt text ("Address:")
   114         HBufC* iNumberEntryPromptText;
   132         HBufC* iNumberEntryPromptText;
       
   133         
       
   134         // ETrue if initialized 
       
   135         TBool iIsInitialized;
   115       
   136       
   116     };
   137     };
   117 
   138 
   118 #endif /*CPHONETRANSFERDIALERCONTROLLER_H_*/
   139 #endif /*CPHONETRANSFERDIALERCONTROLLER_H_*/