datacommsserver/esockserver/ssock/ss_protcfgldr.cpp
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 1997-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 /**
       
    17  @internalTechnology
       
    18 */
       
    19 #include "ss_protcfgldr.h"
       
    20 
       
    21 #include <commsdattypesv1_1.h> // CommsDat
       
    22 #include <ecom/ecom.h>
       
    23 
       
    24 
       
    25 using namespace ESock;
       
    26 using namespace CommsDat;
       
    27 
       
    28 EXPORT_C CProtocolConfigLoader* CProtocolConfigLoader::NewL(CommsDat::CMDBSession* aDbs, const TUid aProtCfgLdrUid)
       
    29     {
       
    30     CProtocolConfigLoader *loader = CProtocolConfigLoader::NewL(aProtCfgLdrUid);
       
    31     loader->SetDatabaseSession(aDbs);
       
    32 
       
    33     return loader;
       
    34     }
       
    35 
       
    36 EXPORT_C CProtocolConfigLoader* CProtocolConfigLoader::NewL(const TUid aProtCfgLdrUid)
       
    37     {
       
    38     TAny* protoCfgLdr =
       
    39 	REComSession::CreateImplementationL(aProtCfgLdrUid, _FOFF(CProtocolConfigLoader, iDtor_ID_Key));
       
    40 
       
    41     return reinterpret_cast<CProtocolConfigLoader*>(protoCfgLdr);
       
    42     }
       
    43 
       
    44 EXPORT_C CProtocolConfigLoader::~CProtocolConfigLoader()
       
    45     {
       
    46     // notify ECom of the deletion of the object
       
    47     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    48     }
       
    49 
       
    50 EXPORT_C void CProtocolConfigLoader::ListImplementationsL(RImplInfoPtrArray& aImplInfoArray)
       
    51     {
       
    52     REComSession::ListImplementationsL(KCProtocolConfigLoaderUid, aImplInfoArray);
       
    53     }
       
    54 
       
    55