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