multimediacommscontroller/mmccfilesourcesink/src/mccfilesourcesinkfactory.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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 
       
    21 #include <e32base.h>
       
    22 #include <ecom/implementationproxy.h>
       
    23 #include "mccuids.hrh"
       
    24 #include "mccfilesource.h"
       
    25 #include "mccfilesink.h"
       
    26 
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // DLL Entry point
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 #ifndef EKA2
       
    33 GLDEF_C TInt E32Dll( TDllReason /*aReason*/ )
       
    34     {
       
    35     return( KErrNone );
       
    36     }
       
    37 #endif
       
    38 
       
    39 // -----------------------------------------------------------------------------
       
    40 // Exported proxy for instantiation method resolution
       
    41 // Define the interface UIDs
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 #ifndef EKA2
       
    45 const TImplementationProxy ImplementationTable[] =
       
    46     {
       
    47         {{KImplUidMccFileSource},   CMccFileSource::NewSourceL},
       
    48         {{KImplUidMccFileSink},     CMccFileSink::NewSinkL}
       
    49     };
       
    50 #else
       
    51 
       
    52 // Disabled PC-Lint warning for "suspicious typecast" caused by Symbian's
       
    53 // ECom declarations (IMPLEMENTATION_PROXY_ENTRY that follows)
       
    54 /*lint -e611 */
       
    55 
       
    56 const TImplementationProxy ImplementationTable[] = 
       
    57     {
       
    58         IMPLEMENTATION_PROXY_ENTRY( KImplUidMccFileSource, CMccFileSource::NewSourceL ),
       
    59         IMPLEMENTATION_PROXY_ENTRY( KImplUidMccFileSink, CMccFileSink::NewSinkL )
       
    60     };
       
    61 #endif
       
    62 
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // ImplementationGroupProxy()
       
    66 // -----------------------------------------------------------------------------
       
    67 //
       
    68 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
       
    69     {
       
    70     aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy );
       
    71     return ImplementationTable;
       
    72     }
       
    73