mmserv/voipaudioservices/VoIPIntfc/src/VoIPBaseCodecIntfcImpl.cpp
changeset 53 eabc8c503852
parent 0 71ca22bcf22a
equal deleted inserted replaced
48:a493a607b5bf 53:eabc8c503852
     1 /*
     1 /*
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2007-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 
       
    18 
    17 
    19 #include "VoIPAudioSession.h"
    18 #include "VoIPAudioSession.h"
    20 #include "VoIPDownlinkStreamImpl.h"
    19 #include "VoIPDownlinkStreamImpl.h"
    21 #include "VoIPUplinkStreamImpl.h"
    20 #include "VoIPUplinkStreamImpl.h"
    22 #include "VoIPBaseCodecIntfcImpl.h"
    21 #include "VoIPBaseCodecIntfcImpl.h"
    23 
    22 
    24 
       
    25 // ---------------------------------------------------------------------------
    23 // ---------------------------------------------------------------------------
    26 // CVoIPBaseCodecIntfcImpl::NewL
    24 // CVoIPBaseCodecIntfcImpl::NewL
    27 // ---------------------------------------------------------------------------
    25 // ---------------------------------------------------------------------------
    28 //
    26 //
    29 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL(
    27 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL(
    30                          CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    28         CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    31     {
    29     {
    32     CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl();
    30     CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl();
    33     CleanupStack::PushL(self);
    31     CleanupStack::PushL(self);
    34     self->ConstructL(aDnLinkStreamImpl);
    32     self->ConstructL(aDnLinkStreamImpl);
    35     CleanupStack::Pop(self);
    33     CleanupStack::Pop(self);
    39 // ---------------------------------------------------------------------------
    37 // ---------------------------------------------------------------------------
    40 // CVoIPBaseCodecIntfcImpl::NewL
    38 // CVoIPBaseCodecIntfcImpl::NewL
    41 // ---------------------------------------------------------------------------
    39 // ---------------------------------------------------------------------------
    42 //
    40 //
    43 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL(
    41 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL(
    44                          CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    42         CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    45     {
    43     {
    46     CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl();
    44     CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl();
    47     CleanupStack::PushL(self);
    45     CleanupStack::PushL(self);
    48     self->ConstructL(aUpLinkStreamImpl);
    46     self->ConstructL(aUpLinkStreamImpl);
    49     CleanupStack::Pop(self);
    47     CleanupStack::Pop(self);
    69 // ---------------------------------------------------------------------------
    67 // ---------------------------------------------------------------------------
    70 // CVoIPBaseCodecIntfcImpl::ConstructL
    68 // CVoIPBaseCodecIntfcImpl::ConstructL
    71 // ---------------------------------------------------------------------------
    69 // ---------------------------------------------------------------------------
    72 //
    70 //
    73 void CVoIPBaseCodecIntfcImpl::ConstructL(
    71 void CVoIPBaseCodecIntfcImpl::ConstructL(
    74     CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    72         CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl)
    75     {
    73     {
    76     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
    74     iVoIPAudioSession = aDnLinkStreamImpl->GetSession();
    77     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    75     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    78     CVoIPFormatIntfc::ConstructL(this);
    76     CVoIPFormatIntfc::ConstructL(this);
    79     }
    77     }
    81 // ---------------------------------------------------------------------------
    79 // ---------------------------------------------------------------------------
    82 // CVoIPBaseCodecIntfcImpl::ConstructL
    80 // CVoIPBaseCodecIntfcImpl::ConstructL
    83 // ---------------------------------------------------------------------------
    81 // ---------------------------------------------------------------------------
    84 //
    82 //
    85 void CVoIPBaseCodecIntfcImpl::ConstructL(
    83 void CVoIPBaseCodecIntfcImpl::ConstructL(
    86     CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    84         CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl)
    87     {
    85     {
    88     iVoIPAudioSession = aUpLinkStreamImpl->GetSession();
    86     iVoIPAudioSession = aUpLinkStreamImpl->GetSession();
    89     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    87     CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession);
    90     CVoIPFormatIntfc::ConstructL(this);
    88     CVoIPFormatIntfc::ConstructL(this);
    91     }
    89     }
    92 
    90 
    93 
       
    94 // End of file
    91 // End of file