mtpfws/mtpfw/dataproviders/devdp/devdpextnapi/interface/cmtpextndevdp.h
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 // Defines the MTP Device dp extension data provider ECOM plug-in service provider 
       
    15 // interface.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef CMTPDEVDPEXTN_H
       
    26 #define CMTPDEVDPEXTN_H
       
    27 
       
    28 #include <e32debug.h>
       
    29 #include <mtp/mtpdataproviderapitypes.h>
       
    30 #include <mtp/mmtpdevdpextn.h>
       
    31 #include <mtp/mmtpdataproviderframework.h>
       
    32 
       
    33 class MExtnDevPluginCallback;
       
    34 	
       
    35 /** 
       
    36 Those who are implementing "MExtnDevicePropDp" interface as ecom plugin,
       
    37 should use 0x20010ADA as the interface UID in ECOM resource file.
       
    38 */
       
    39 const TUid KMTPExtnDevDpPluginInterfaceUid = {0x20010ADA};
       
    40 
       
    41 
       
    42 class CMtpExtnDevicePropPlugin : public CBase, public MExtnDevicePropDp
       
    43 {
       
    44 
       
    45 public:
       
    46 /**
       
    47 loads the plugin having implementation uid as aUid 
       
    48 */
       
    49 	IMPORT_C static CMtpExtnDevicePropPlugin* NewL(TUid aUid );
       
    50 
       
    51 	IMPORT_C ~CMtpExtnDevicePropPlugin();
       
    52 
       
    53 	IMPORT_C TInt  GetDevPropertyL (const TMTPDevicePropertyCode /*aPropCode*/, MMTPType**);
       
    54 
       
    55 	IMPORT_C TInt GetDevPropertyDescL (const TMTPDevicePropertyCode /*aPropCode*/, MMTPType**);
       
    56 
       
    57 	IMPORT_C TInt GetDevicePropertyContainerL(TMTPDevicePropertyCode /*aPropCode*/, MMTPType**);
       
    58 
       
    59 	IMPORT_C TMTPResponseCode SetDevicePropertyL();
       
    60 
       
    61 	IMPORT_C void Supported (TMTPSupportCategory /*aCategory*/, RArray <TUint>& /*aArray*/ ,TMTPOperationalMode /*aMode*/);
       
    62 
       
    63 	IMPORT_C TInt ResetDevPropertyL(const TMTPDevicePropertyCode aPropCode);
       
    64 
       
    65 
       
    66 	IMPORT_C void SetCallback(MExtnDevPluginCallback& aExtnDevPluginCallback);
       
    67 
       
    68 	IMPORT_C void NotifyOnDevicePropertyChanged (TMTPDevicePropertyCode& aPropCode);
       
    69 
       
    70 	/**
       
    71 	* This method return mtpframework
       
    72 	*/
       
    73 	IMPORT_C MMTPDataProviderFramework& Framework( ) const;
       
    74  
       
    75 private:
       
    76 	MExtnDevPluginCallback* iExtnDevPluginCallback;
       
    77 
       
    78 	TUid                        iDtorIdKey;
       
    79 };
       
    80 
       
    81 #endif //
       
    82 
       
    83 
       
    84 
       
    85 
       
    86 
       
    87