mmmw_plat/telephony_multimedia_service_api/inc/tmsinbandtoneobsrvr.h
author hgs
Fri, 14 May 2010 18:19:45 -0500
changeset 20 b67dd1fc57c5
parent 14 80975da52420
permissions -rw-r--r--
201019

/*
 * 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: This class provides callback mechanism for TMSInbandTone
 * listeners.
 *
 */

#ifndef TMS_INBAND_OBSRVR_H
#define TMS_INBAND_OBSRVR_H

// Include files
#include <tms.h>

namespace TMS {

// FORWARD DECLARATIONS
class TMSInbandTone;

/**
 * TMSInbandToneObserver class
 *
 * This class provides callback mechanism for TMSInbandTone listeners.
 *
 * Client class that wants to receive events from TMS must inherit from
 * TMSInbandToneObserver class and register itself with the TMSInbandTone object.
 *
 * Functions declared in this class are called upon TMS events.
 *
 * The client must not do any blocking, or perform any CPU-intensive operations
 * in the callback methods. It is recommended that the client saves event data,
 * returns from this function immediately and if necessary, responds to
 * the event in asynchronous way.
 *
 * @lib tmsapi.lib
 *
 */

class TMSInbandToneObserver
    {
public:
    /**
     * Notified events:
     *  TMS_EVENT_INBAND_TONE_STARTED
     *  TMS_EVENT_INBAND_TONE_STOPPED

     * @param  inbandtone
     *      Reference to the object that is being signaled.
     *
     * @param  event
     *      Event descriptor.
     */
    virtual void InbandToneEvent(const TMSInbandTone& inbandtone,
            TMSSignalEvent event) = 0;
    };

} //namespace TMS

#endif // TMS_INBAND_OBSRVR_H

// End of file