equal
deleted
inserted
replaced
14 // |
14 // |
15 |
15 |
16 #include <ecom/ecom.h> |
16 #include <ecom/ecom.h> |
17 #include <mtp/cmtpdataproviderplugin.h> |
17 #include <mtp/cmtpdataproviderplugin.h> |
18 #include <mtp/mmtpdataproviderframework.h> |
18 #include <mtp/mmtpdataproviderframework.h> |
|
19 #include "OstTraceDefinitions.h" |
|
20 #ifdef OST_TRACE_COMPILER_IN_USE |
|
21 #include "cmtpdataproviderpluginTraces.h" |
|
22 #endif |
|
23 |
19 |
24 |
20 /** |
25 /** |
21 MTP data provider plug-in factory method. |
26 MTP data provider plug-in factory method. |
22 @param aImplementationUid A UID specifying the required data provider |
27 @param aImplementationUid A UID specifying the required data provider |
23 interface implementation. |
28 interface implementation. |
28 @leave KErrNoMemory If the plug-in instance could not be allocated. |
33 @leave KErrNoMemory If the plug-in instance could not be allocated. |
29 @leave KErrArgument If an invalid aImplementationUid was specified. |
34 @leave KErrArgument If an invalid aImplementationUid was specified. |
30 */ |
35 */ |
31 EXPORT_C CMTPDataProviderPlugin* CMTPDataProviderPlugin::NewL(TUid aImplementationUid, TAny* aParams) |
36 EXPORT_C CMTPDataProviderPlugin* CMTPDataProviderPlugin::NewL(TUid aImplementationUid, TAny* aParams) |
32 { |
37 { |
|
38 OstTraceDef1( OST_TRACE_CATEGORY_PRODUCTION, TRACE_IMPORTANT, CMTPDATAPROVIDERPLUGIN_NEWL, "load DP with ImplementationUid 0x%X", aImplementationUid.iUid ); |
33 CMTPDataProviderPlugin* self = reinterpret_cast<CMTPDataProviderPlugin*>( |
39 CMTPDataProviderPlugin* self = reinterpret_cast<CMTPDataProviderPlugin*>( |
34 REComSession::CreateImplementationL( |
40 REComSession::CreateImplementationL( |
35 aImplementationUid, |
41 aImplementationUid, |
36 _FOFF(CMTPDataProviderPlugin, iDtorIdKey), |
42 _FOFF(CMTPDataProviderPlugin, iDtorIdKey), |
37 aParams)); |
43 aParams)); |