mtpfws/mtpfw/dataproviders/dataproviderapi/interface/cmtpdataproviderplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:11:40 +0200
changeset 0 d0791faffa3f
permissions -rw-r--r--
Revision: 201003 Kit: 201005

// Copyright (c) 2006-2009 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:
//

/**
 @file
 @publishedPartner
 @released
*/

#ifndef CMTPDATAPROVIDERPLUGIN_H
#define CMTPDATAPROVIDERPLUGIN_H

#include <e32base.h>
#include <mtp/mmtpdataprovider.h>
#include <mtp/mtpdataproviderapitypes.h>

class MMTPDataProviderFramework;

/** 
CMTPDataProviderPlugin interface UID.
*/
const TUid KMTPDataProviderPluginInterfaceUid = {0x102827AD};

/** 
Defines the MTP data provider ECOM plug-in service provider 
interface.
@publishedPartner
@released
*/
class CMTPDataProviderPlugin : 
    public CBase, 
    public MMTPDataProvider
    {
    
public:

    IMPORT_C static CMTPDataProviderPlugin* NewL(TUid aImplementationUid, TAny* aParams);
    IMPORT_C virtual ~CMTPDataProviderPlugin();

protected: // From MMTPDataProvider

    IMPORT_C MMTPDataProviderFramework& Framework() const;
    
protected:

    IMPORT_C CMTPDataProviderPlugin(TAny* aParams);

private: // Owned

    TUid                        iDtorIdKey;
    
private: // Not owned
    
    MMTPDataProviderFramework*  iFramework;
    };
    
#endif // CMTPDATAPROVIDERPLUGIN_H