mulwidgets/muldatamodel/inc/mulmodelfactoryplugin.h
branchRCL_3
changeset 26 0e9bb658ef58
parent 0 e83bab7cf002
equal deleted inserted replaced
25:4ea6f81c838a 26:0e9bb658ef58
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Plugin factory header for model.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MULMODELFACTORYPLUGIN_H
       
    20 #define MULMODELFACTORYPLUGIN_H
       
    21 
       
    22 #include <ecom/implementationproxy.h>
       
    23 #include <alf/ialffactoryplugin.h>
       
    24 
       
    25 namespace Alf
       
    26     {
       
    27 
       
    28 class IfId;
       
    29 
       
    30 /**
       
    31  * Factory plugin for creating list widget related products.
       
    32  */
       
    33 class MulFactoryPlugin: public IAlfFactoryPlugin
       
    34     {
       
    35 public:
       
    36 
       
    37    /**
       
    38     * Two-phased symbian constructor.
       
    39     * 
       
    40     * @return New instance of this factory plugin.
       
    41     */ 
       
    42     static MulFactoryPlugin* NewL();
       
    43 
       
    44    /**
       
    45     * Destructor.
       
    46     */ 
       
    47     virtual ~MulFactoryPlugin();
       
    48     
       
    49 // From base class MAlfPluginFactory
       
    50 
       
    51    /**
       
    52     * Create factory product.
       
    53 	*
       
    54     * @param aProduct Product to create.
       
    55     * @param aInitData Initialization data for product
       
    56     * @return Instance or NULL
       
    57     */ 
       
    58     IAlfInterfaceBase* createProduct( const char* aProduct, void* aInitData );
       
    59 
       
    60    /**
       
    61     * Count available products
       
    62     *
       
    63     * @return Product count
       
    64     */
       
    65     int productCount() const;
       
    66 
       
    67    /**
       
    68     * Fetch product info by index
       
    69     *
       
    70     * @param aIndex List index
       
    71     * @return Descriptor describing product
       
    72     */
       
    73     const char* productInfo( int aIndex ) const;
       
    74     
       
    75 // From base class MAlfInterfaceBase
       
    76 
       
    77    /**
       
    78     * Creates interface based on the given type.
       
    79     * 
       
    80     * @param aType Interface type to create.
       
    81     * @return Requested interface.
       
    82     */ 
       
    83     IAlfInterfaceBase* makeInterface( const IfId& aType );
       
    84     };
       
    85     
       
    86     } // namespace Alf
       
    87 
       
    88 // Exported factory function required by ECOM-framework
       
    89 IMPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount );
       
    90     
       
    91 #endif //MULMODELFACTORYPLUGIN_H
       
    92 
       
    93 //End of file
       
    94