mtpfws/mtpfw/dataproviders/devdp/devdpextnapi/src/cmtpdevdpextn.cpp
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "cmtpextndevdp.h"
       
    17 #include "mextndevplugincallback.h"
       
    18 
       
    19 EXPORT_C TInt  CMtpExtnDevicePropPlugin::GetDevPropertyL (const TMTPDevicePropertyCode /*aPropCode*/, MMTPType**)
       
    20 	{
       
    21 	return KErrNotSupported;
       
    22 	}
       
    23 
       
    24 EXPORT_C TInt CMtpExtnDevicePropPlugin::GetDevPropertyDescL (const TMTPDevicePropertyCode /*aPropCode*/, MMTPType**)
       
    25 	{
       
    26 	return KErrNotSupported;
       
    27 	}
       
    28  
       
    29 EXPORT_C TInt CMtpExtnDevicePropPlugin::GetDevicePropertyContainerL(TMTPDevicePropertyCode /*aPropCode*/, MMTPType**)
       
    30 	 {
       
    31 	 return KErrNotSupported;	
       
    32 	 }
       
    33 
       
    34 EXPORT_C TMTPResponseCode CMtpExtnDevicePropPlugin::SetDevicePropertyL()
       
    35 	{
       
    36 	return EMTPRespCodeDevicePropNotSupported;
       
    37 	}
       
    38  
       
    39 EXPORT_C void CMtpExtnDevicePropPlugin::Supported (TMTPSupportCategory /*aCategory*/, RArray <TUint>& /*aArray*/ ,TMTPOperationalMode /*aMode*/)
       
    40 	{
       
    41 	return;
       
    42 	}
       
    43  
       
    44 EXPORT_C TInt CMtpExtnDevicePropPlugin::ResetDevPropertyL(const TMTPDevicePropertyCode /*aPropCode*/)
       
    45 	{
       
    46 	return KErrNotSupported;
       
    47 	}
       
    48 
       
    49 EXPORT_C CMtpExtnDevicePropPlugin* CMtpExtnDevicePropPlugin::NewL(TUid aUid )
       
    50 	{
       
    51 	CMtpExtnDevicePropPlugin* self = reinterpret_cast<CMtpExtnDevicePropPlugin*>(
       
    52 	REComSession::CreateImplementationL(aUid, _FOFF(CMtpExtnDevicePropPlugin, iDtorIdKey))); 
       
    53 	return self; 
       
    54 	}
       
    55 
       
    56 EXPORT_C  CMtpExtnDevicePropPlugin::~CMtpExtnDevicePropPlugin()
       
    57 	{
       
    58 	REComSession::DestroyedImplementation (iDtorIdKey);
       
    59 	}
       
    60 	
       
    61 EXPORT_C void CMtpExtnDevicePropPlugin::SetCallback(MExtnDevPluginCallback& aExtnDevPluginCallback)
       
    62 	{
       
    63 	iExtnDevPluginCallback = &aExtnDevPluginCallback;
       
    64 	}
       
    65 	
       
    66 EXPORT_C void CMtpExtnDevicePropPlugin::NotifyOnDevicePropertyChanged (TMTPDevicePropertyCode& aPropCode)
       
    67 	{
       
    68 	TRAP_IGNORE(iExtnDevPluginCallback->OnDevicePropertyChangedL (aPropCode));	
       
    69 	}
       
    70 
       
    71 	/**
       
    72 	* This method return mtpframework
       
    73 	*/
       
    74 EXPORT_C MMTPDataProviderFramework& CMtpExtnDevicePropPlugin::Framework ( ) const
       
    75 	{
       
    76         	//RDebug::Printf(" data provider id is %d", );
       
    77 	return iExtnDevPluginCallback->DataProviderFramework();
       
    78 	}
       
    79