alfwidgetutils/inc/alfwidgetfactoryloaderimpl.h
branchRCL_3
changeset 19 4ea6f81c838a
parent 17 514d98f21c43
child 20 0e9bb658ef58
equal deleted inserted replaced
17:514d98f21c43 19:4ea6f81c838a
     1 /*
       
     2 * Copyright (c) 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 plugin loader implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ALFWIDGETFACTORYLOADERIMPL_H
       
    21 #define ALFWIDGETFACTORYLOADERIMPL_H
       
    22 
       
    23 
       
    24 
       
    25 class CAlfEnv;
       
    26 
       
    27 namespace Alf
       
    28     {
       
    29 class IAlfFactoryPlugin;
       
    30 class IAlfWidgetFactory;
       
    31 
       
    32 
       
    33 /**
       
    34  *
       
    35  *  @class AlfWidgetFactoryLoaderImpl AlfWidgetFactoryLoaderImpl.h "alf/alfwidgetfactoryloaderimpl.h"
       
    36  *
       
    37  *  Factory plugin loader loads factory plugins.
       
    38  *
       
    39  *  @lib alfwidgetutils.lib
       
    40  *  @since S60 ?S60_version
       
    41  *  @status Draft 
       
    42  */
       
    43 class AlfWidgetFactoryLoaderImpl
       
    44     {
       
    45 public:  // Constructors and destructor
       
    46 
       
    47     /**
       
    48      * Constructor
       
    49      */
       
    50     AlfWidgetFactoryLoaderImpl();
       
    51 
       
    52     /**
       
    53      * Destructor.
       
    54      */
       
    55     virtual ~AlfWidgetFactoryLoaderImpl();
       
    56 
       
    57 public:
       
    58 
       
    59     /**
       
    60      * Loads a widget factory plugin.
       
    61      *
       
    62      * @since S60 5.0
       
    63      * @return Pointer to IAlfWidgetFactory or NULL. 
       
    64      *         Ownership is not transferred to caller.
       
    65      */
       
    66     IAlfWidgetFactory* load(CAlfEnv& aEnv);
       
    67 
       
    68 private:
       
    69     IAlfFactoryPlugin* mFactoryPlugin;
       
    70     IAlfWidgetFactory* mWidgetFactory;
       
    71     int mDtorKey;
       
    72 
       
    73     };
       
    74     }
       
    75 
       
    76 #endif
       
    77 
       
    78 // End of File