phoneapp/phoneuiview/inc/cphonedtmfdialercontroller.h
branchRCL_3
changeset 3 8871b09be73b
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
       
     1 /*
       
     2 * Copyright (c) 2009 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: Controller for DTMF mode of Dialer
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPHONEDTMFDIALERCONTROLLER_H
       
    19 #define CPHONEDTMFDIALERCONTROLLER_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32std.h>
       
    23 #include <e32base.h>
       
    24 #include "cphonedialercontroller.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29  *  CPhoneDtmfDialerController
       
    30  *  
       
    31  *  Provides data for the DTMF mode of the dialer.
       
    32  */
       
    33 NONSHARABLE_CLASS( CPhoneDtmfDialerController ) : public CPhoneDialerController
       
    34     {
       
    35 public: // Constructors and destructor
       
    36 
       
    37     /**
       
    38      * Destructor.
       
    39      */
       
    40     ~CPhoneDtmfDialerController();
       
    41 
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      */
       
    45     static CPhoneDtmfDialerController* NewL( 
       
    46             CPhoneBubbleWrapper* aBubbleWrapper,
       
    47             CCoeEnv& aCoeEnv );
       
    48 
       
    49     /**
       
    50      * Two-phased constructor.
       
    51      */
       
    52     static CPhoneDtmfDialerController* NewLC( 
       
    53             CPhoneBubbleWrapper* aBubbleWrapper,
       
    54             CCoeEnv& aCoeEnv );
       
    55 
       
    56 private:
       
    57 
       
    58     /**
       
    59      * Constructor for performing 1st stage construction
       
    60      */
       
    61     CPhoneDtmfDialerController( 
       
    62             CPhoneBubbleWrapper* aBubbleWrapper,
       
    63             CCoeEnv& aCoeEnv );
       
    64 
       
    65     /**
       
    66      * Symbian default constructor for performing 2nd stage construction
       
    67      */
       
    68     void ConstructL();
       
    69 
       
    70 public: // from CPhoneDialerController
       
    71     
       
    72     /**
       
    73      * @see MPhoneDialerController
       
    74      */
       
    75     const TDesC& NumberEntryPromptTextL();
       
    76     
       
    77     /**
       
    78      * @see MPhoneDialerController
       
    79      */
       
    80     TInt GetButtonData( TButtonIndex aIndex, RPointerArray<CButtonData>& aData ) const;
       
    81     
       
    82     /**
       
    83      * @see MPhoneDialerController
       
    84      */
       
    85     TInt ButtonState( TButtonIndex aIndex ) const;
       
    86     
       
    87     /**
       
    88      * @see MPhoneDialerController
       
    89      */
       
    90     TBool ButtonDimmed( TButtonIndex aIndex ) const;
       
    91     
       
    92     /**
       
    93      * @see MPhoneDialerController
       
    94      */
       
    95     TBool EasyDialingAllowed() const;
       
    96     
       
    97 private: // data
       
    98     
       
    99     HBufC* iPromptText; // OWN
       
   100     };
       
   101 
       
   102 #endif // CPHONEDTMFDIALERCONTROLLER_H