diff -r 000000000000 -r c3e98f10fcf4 localconnectivityservice/obexsendservices/obexserviceirsend/src/IRSendingService.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/localconnectivityservice/obexsendservices/obexserviceirsend/src/IRSendingService.cpp Mon Jan 18 21:03:15 2010 +0200 @@ -0,0 +1,68 @@ +/* +* Copyright (c) 2002 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: Defines the DLL entry point and ECom initialization. +* and a panic function used in BTSS. +* +*/ + + +// INCLUDE FILES +#include "IrSSProvider.h" +#include "IRSendingService.hrh" +#include "IrSendingServiceUIDS.hrh" +#include +#include + +// ============================= LOCAL FUNCTIONS =============================== +// + +// ----------------------------------------------------------------------------- +// ImplementationTable +// ECom init: Maps the interface UIDs to implementation factory functions. +// Returns: A table of implementation UIDs and their constructors. +// ----------------------------------------------------------------------------- +// +const TImplementationProxy ImplementationTable[] = + { + IMPLEMENTATION_PROXY_ENTRY(KIRSendingServiceImplUid, CIRSSProvider::NewL) + }; + +// ========================== OTHER EXPORTED FUNCTIONS ========================= + +// ----------------------------------------------------------------------------- +// E32Dll +// DLL entry point. +// Returns: Symbian OS errorcode. +// ----------------------------------------------------------------------------- +// +#ifndef EKA2 +GLDEF_C TInt E32Dll( TDllReason /*aReason*/ ) + { + return KErrNone; + } +#endif + +// ----------------------------------------------------------------------------- +// ImplementationGroupProxy +// ECom init: Exported proxy for instantiation method resolution. +// Returns: Pointer to the proxy and number of implementations in it. +// ----------------------------------------------------------------------------- +// +EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount ) + { + aTableCount = sizeof( ImplementationTable ) / sizeof( TImplementationProxy ); + return ImplementationTable; + } + +// End of File