contacts_plat/contacts_ui_extensions_api/inc/cntinfoproviderfactory.h
changeset 61 d30183af6ca6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contacts_plat/contacts_ui_extensions_api/inc/cntinfoproviderfactory.h	Mon Aug 23 16:06:28 2010 +0300
@@ -0,0 +1,50 @@
+/*
+* 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