controlpanel/controlpanel_plat/inc/cpplugininterface.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 24 8ee96d21d9bf
child 26 e78c61e77b1a
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
     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:  Interface for controlpanel plugins.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPPLUGININTERFACE_H
       
    19 #define CPPLUGININTERFACE_H
       
    20 
       
    21 #include <QtPlugin>
       
    22 #include <QList>
       
    23 
       
    24 /*!
       
    25     \class CpPluginInterface
       
    26     \brief The class CpPluginInterface is an interface for controlpanel plugins.
       
    27  */
       
    28 
       
    29 class CpSettingFormItemData;
       
    30 class CpItemDataHelper;
       
    31 
       
    32 class CpPluginInterface
       
    33 {
       
    34 public:
       
    35     /*!
       
    36      Destructor of CpPluginInterface.
       
    37      */
       
    38     virtual ~CpPluginInterface()
       
    39     {
       
    40     }
       
    41     
       
    42     /*!
       
    43      Create a set of data form mode item, by which the control panel framework can build a data form model.
       
    44      */
       
    45     virtual QList<CpSettingFormItemData*> createSettingFormItemData(CpItemDataHelper &itemDataHelper) const = 0;
       
    46 };
       
    47 
       
    48 Q_DECLARE_INTERFACE(CpPluginInterface, "com.nokia.controlpanel.plugin.interface/1.0");
       
    49 
       
    50 #endif /* CPPLUGININTERFACE_H */