homescreensrv_plat/hswidgetmodel_api/hswidgetfactory.h
branchRCL_3
changeset 113 0efa10d348c0
equal deleted inserted replaced
111:053c6c7c14f3 113:0efa10d348c0
       
     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:  HsWidget factory.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HSWIDGETFACTORY_H
       
    20 #define HSWIDGETFACTORY_H
       
    21 
       
    22 #include <QObject>
       
    23 #include <hswidgetmodel_global.h>
       
    24 #include <hsiwidgetprovider.h>
       
    25 
       
    26 
       
    27 class QPluginLoader;
       
    28 class HsWidgetFactoryPrivate;
       
    29 
       
    30 class HSWIDGETMODEL_EXPORT HsPluginUnloader: public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35 
       
    36     HsPluginUnloader(QPluginLoader *pluginLoader, QObject *parent = 0);
       
    37     ~HsPluginUnloader();
       
    38 
       
    39 private:
       
    40     QPluginLoader *mPluginLoader;
       
    41 
       
    42 };
       
    43 
       
    44 
       
    45 
       
    46 class HSWIDGETMODEL_EXPORT HsWidgetFactory : public QObject
       
    47 {
       
    48     Q_OBJECT
       
    49 
       
    50 public:
       
    51 
       
    52     HsWidgetFactory(QObject *parent = 0);
       
    53     virtual ~HsWidgetFactory();
       
    54 
       
    55     HsWidget* createWidget(const HsWidgetToken &token);
       
    56 
       
    57 private:
       
    58 
       
    59     Q_DISABLE_COPY(HsWidgetFactory)
       
    60 
       
    61     HsWidgetFactoryPrivate *mD;
       
    62     friend class HsWidgetFactoryPrivate;
       
    63 
       
    64 };
       
    65 
       
    66 
       
    67 
       
    68 
       
    69 #endif