phonecmdhandler/phonecmdhnlr/inc/PhoneHandlerVoiceDial.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: Declaration of CPhoneHandlerVoiceDial class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEHANDLERVOICEDIAL_H
       
    20 #define CPHONEHANDLERVOICEDIAL_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "PhoneHandlerCallBase.h"
       
    24 #include <RemConExtensionApi.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CPhoneHandlerControl;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *  Handles dial and speed dial key presses.
       
    41 *
       
    42 *  @lib PhoneCmdHandler
       
    43 *  @since S60 3.1
       
    44 */
       
    45 NONSHARABLE_CLASS( CPhoneHandlerVoiceDial ) : public CPhoneHandlerCallBase
       
    46 											  
       
    47     {
       
    48     public:  // Constructors and destructor
       
    49         
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         static CPhoneHandlerVoiceDial* NewL( 
       
    54         					CPhoneHandlerControl& aControl,
       
    55         					TRemConExtCallHandlingApiOperationId aOperation = 
       
    56         						ERemConExtVoiceDial );
       
    57         
       
    58         /**
       
    59         * Destructor.
       
    60         */
       
    61         virtual ~CPhoneHandlerVoiceDial();
       
    62 
       
    63     public: // New functions
       
    64     
       
    65     public: // Functions from base classes
       
    66 
       
    67         /**
       
    68         * From MPhoneHandlerService. Starts processing service.
       
    69         * @since S60 3.1
       
    70         * @return void
       
    71         */
       
    72         void Process();
       
    73         
       
    74         /**
       
    75         * From MPhoneHandlerService. Deletes service.
       
    76         * @since S60 3.1
       
    77         * @return void
       
    78         */
       
    79         void Delete();
       
    80         
       
    81         /**
       
    82         * From MPhoneHandlerObserver. Notifies when asynchronous request has 
       
    83         * been completed.
       
    84         * @since S60 3.1
       
    85         * @param aError request error code
       
    86         * @return void
       
    87         */
       
    88         void RequestCompleted( const TInt aError );
       
    89             
       
    90     protected:  // New functions
       
    91     
       
    92     protected:  // Functions from base classes
       
    93         
       
    94     
       
    95     private:
       
    96 
       
    97         /**
       
    98         * C++ default constructor.
       
    99         */
       
   100         CPhoneHandlerVoiceDial( 
       
   101         					CPhoneHandlerControl& aControl,
       
   102         					TRemConExtCallHandlingApiOperationId aOperation );
       
   103 
       
   104         /**
       
   105         * By default Symbian 2nd phase constructor is private.
       
   106         */
       
   107         void ConstructL();
       
   108 	
       
   109     public:     // Data
       
   110     
       
   111     protected:  // Data
       
   112     
       
   113     private:    // Data
       
   114             
       
   115         // reference to control
       
   116         CPhoneHandlerControl& iControl;
       
   117         
       
   118         // Command which initiates voice call in BT case is ERemConExtVoiceDial.
       
   119         // Command which initiates voice call in wired case is
       
   120         // ERemConExtEndCall.
       
   121         // iOperation is used to give response to exact RemConExtensionApi
       
   122         // command
       
   123         TRemConExtCallHandlingApiOperationId iOperation;
       
   124         
       
   125     public:     // Friend classes
       
   126     
       
   127     protected:  // Friend classes
       
   128     
       
   129     private:    // Friend classes
       
   130     
       
   131     };
       
   132 
       
   133 #endif      // CPHONEHANDLERVOICEDIAL_H   
       
   134             
       
   135 // End of File