mtpfws/mtpfw/transports/transportapi/src/cmtptransportplugin.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include <ecom/ecom.h>
       
    17 
       
    18 #include "cmtptransportplugin.h"
       
    19 
       
    20 EXPORT_C CMTPTransportPlugin* CMTPTransportPlugin::NewL(TUid aImplementationUid)
       
    21     {
       
    22     return NewL( aImplementationUid, NULL );
       
    23     }
       
    24 
       
    25 EXPORT_C CMTPTransportPlugin* CMTPTransportPlugin::NewL(TUid aImplementationUid, const TAny* aParameter)
       
    26     {
       
    27     TAny* parameter = const_cast<TAny*>(aParameter);
       
    28     CMTPTransportPlugin* self = reinterpret_cast<CMTPTransportPlugin*>(
       
    29         REComSession::CreateImplementationL(
       
    30             aImplementationUid,
       
    31             _FOFF(CMTPTransportPlugin, iDtorIdKey),parameter));
       
    32     return self;
       
    33     }
       
    34 
       
    35 EXPORT_C CMTPTransportPlugin::~CMTPTransportPlugin()
       
    36     {
       
    37     REComSession::DestroyedImplementation(iDtorIdKey);
       
    38     }
       
    39 
       
    40 EXPORT_C CMTPTransportPlugin::CMTPTransportPlugin()
       
    41     {
       
    42 
       
    43     }
       
    44 
       
    45