accessoryservices/accessoryserver/src/accpolaudiodevicetopology/accpolterminalbase.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Implementation for terminal base class.
       
    15 *
       
    16 */
       
    17  
       
    18 #include <accpolterminalbase.h>
       
    19 #include "acc_debug.h"
       
    20 
       
    21 // -----------------------------------------------------------------------------
       
    22 // CAccPolTerminalBase::CAccPolTerminalBase
       
    23 // C++ default constructor can NOT contain any code, that
       
    24 // might leave.
       
    25 // -----------------------------------------------------------------------------
       
    26 //
       
    27 EXPORT_C CAccPolTerminalBase::CAccPolTerminalBase(
       
    28     const TTopologyConObjectType aObjecType,
       
    29     CAccPolObjectCon* aObject ) :
       
    30     CAccPolAudioUnitBase( aObjecType, aObject )
       
    31     {
       
    32     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Enter" );
       
    33     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Return" );
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CAccPolTerminalBase::CAccPolTerminalBase
       
    38 // C++ default constructor can NOT contain any code, that
       
    39 // might leave.
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 EXPORT_C CAccPolTerminalBase::CAccPolTerminalBase(
       
    43     const TTopologyConObjectType aObjecType,
       
    44     const TUint8 aUnitId ) :
       
    45     CAccPolAudioUnitBase( aUnitId, aObjecType )
       
    46     {
       
    47     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Enter" );
       
    48     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Return" );
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // CAccPolTerminalBase::CAccPolTerminalBase
       
    53 // C++ default constructor can NOT contain any code, that
       
    54 // might leave.
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CAccPolTerminalBase::CAccPolTerminalBase(
       
    58     const TTopologyConObjectType aObjecType,
       
    59     const TUint8 aUnitId,
       
    60     const TUint8 aSourceId ) :
       
    61     CAccPolAudioUnitBase( aUnitId, aSourceId, aObjecType )
       
    62     {
       
    63     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Enter" );
       
    64     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::CAccPolTerminalBase() - Return" );
       
    65     }
       
    66 
       
    67 // Destructor
       
    68 EXPORT_C CAccPolTerminalBase::~CAccPolTerminalBase()
       
    69     {
       
    70     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::~CAccPolTerminalBase() - Enter" );
       
    71     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::~CAccPolTerminalBase() - Return" );
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // CAccPolTerminalBase::operator()
       
    76 // ---------------------------------------------------------------------------
       
    77 //
       
    78 EXPORT_C CAccPolTerminalBase& CAccPolTerminalBase::operator=(
       
    79     const CAccPolTerminalBase& aTerminalBaseObject )
       
    80     {
       
    81     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::operator() - Enter" );
       
    82     CAccPolAudioUnitBase::operator=(
       
    83         ( CAccPolAudioUnitBase& )aTerminalBaseObject );
       
    84     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::operator() - Return" );
       
    85     return ( *this );
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // CAccPolTerminalBase::ExternalizeBaseLd
       
    90 // ---------------------------------------------------------------------------
       
    91 //
       
    92 EXPORT_C void CAccPolTerminalBase::ExternalizeTerminalBaseL(
       
    93     RWriteStream& aStream ) const
       
    94     {
       
    95     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::ExternalizeTerminalBaseL() - Enter" );
       
    96 
       
    97     ExternalizeAudioUnitBaseL( aStream );
       
    98 
       
    99     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::ExternalizeTerminalBaseL - Return" );
       
   100     }
       
   101 
       
   102 // ---------------------------------------------------------------------------
       
   103 // CAccPolTerminalBase::InternalizeBaseL
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 EXPORT_C void CAccPolTerminalBase::InternalizeTerminalBaseL(
       
   107     RReadStream& aStream )
       
   108     {
       
   109     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::InternalizeTerminalBaseL() - Enter" );
       
   110 
       
   111     InternalizeAudioUnitBaseL( aStream );
       
   112 
       
   113     API_TRACE_( "[AccFW: ACCPOLAUDIODEVICETOPOLOGY] CAccPolTerminalBase::InternalizeTerminalBaseL - Return" );
       
   114     }