speechsrv_plat/vas_api/inc/nssvasmplayeventhandler.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:29:17 +0100
branchRCL_3
changeset 23 e36f3802f733
parent 0 bf1d17376201
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2003-2006 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:  The MNssPlayEventHandler class provides the call back methods to handle 
*               the events during Play operation.
*
*/



#ifndef NSSVASMPLAYEVENTHANDLER_H
#define NSSVASMPLAYEVENTHANDLER_H


//  INCLUDES
#include <e32base.h>
#include <nssvascoreconstant.h>


/**
* The MNssPlayEventHandler class provides the call back methods to handle 
*  the events during Play operation.
*
*  @lib NssVASApi.lib
*  @since 2.0
*/
class MNssPlayEventHandler
{

  public:

    /**
    * TPlayResult will have all the enums to represent the result values from
    * HandlePlayError method.
    * 
    * NOTE:
    * The HandlePlayError() should handle the undefined error for TPlayResult.
    */         
    enum TNssPlayResult
        {
        EVasErrorNone,
        EVasPlayFailed,
        EVasPlayNoMemory,
        EVasPlayAccessDeny,
        EVasPlayUndefinedError10,   // for place holder
        EVasPlayUndefinedError9,
        EVasPlayUndefinedError8,
        EVasPlayUndefinedError7,
        EVasPlayUndefinedError6,
        EVasPlayUndefinedError5,
        EVasPlayUndefinedError4,
        EVasPlayUndefinedError3,
        EVasPlayUndefinedError2,
        EVasPlayUndefinedError1
        };

    /**
    * The HandlePlayStarted method is a virtual method implemented by the
    * client and is called when play is started
    * @since 2.0
    * @param aDuration - the duration of the utterance data
    * @return no return value
    */       
    virtual void HandlePlayStarted( TTimeIntervalMicroSeconds32 aDuration ) = 0;

    /**
    * The HandlePlayComplete method is a virtual method implemented by the
    * client and is called when play is completed
    * @since 2.0
    * @param aErrorCode EVasErrorNone if playing was successfull
    * @return no return value
    */       
    virtual void HandlePlayComplete( TNssPlayResult aErrorCode ) = 0;
};



#endif // NSSVASMPLAYEVENTHANDLER_H

// End of file