mtpfws/mtpfw/dataproviders/dataproviderapi/interface/cmtpdataproviderplugin.h
changeset 0 d0791faffa3f
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-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 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef CMTPDATAPROVIDERPLUGIN_H
       
    23 #define CMTPDATAPROVIDERPLUGIN_H
       
    24 
       
    25 #include <e32base.h>
       
    26 #include <mtp/mmtpdataprovider.h>
       
    27 #include <mtp/mtpdataproviderapitypes.h>
       
    28 
       
    29 class MMTPDataProviderFramework;
       
    30 
       
    31 /** 
       
    32 CMTPDataProviderPlugin interface UID.
       
    33 */
       
    34 const TUid KMTPDataProviderPluginInterfaceUid = {0x102827AD};
       
    35 
       
    36 /** 
       
    37 Defines the MTP data provider ECOM plug-in service provider 
       
    38 interface.
       
    39 @publishedPartner
       
    40 @released
       
    41 */
       
    42 class CMTPDataProviderPlugin : 
       
    43     public CBase, 
       
    44     public MMTPDataProvider
       
    45     {
       
    46     
       
    47 public:
       
    48 
       
    49     IMPORT_C static CMTPDataProviderPlugin* NewL(TUid aImplementationUid, TAny* aParams);
       
    50     IMPORT_C virtual ~CMTPDataProviderPlugin();
       
    51 
       
    52 protected: // From MMTPDataProvider
       
    53 
       
    54     IMPORT_C MMTPDataProviderFramework& Framework() const;
       
    55     
       
    56 protected:
       
    57 
       
    58     IMPORT_C CMTPDataProviderPlugin(TAny* aParams);
       
    59 
       
    60 private: // Owned
       
    61 
       
    62     TUid                        iDtorIdKey;
       
    63     
       
    64 private: // Not owned
       
    65     
       
    66     MMTPDataProviderFramework*  iFramework;
       
    67     };
       
    68     
       
    69 #endif // CMTPDATAPROVIDERPLUGIN_H