mulwidgets/mulsliderwidget/inc/mulsliderwidgetfactoryplugin.h
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     1 /*
       
     2 * Copyright (c) 2009 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 plugin for slider widget.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MUL_SLIDERWIDGETFACTORYPLUGIN_H
       
    19 #define MUL_SLIDERWIDGETFACTORYPLUGIN_H
       
    20 
       
    21 // Includes
       
    22 #include <ecom/implementationproxy.h>
       
    23 #include <alf/ialffactoryplugin.h>
       
    24 #include <osn/osndefines.h>
       
    25 #include "mulslidervertical.h"
       
    26 
       
    27 enum ESliderProductInfo
       
    28     {
       
    29     ESliderWidget,
       
    30     
       
    31     ESliderModel,
       
    32       
       
    33     ESliderHorizontalElement,
       
    34        
       
    35     ESliderVerticalElement,
       
    36      
       
    37     ESliderProgressbarElement
       
    38     };
       
    39 namespace Alf
       
    40     {
       
    41 
       
    42 class IfId;
       
    43 
       
    44     /**
       
    45      *  Plugin factory to create widget factory
       
    46      *
       
    47      *  @lib alfwidgetfactory.dll
       
    48      *  @since S60 5.0
       
    49      */
       
    50 class MulSliderWidgetFactoryPlugin: public IAlfFactoryPlugin
       
    51     {
       
    52 
       
    53 public:
       
    54 
       
    55     /**
       
    56      * Two-phased Symbian constructor.
       
    57      */
       
    58     static MulSliderWidgetFactoryPlugin* NewL();
       
    59 
       
    60     /**
       
    61      * Destructor 
       
    62      */
       
    63     virtual ~MulSliderWidgetFactoryPlugin();
       
    64 
       
    65     // from IAlfFactoryPlugin
       
    66 
       
    67     /**
       
    68      * Create factory product.
       
    69      * @since Series 60 5.0
       
    70      * @param aProduct Product to create.
       
    71      * @param aInitData Initialization data for product
       
    72      * @return Instance or NULL
       
    73      */
       
    74     IAlfInterfaceBase* createProduct ( const char* aProduct, void* aInitData );
       
    75 
       
    76     /**
       
    77      * Count available products
       
    78      *
       
    79      * @since S60 5.0
       
    80      * @return Product count
       
    81      */
       
    82     int productCount() const;
       
    83 
       
    84     /**
       
    85      * Fetch product info by index
       
    86      *
       
    87      * @param aIndex List index
       
    88      * @since S60 5.0
       
    89      * @return Descriptor describing product
       
    90      */
       
    91     const char* productInfo ( int aIndex ) const;
       
    92 
       
    93     /**
       
    94      * From IAlfInterfaceBase.
       
    95      * Creates interface based on the given type.
       
    96      */
       
    97     IAlfInterfaceBase* makeInterface ( const IfId& aType );
       
    98     };
       
    99 
       
   100     } // namespace Alf
       
   101 
       
   102     /**
       
   103      * Exported factory function required by ECOM-framework
       
   104      */
       
   105     OSN_IMPORT const TImplementationProxy* ImplementationGroupProxy( 
       
   106         TInt& aTableCount );
       
   107 
       
   108 #endif //MUL_SLIDERWIDGETFACTORYPLUGIN_H
       
   109 //End Of File