datacommsserver/esockserver/ssock/ss_protcfgldr.cpp
author Daniel A. Rubio <danielr@symbian.org>
Tue, 15 Jun 2010 11:42:56 +0100
branchGCC_SURGE
changeset 38 e36c41247a1d
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Bug 2964 - GCC-E compilation error in bt caused by commsfw (813) (template arguments)

// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @internalTechnology
*/
#include "ss_protcfgldr.h"

#include <commsdattypesv1_1.h> // CommsDat
#include <ecom/ecom.h>


using namespace ESock;
using namespace CommsDat;

EXPORT_C CProtocolConfigLoader* CProtocolConfigLoader::NewL(CommsDat::CMDBSession* aDbs, const TUid aProtCfgLdrUid)
    {
    CProtocolConfigLoader *loader = CProtocolConfigLoader::NewL(aProtCfgLdrUid);
    loader->SetDatabaseSession(aDbs);

    return loader;
    }

EXPORT_C CProtocolConfigLoader* CProtocolConfigLoader::NewL(const TUid aProtCfgLdrUid)
    {
    TAny* protoCfgLdr =
	REComSession::CreateImplementationL(aProtCfgLdrUid, _FOFF(CProtocolConfigLoader, iDtor_ID_Key));

    return reinterpret_cast<CProtocolConfigLoader*>(protoCfgLdr);
    }

EXPORT_C CProtocolConfigLoader::~CProtocolConfigLoader()
    {
    // notify ECom of the deletion of the object
    REComSession::DestroyedImplementation(iDtor_ID_Key);
    }

EXPORT_C void CProtocolConfigLoader::ListImplementationsL(RImplInfoPtrArray& aImplInfoArray)
    {
    REComSession::ListImplementationsL(KCProtocolConfigLoaderUid, aImplInfoArray);
    }