satengine/satserver/Commands/SetUpCallCmd/inc/csetupcalldtmfsender.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Create the call and emergency call to ETelMM
*
*/


#ifndef CSETUPCALLDTMFSENDER_H
#define CSETUPCALLDTMFSENDER_H

#include <e32base.h>

class MSatMultiModeApi;

NONSHARABLE_CLASS ( CSetupCallDtmfSender ) : public CActive
{
public:

    /**
     * Two-phased constructor.
     * @param aPhone A reference to the MSatMultiModeApi.
     * @return a pointer to the newly created object.
     */
    static CSetupCallDtmfSender* NewL( MSatMultiModeApi& aPhone );

    /**
     * Destructor.
     */
    virtual ~CSetupCallDtmfSender();

    /**
     * Send Dtmf string after creating a call successfully 
     */
    void SendDtmfString();    

    /**
     * Separate Dtmf string from whole string.
     * Purl tel number will return by aString.
     * Dtmf string will store in data member for furture sending dtmf. 
     */
    void SeparateDtmfFromTelNumber( TDes& aString );
    
protected:

    /**
     * From CActive, handles the request completion.
     */
    void RunL();    
    
    /**
     * From CActive, handle the request cancel
     */
    void DoCancel();
    
private:

    /**
     * C++ default constructor.
     * @param aPhone A reference to MSatMultiModeApi.
     */
    CSetupCallDtmfSender( MSatMultiModeApi& aPhone );
        
private: // Data

    /**
     * Reference to the MSatMultiModeApi
     */
    MSatMultiModeApi& iPhone;
    
    /**
     * Own. Dtmf string
     */    
    HBufC* iDtmfString;    

};

#endif // CSETUPCALLDTMFSENDER_H