tsrc/mceclientstub/src/mcefilesink.cpp
changeset 0 f0cf47e981f9
equal deleted inserted replaced
-1:000000000000 0:f0cf47e981f9
       
     1 /*
       
     2 * Copyright (c) 2006 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 "mcefilesink.h"
       
    21 
       
    22 
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 EXPORT_C CMceFileSink* CMceFileSink::NewL(
       
    32             const TFileName& aFileName )
       
    33     {
       
    34     CMceFileSink* self = CMceFileSink::NewLC( aFileName );
       
    35     CleanupStack::Pop( self );
       
    36     return self;
       
    37     }
       
    38 
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 EXPORT_C CMceFileSink* CMceFileSink::NewLC(
       
    45             const TFileName& aFileName )
       
    46     {
       
    47     CMceFileSink* self = new (ELeave) CMceFileSink();
       
    48     CleanupStack::PushL( self );
       
    49     self->ConstructL( aFileName );
       
    50     return self;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CMceFileSink::~CMceFileSink()
       
    58     {
       
    59     }
       
    60 
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 //
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C void CMceFileSink::EnableL()
       
    67     {
       
    68     CMceMediaSink::DoEnableL();
       
    69     }
       
    70 
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 //
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 EXPORT_C void CMceFileSink::DisableL()
       
    77     { 
       
    78     CMceMediaSink::DoDisableL();
       
    79     }
       
    80     
       
    81 // -----------------------------------------------------------------------------
       
    82 // 
       
    83 // -----------------------------------------------------------------------------
       
    84 //  
       
    85 CMceFileSink::CMceFileSink()
       
    86     {    
       
    87     iType = KMceFileSink;    
       
    88     }
       
    89     
       
    90  
       
    91 // -----------------------------------------------------------------------------
       
    92 // 
       
    93 // -----------------------------------------------------------------------------
       
    94 //  
       
    95 void CMceFileSink::ConstructL( const TFileName& aFileName )
       
    96     { 
       
    97     iFileName = aFileName;
       
    98     }