diff -r 000000000000 -r ff3b6d0fd310 satengine/SatServer/Commands/SendDtmfCmd/inc/csatdtmfsender.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/satengine/SatServer/Commands/SendDtmfCmd/inc/csatdtmfsender.h Tue Feb 02 01:11:09 2010 +0200 @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2006-2008 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: DTMF sender for SendDtmf command +* +*/ + + + +#ifndef CSATDTMFSENDER_H +#define CSATDTMFSENDER_H + +#include + +// CLASS DECLARATION +class CSendDtmfHandler; +class MSatMultiModeApi; + +/** + * DTMF sender for SendDtmf command. + * + * @lib SendDtmfCmd.lib + * @since S60 3.2 + */ +class CSatDtmfSender : public CActive + { + +public: // Constructors and destructor + + /** + * C++ default constructor. + * @param aDtmfHandler Observes completion of DTMF sending + * @param aPhone API for sending DTMF strings. + */ + CSatDtmfSender( CSendDtmfHandler& aDtmfHandler, + MSatMultiModeApi& aPhone ); + + /** + * Destructor. + */ + virtual ~CSatDtmfSender(); + + /** + * Transmit DTMF tones across all the current active voice calls. + * @since S60 3.2 + * @param aTones The string of DTMF characters. + */ + void SendToneString( const TDesC& aTones ); + +protected: + + /** + * From CActive. + * Called when request status given SetActiveAndWait completes + */ + void RunL(); + + /** + * From CActive. + * Called when request is cancelled + */ + void DoCancel(); + +private: // Data + + /** + * Observer of the DTMF sending. + */ + CSendDtmfHandler& iDtmfHandler; + + /** + * API used for sending DTMF string to adaptation. + */ + MSatMultiModeApi& iPhone; + + }; + +#endif // CSATDTMFSENDER_H +