--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/musicplayer_plat/mpx_music_store_api/inc/mpxfindinmusicshop.inl Thu Dec 17 08:45:05 2009 +0200
@@ -0,0 +1,70 @@
+/*
+* Copyright (c) 2006-2007 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: ECOM inline loading file
+*
+*/
+
+
+
+// INCLUDE FILES
+#include <e32base.h>
+#include <ecom/ecom.h>
+#include "mpxfindinmusicshop.h"
+
+// ============================ MEMBER FUNCTIONS ===============================
+
+// -----------------------------------------------------------------------------
+// CMPXFindInMShop::~CMPXFindInMShop
+// Standard virtual destructor
+// -----------------------------------------------------------------------------
+//
+CMPXFindInMShop::~CMPXFindInMShop()
+ {
+ REComSession::DestroyedImplementation( iDtorKey );
+ }
+
+// -----------------------------------------------------------------------------
+// CMPXFindInMShop::CMPXFindInMShop
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// -----------------------------------------------------------------------------
+//
+CMPXFindInMShop* CMPXFindInMShop::NewL()
+ {
+ // Create the ecom implementation
+ // plugin dll must reside in ROM in order to be loaded!
+ //
+ CMPXFindInMShop* imp = NULL;
+ RImplInfoPtrArray plugins;
+ REComSession::ListImplementationsL( KSchemeHandlerDefinitionUid, plugins );
+ TInt err = KErrNotFound;
+ for( TInt i=0; i<plugins.Count(); ++i )
+ {
+ CImplementationInformation* info = plugins[i];
+ if( info->RomBased() )
+ {
+ err = KErrNone;
+ TUid uid = info->ImplementationUid();
+ imp = reinterpret_cast<CMPXFindInMShop*>
+ ( REComSession::CreateImplementationL( uid, _FOFF( CMPXFindInMShop, iDtorKey ) ) );
+ break;
+ }
+ }
+ User::LeaveIfError( err );
+ plugins.ResetAndDestroy();
+ plugins.Close();
+ return imp;
+ }
+
+// End of File