contacts_plat/contacts_ui_extensions_api/inc/cntinfoproviderfactory.h
author hgs
Mon, 23 Aug 2010 16:06:28 +0300
changeset 61 d30183af6ca6
permissions -rw-r--r--
201033

/*
* Copyright (c) 2010 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: Factory for info provider plugins to class CntListModel.
*
*/

#ifndef CNTINFOPROVIDERFACTORY_H
#define CNTINFOPROVIDERFACTORY_H

#include <QtPlugin>

class CntInfoProvider;

/*
   Factory for info provider plugins.
   
   Plugins must be exported to /resource/qt/plugins/contacts/infoproviders
 */
class CntInfoProviderFactory
{
public:
    virtual ~CntInfoProviderFactory() {}

    /* 
       CntInfoProvider implementation provided by this factory.

       /return the info provider implementation, ownership is given to the caller
     */
    virtual CntInfoProvider* infoProvider() = 0;

    virtual void* infoProviderFactoryExt( int /*aExtensionId*/ )
    {
        return NULL;
    }
};

Q_DECLARE_INTERFACE(CntInfoProviderFactory, "com.nokia.contacts.infoproviderfactory/1.0")

#endif