phoneapp/phoneuiview/inc/cphoneeasydialingcontroller.h
branchRCL_3
changeset 9 8871b09be73b
equal deleted inserted replaced
4:c84cf270c54f 9: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: Class handles Easy dialing specific commands
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPHONEEASYDIALINGCONTROLLER_H
       
    19 #define CPHONEEASYDIALINGCONTROLLER_H
       
    20 
       
    21 //INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "phoneviewcommanddefinitions.h"
       
    24 
       
    25 //FORWARD
       
    26 class CDialer;
       
    27 class TPhoneCommandParam;
       
    28 class CDialingExtensionInterface;
       
    29 
       
    30 /**
       
    31  * Class takes care of Easy dialing
       
    32  *
       
    33  * @lib phoneuicontrol
       
    34  * @since S60 v9.2
       
    35  */
       
    36 NONSHARABLE_CLASS( CPhoneEasyDialingController ) : public CBase
       
    37     {
       
    38     public:
       
    39     
       
    40         /**
       
    41         * Creates new instance of CPhoneEasyDialingController
       
    42         * @param aDialer: reference to dialer
       
    43         * @return CPhoneEasyDialingController* object  
       
    44         */
       
    45         static CPhoneEasyDialingController* NewL(
       
    46                 CDialer& aDialer );
       
    47 
       
    48         /**
       
    49         * Destructor.
       
    50         */
       
    51         virtual ~CPhoneEasyDialingController();
       
    52         
       
    53         void ExecuteCommandL(
       
    54             TPhoneViewCommandId aCmdId,
       
    55             TPhoneCommandParam* aCommandParam );
       
    56 
       
    57         TPhoneViewResponseId HandleCommandL( TPhoneViewCommandId aCmdId );
       
    58        
       
    59         TBool InitializeEasyDialingMenuL( TPhoneCommandParam* aCommandParam );
       
    60 
       
    61     private:
       
    62     
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CPhoneEasyDialingController(CDialer& aDialer);
       
    67         
       
    68     private:
       
    69         // Dialer. Not owned
       
    70         CDialer& iDialer;
       
    71         
       
    72         // Easydialing in interface. Not owned.
       
    73         CDialingExtensionInterface* iEasyDialing;
       
    74     };
       
    75 
       
    76 #endif //CPHONEEASYDIALINGCONTROLLER_H