widgetmodel/alfwidgetfactory/inc/alfwidgetfactoryplugin.h
changeset 0 e83bab7cf002
equal deleted inserted replaced
-1:000000000000 0:e83bab7cf002
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  Widget factory interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef ALFWIDGETFACTORYPLUGIN_H
       
    20 #define ALFWIDGETFACTORYPLUGIN_H
       
    21 
       
    22 #include <ecom/implementationproxy.h>
       
    23 #include <alf/ialffactoryplugin.h>
       
    24 #include <osn/osndefines.h>
       
    25 
       
    26 namespace Alf
       
    27     {
       
    28 class AlfWidgetFactory;
       
    29 
       
    30 
       
    31 /**
       
    32  *  @class AlfWidgetFactoryPlugin AlfWidgetFactoryPlugin.h "alf/alfwidgetfactoryplugin.h"
       
    33  *
       
    34  *  Plugin factory to create widget factory
       
    35  *
       
    36  *
       
    37  *  @lib alfwidgetfactory.dll
       
    38  *  @since S60 ?S60_version
       
    39  *  @status Draft  
       
    40  */
       
    41 class AlfWidgetFactoryPlugin: public IAlfFactoryPlugin
       
    42     {
       
    43 public:
       
    44 
       
    45     /**
       
    46      * Static Creator Method
       
    47      * @since S60 5.0
       
    48      * @return Interface pointer to factory plugin instance.
       
    49      */    
       
    50     static IAlfFactoryPlugin* NewL();
       
    51 
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     virtual ~AlfWidgetFactoryPlugin();
       
    56     
       
    57 public: // from MAlfPluginFactory    
       
    58     IAlfInterfaceBase* createProduct(const char* aProduct,void* aInitData);
       
    59     int productCount()const;
       
    60     const char* productInfo(int aIndex)const; 
       
    61 public:
       
    62     // from IAlfInterfaceBase
       
    63     virtual IAlfInterfaceBase* makeInterface(const IfId& aType);    
       
    64 private:
       
    65     };
       
    66     } // namespace
       
    67 
       
    68 // Exported factory function required by ECOM-framework
       
    69 OSN_IMPORT const TImplementationProxy* ImplementationGroupProxy(
       
    70                                              TInt& aTableCount);
       
    71     
       
    72 #endif 
       
    73 
       
    74 // End of File