phoneplugins/csplugin/inc/cspaudiohandlerbase.h
changeset 72 c76a0b1755b9
equal deleted inserted replaced
64:6aaf0276100e 72:c76a0b1755b9
       
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Audio stream controlling interface
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CSPAUDIOHANDLERBASE_H_
       
    19 #define CSPAUDIOHANDLERBASE_H_
       
    20 
       
    21 class MCSPAudioHandlerObserver;
       
    22 
       
    23 /**
       
    24  * Provides interface for controlling audio streams.
       
    25  *
       
    26  */
       
    27 class CSPAudioHandlerBase : public CBase
       
    28     {
       
    29 public:    
       
    30 
       
    31     /*
       
    32      * Set observer to receive call audio stream events.
       
    33      */
       
    34     virtual void SetObserver(MCSPAudioHandlerObserver& aObserver) = 0;
       
    35 
       
    36     /**
       
    37      * Start audio streams.
       
    38      */
       
    39     virtual void Start() = 0;
       
    40 
       
    41     /**
       
    42      * Stop audio streams.
       
    43      */
       
    44     virtual void Stop() = 0;
       
    45 
       
    46     /*
       
    47      * Specify timeout after which stream start retry will be terminated.
       
    48      */
       
    49     virtual void ReportAudioFailureAfterTimeout(TInt aTimeout) = 0;
       
    50 
       
    51     };
       
    52 
       
    53 #endif /* CSPAUDIOHANDLERBASE_H_ */