/*
* Copyright (c) 2009 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: Telephony Multimedia Service
*
*/
#ifndef TMSDTMFOBSERVER_H
#define TMSDTMFOBSERVER_H
#include <e32base.h>
namespace TMS {
/**
* CCP DTMF related events observer class.
* This class is used for notifying DTMF specific events.
*/
class TMSDTMFObserver
{
public:
/** DTMF Events */
enum TCCPDtmfEvent
{
/** Unknown */
ECCPDtmfUnknown = 0,
/** DTMF sending started manually */
ECCPDtmfManualStart = 5,
/** DTMF sending stopped manually */
ECCPDtmfManualStop = 6,
/** DTMF sending aborted manually */
ECCPDtmfManualAbort = 7,
/** Automatic DTMF sending initialized */
ECCPDtmfSequenceStart = 9,
/** Automatic DTMF sending stopped */
ECCPDtmfSequenceStop = 10,
/** Automatic DTMF sending aborted */
ECCPDtmfSequenceAbort = 11,
/** There was stop mark in DTMF string */
ECCPDtmfStopInDtmfString,
/** DTMF sending completed succesfully */
ECCPDtmfStringSendingCompleted
};
//protected:
/**
* Protects the observer being deleted through the observer interface.
*/
//virtual inline ~TMSDTMFObserver() {};
public:
/**
* HandleDTMFEvents.
* @param event Event type
* @param status Error code
* @param tone Character
* @return none
*/
virtual void HandleDTMFEvent(const TMSDTMFObserver::TCCPDtmfEvent event,
const gint status, const TChar tone) /*const*/ = 0;
};
} //namespace TMS
#endif // TMSDTMFOBSERVER_H
// End of File