mmserv/voipaudioservices/VoIPIntfc/inc/VoIPJitterBufferIntfcImpl.h
changeset 53 eabc8c503852
parent 0 71ca22bcf22a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description:  VOIP Audio Services
    14  * Description:  VOIP Audio Services
    15 *
    15  *
    16 */
    16  */
    17 
    17 
    18 
    18 #ifndef VOIPJITTERBUFFERINTFCIMPL_H
    19 #ifndef __VOIPJITTERBUFFERINTFCIMPL_H
    19 #define VOIPJITTERBUFFERINTFCIMPL_H
    20 #define __VOIPJITTERBUFFERINTFCIMPL_H
       
    21 
    20 
    22 #include <voipjitterbufferintfc.h>
    21 #include <voipjitterbufferintfc.h>
    23 
    22 
    24 // FORWARD DECLARATIONS
    23 // FORWARD DECLARATIONS
    25 class RVoIPAudioSession;
    24 class RVoIPAudioSession;
    26 
       
    27 
    25 
    28 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    29 // CVoIPJitterBufferIntfcImpl base class
    27 // CVoIPJitterBufferIntfcImpl base class
    30 // -----------------------------------------------------------------------------
    28 // -----------------------------------------------------------------------------
    31 NONSHARABLE_CLASS(CVoIPJitterBufferIntfcImpl) : public CBase,
    29 NONSHARABLE_CLASS(CVoIPJitterBufferIntfcImpl) : public CBase,
    32                                                 public CVoIPJitterBufferIntfc
    30                                                 public CVoIPJitterBufferIntfc
    33     {
    31     {
    34 public:
    32 public:
    35     static CVoIPJitterBufferIntfcImpl* NewL(RVoIPAudioSession* aVoIPAudioSession);
    33     static CVoIPJitterBufferIntfcImpl* NewL(
       
    34             RVoIPAudioSession* aVoIPAudioSession);
    36 
    35 
    37     virtual ~CVoIPJitterBufferIntfcImpl();
    36     virtual ~CVoIPJitterBufferIntfcImpl();
    38 
    37 
    39     TInt SetObserver(MVoIPJitterBufferObserver& aObserver);
    38     TInt SetObserver(MVoIPJitterBufferObserver& aObserver);
    40     TInt ConfigureJitterBuffer(const TVoIPJBConfig& aJbConfig);
    39     TInt ConfigureJitterBuffer(const TVoIPJBConfig& aJbConfig);
    41     TInt ResetJitterBuffer(TBool aPlayTone);
    40     TInt ResetJitterBuffer(TBool aPlayTone);
    42     TInt DelayDown();
    41     TInt DelayDown();
    43     TInt DelayUp();
    42     TInt DelayUp();
    44 
    43 
       
    44 #ifdef __FEATURE_NOT_SUPPORTED__
    45     void SendEventToObserver(TInt aEvent);
    45     void SendEventToObserver(TInt aEvent);
       
    46 #endif //__FEATURE_NOT_SUPPORTED__
    46 
    47 
    47 protected:
    48 protected:
    48     CVoIPJitterBufferIntfcImpl();
    49     CVoIPJitterBufferIntfcImpl();
    49     void ConstructL(RVoIPAudioSession* aVoIPAudioSession);
    50     void ConstructL(RVoIPAudioSession* aVoIPAudioSession);
    50 
    51 
    51 protected:
    52 protected:
    52     RVoIPAudioSession*         iVoIPAudioSession;
    53     RVoIPAudioSession* iVoIPAudioSession;
    53     MVoIPJitterBufferObserver* iObserver;
    54     MVoIPJitterBufferObserver* iObserver;
    54 
       
    55     };
    55     };
    56 
    56 
    57 #endif //__VOIPJITTERBUFFERINTFCIMPL_H
    57 #endif //VOIPJITTERBUFFERINTFCIMPL_H
    58 
       
    59 
    58 
    60 // End of file
    59 // End of file