multimediacommscontroller/mmcccontroller/src/mccfactory.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 FILES
       
    22 #include "mcccontroller.h"
       
    23 #include "mccuids.hrh"
       
    24 #include <ecom/implementationproxy.h>
       
    25 
       
    26 // EXTERNAL DATA STRUCTURES
       
    27 
       
    28 // EXTERNAL FUNCTION PROTOTYPES  
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // MACROS
       
    33 
       
    34 // LOCAL CONSTANTS AND MACROS
       
    35 
       
    36 // MODULE DATA STRUCTURES
       
    37 
       
    38 // LOCAL FUNCTION PROTOTYPES
       
    39 
       
    40 // FORWARD DECLARATIONS
       
    41 
       
    42 // ============================= LOCAL FUNCTIONS ===============================
       
    43 
       
    44 
       
    45 // ============================ MEMBER FUNCTIONS ===============================
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 // DLL Entry point
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 #ifndef EKA2
       
    52 GLDEF_C TInt E32Dll(TDllReason /*aReason*/)
       
    53     {
       
    54     return(KErrNone);
       
    55     };
       
    56 #endif
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // Exported proxy for instantiation method resolution
       
    60 // Define the interface UIDs
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 #ifndef EKA2
       
    64 const TImplementationProxy ImplementationTable[] =
       
    65     {
       
    66         {{KImplUidMccController}, CMccController::NewL}
       
    67     };
       
    68 #else
       
    69 
       
    70 // Disabled PC-Lint warning for "suspicious typecast" caused by Symbian's
       
    71 // ECom declarations (IMPLEMENTATION_PROXY_ENTRY that follows)
       
    72 /*lint -e611 */
       
    73 
       
    74 const TImplementationProxy ImplementationTable[] = 
       
    75     {
       
    76         IMPLEMENTATION_PROXY_ENTRY( KImplUidMccController, CMccController::NewL )
       
    77     };
       
    78 #endif
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // ImplementationGroupProxy()
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
       
    85     {
       
    86     aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
       
    87     return ImplementationTable;
       
    88     };