multimediacommsengine/mmcecli/src/mceexternalsink.cpp
branchrcs
changeset 49 64c62431ac08
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2005 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "mceexternalsink.h"
       
    21 #include "mcecomexternalsink.h"
       
    22 #include "mcesession.h"
       
    23 #include "mceclilogs.h"
       
    24 #include "mcemanager.h"
       
    25 
       
    26 #define _FLAT_DATA static_cast<CMceComExternalSink*>( iFlatData )
       
    27 #define FLAT_DATA( data ) _FLAT_DATA->data
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 
       
    32 // -----------------------------------------------------------------------------
       
    33 // CMceExternalSink::NewL
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 EXPORT_C CMceExternalSink* CMceExternalSink::NewL()
       
    37     {
       
    38     
       
    39     CMceExternalSink* self = CMceExternalSink::NewLC();
       
    40     CleanupStack::Pop( self );
       
    41     return self;
       
    42     
       
    43     }
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 // CMceExternalSinke::NewLC
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CMceExternalSink* CMceExternalSink::NewLC()
       
    50     {
       
    51     
       
    52     CMceExternalSink* self = new (ELeave) CMceExternalSink();
       
    53     CleanupStack::PushL( self );
       
    54     self->ConstructL();
       
    55     return self;
       
    56     
       
    57     }
       
    58 	
       
    59 
       
    60 // -----------------------------------------------------------------------------
       
    61 // CMceExternalSink::CMceExternalSink
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 CMceExternalSink::CMceExternalSink()
       
    65 	: CMceMediaSink()
       
    66     {    
       
    67     
       
    68     }
       
    69 	
       
    70 	
       
    71 // -----------------------------------------------------------------------------
       
    72 // CMceExternalSink::ConstructL
       
    73 // -----------------------------------------------------------------------------
       
    74 //
       
    75 void CMceExternalSink::ConstructL()
       
    76     {    
       
    77 	CMceComExternalSink *sink = CMceComExternalSink::NewLC();
       
    78 	CMceMediaSink::ConstructL( sink );
       
    79 	CleanupStack::Pop(sink);
       
    80     }
       
    81 
       
    82     
       
    83 // -----------------------------------------------------------------------------
       
    84 // CMceExternalSink::~CMceExternalSink
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 EXPORT_C CMceExternalSink::~CMceExternalSink()
       
    88     {
       
    89     }
       
    90 
       
    91 // -----------------------------------------------------------------------------
       
    92 // CMceMicSource::EnableL
       
    93 // -----------------------------------------------------------------------------
       
    94 //
       
    95 EXPORT_C void CMceExternalSink::EnableL()
       
    96     {
       
    97     MCECLI_DEBUG("CMceExternalSink::EnableL, Entry");
       
    98     
       
    99     //CMceMediaSource::DoEnableL(); // Not required for Signalling purpose    
       
   100     
       
   101     MCECLI_DEBUG("CMceExternalSink::EnableL, Exit");
       
   102     
       
   103     }
       
   104     
       
   105 // -----------------------------------------------------------------------------
       
   106 // CMceExternalSink::Disable
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void CMceExternalSink::DisableL()
       
   110     {
       
   111     MCECLI_DEBUG("CMceExternalSink::DisableL, Entry");
       
   112     
       
   113     //CMceMediaSource::DoDisableL();  // Not required for Signalling purpose
       
   114 
       
   115     MCECLI_DEBUG("CMceExternalSink::DisableL, Exit");
       
   116     
       
   117     }