phoneapp/phoneuiview/inc/mphonedialercontroller.h
changeset 0 5f000ab63145
child 9 8871b09be73b
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2007 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: Definition of MPhoneDialerController class.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MPHONEDIALERCONTROLLER_H_
       
    19 #define MPHONEDIALERCONTROLLER_H_
       
    20 
       
    21 // Forward declarations
       
    22 class CAknToolbar;
       
    23 
       
    24 /**
       
    25  *  Abstract custom dialer interface.
       
    26  *
       
    27  *
       
    28  *  @lib PhoneUiView.lib
       
    29  *  @since S60 v5.0
       
    30  */
       
    31 class MPhoneDialerController
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37     * Initializes the controller. 
       
    38     * @param    aToolbar    CAknToolbar instance.
       
    39     * @since    S60 v5.1
       
    40     */
       
    41     virtual void InitializeL( CAknToolbar& aToolbar ) = 0;
       
    42     
       
    43     /**
       
    44     * Returns Cba resource id
       
    45     * @return Resource Id of the softkeys
       
    46     * @since S60 v5.1
       
    47     */
       
    48     virtual TInt CbaResourceId() const = 0;
       
    49     
       
    50     /**
       
    51     * Returns Menu resource id
       
    52     * @return Id of the menu resource
       
    53     * @since S60 v5.1
       
    54     */
       
    55     virtual TInt MenuResourceId() const = 0;
       
    56     
       
    57     /**
       
    58     * Returns number entry prompt text
       
    59     * @return Reference to text to be shown on number entry
       
    60     * @since S60 v5.1
       
    61     */
       
    62     virtual const TDesC& NumberEntryPromptTextL() = 0;
       
    63     
       
    64     /**
       
    65     * Handles the number entry empty event
       
    66     * @param aEmpty ETrue if numberentry is empty
       
    67     * @since S60 v5.1
       
    68     */
       
    69     virtual void HandleNumberEntryIsEmpty( TBool aEmpty ) = 0;
       
    70 
       
    71     /**
       
    72     * Sets visibility of buttons created by the implementation
       
    73     * @param aShow ETrue if numberentry is empty
       
    74     * @since S60 v5.1
       
    75     */
       
    76     virtual void ShowButtons( TBool aShow ) = 0;
       
    77     };
       
    78 
       
    79 #endif /*MDIALERCONTROLLER_H_*/
       
    80 
       
    81 
       
    82 
       
    83