contacts_plat/contacts_ui_extensions_api/inc/cntinfoproviderfactory.h
changeset 61 d30183af6ca6
equal deleted inserted replaced
56:d508aa856878 61:d30183af6ca6
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Factory for info provider plugins to class CntListModel.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CNTINFOPROVIDERFACTORY_H
       
    19 #define CNTINFOPROVIDERFACTORY_H
       
    20 
       
    21 #include <QtPlugin>
       
    22 
       
    23 class CntInfoProvider;
       
    24 
       
    25 /*
       
    26    Factory for info provider plugins.
       
    27    
       
    28    Plugins must be exported to /resource/qt/plugins/contacts/infoproviders
       
    29  */
       
    30 class CntInfoProviderFactory
       
    31 {
       
    32 public:
       
    33     virtual ~CntInfoProviderFactory() {}
       
    34 
       
    35     /* 
       
    36        CntInfoProvider implementation provided by this factory.
       
    37 
       
    38        /return the info provider implementation, ownership is given to the caller
       
    39      */
       
    40     virtual CntInfoProvider* infoProvider() = 0;
       
    41 
       
    42     virtual void* infoProviderFactoryExt( int /*aExtensionId*/ )
       
    43     {
       
    44         return NULL;
       
    45     }
       
    46 };
       
    47 
       
    48 Q_DECLARE_INTERFACE(CntInfoProviderFactory, "com.nokia.contacts.infoproviderfactory/1.0")
       
    49 
       
    50 #endif