satengine/satserver/Commands/SetUpCallCmd/inc/csetupcalldtmfsender.h
changeset 31 a2467631ae02
child 32 1f002146abb4
equal deleted inserted replaced
27:7eb70891911c 31:a2467631ae02
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Create the call and emergency call to ETelMM
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CSETUPCALLDTMFSENDER_H
       
    20 #define CSETUPCALLDTMFSENDER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "msatmultimodeapi.h"
       
    24 
       
    25 NONSHARABLE_CLASS ( CSetupCallDtmfSender ) : public CActive
       
    26 {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Two-phased constructor.
       
    31      * @param aPhone A reference to the MSatMultiModeApi.
       
    32      * @return a pointer to the newly created object.
       
    33      */
       
    34     static CSetupCallDtmfSender* NewL( MSatMultiModeApi& aPhone );
       
    35 
       
    36     /**
       
    37      * Destructor.
       
    38      */
       
    39     virtual ~CSetupCallDtmfSender();
       
    40 
       
    41     /**
       
    42      * Send Dtmf string after creating a call successfully 
       
    43      */
       
    44     void SendDtmfString();    
       
    45 
       
    46     /**
       
    47      * Separate Dtmf string from whole string.
       
    48      * Purl tel number will return by aString.
       
    49      * Dtmf string will store in data member for furture sending dtmf. 
       
    50      */
       
    51     void SeparateDtmfFromTelNumber( TDes& aString );
       
    52     
       
    53 protected:
       
    54 
       
    55     /**
       
    56      * From CActive, handles the request completion.
       
    57      */
       
    58     void RunL();    
       
    59     
       
    60     /**
       
    61      * From CActive, handle the request cancel
       
    62      */
       
    63     void DoCancel();
       
    64     
       
    65 private:
       
    66 
       
    67     /**
       
    68      * C++ default constructor.
       
    69      * @param aPhone A reference to MSatMultiModeApi.
       
    70      */
       
    71     CSetupCallDtmfSender( MSatMultiModeApi& aPhone );
       
    72         
       
    73 private: // Data
       
    74 
       
    75     /**
       
    76      * Reference to the MSatMultiModeApi
       
    77      */
       
    78     MSatMultiModeApi& iPhone;
       
    79     
       
    80     /**
       
    81      * Own. Dtmf string
       
    82      */    
       
    83     HBufC* iDtmfString;    
       
    84 
       
    85 };
       
    86 
       
    87 #endif // CSETUPCALLDTMFSENDER_H