mmmw_plat/telephony_multimedia_service_api/inc/tmsringtoneobsrvr.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:59:52 +0300
changeset 14 80975da52420
parent 12 5a06f39ad45b
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
 * 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 TMSRingTone
 * listeners.
 *
 */

#ifndef TMS_RINGTONE_OBSRVR_H
#define TMS_RINGTONE_OBSRVR_H

// Include files
#include <tms.h>

namespace TMS {

// FORWARD DECLARATIONS
class TMSRingTone;

/**
 * TMSRingToneObserver class
 *
 * This class provides callback mechanism for TMSRingTone listeners.
 *
 * @lib tmsapi.lib
 *
 */
class TMSRingToneObserver
    {
public:
    /**
     * This method is called when TMSRingTone event occurs.
     *
     * Notified events:
     *  TMS_EVENT_RINGTONE_OPEN_COMPLETE
     *  TMS_EVENT_RINGTONE_PLAY_COMPLETE
     *
     * @param  rt
     *      Reference to the object that is being signaled.
     *
     * @param  event
     *      Event descriptor.
     *
     */
    virtual void RingtoneEvent(const TMSRingTone& rt,
            TMSSignalEvent event) = 0;
    };

} //namespace TMS

#endif //TMS_RINGTONE_OBSRVR_H

// End of file