hotspotfw/hsserver/inc/hssclientplugin.inl
changeset 0 56b72877c1cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hotspotfw/hsserver/inc/hssclientplugin.inl	Thu Dec 17 09:20:28 2009 +0200
@@ -0,0 +1,66 @@
+/*
+* Copyright (c) 2002-2005 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:   Inline functions of CHssClientPlugin class.
+*
+*/
+
+
+
+#ifndef HSSCLIENTPLUGIN_INL
+#define HSSCLIENTPLUGIN_INL
+
+// ---------------------------------------------------------
+// CHssClientPlugin::NewL
+// ---------------------------------------------------------
+//
+inline CHssClientPlugin* CHssClientPlugin::NewL( const TUid aUid, TDesC8& aUidText )
+    {
+    TAny* interface( NULL );
+    if ( aUidText != KNullDesC8 )
+        {
+        TEComResolverParams resolverParams;
+        
+        TBuf8<KExtensionAPILength> buf;
+        buf.Append( KUidPrefix );
+        buf.Append( aUidText );
+        buf.Append( KExtensionAPI );
+        resolverParams.SetDataType( buf );
+        resolverParams.SetWildcardMatch( ETrue );
+        
+        interface = REComSession::CreateImplementationL(
+        K3rdPartyEcomInterfaceUid,  _FOFF( CHssClientPlugin,
+        iInstanceIdentifier ),
+        resolverParams );
+        }
+    else
+        {
+        interface = REComSession::CreateImplementationL(
+               aUid,  _FOFF( CHssClientPlugin,
+               iInstanceIdentifier ) );
+        }
+    return reinterpret_cast<CHssClientPlugin*>( interface );
+    }
+    
+// ---------------------------------------------------------
+//CHssClientPlugin::~CHssClientPlugin
+// ---------------------------------------------------------
+//
+inline CHssClientPlugin::~CHssClientPlugin()
+    {
+    REComSession::DestroyedImplementation( iInstanceIdentifier );
+    }
+
+#endif // CHssClientPlugin_INL
+            
+// End of File