controlpanel/controlpanel_plat/inc/cppluginplatinterface.h
changeset 18 e3554c9069b6
child 21 851e19007849
equal deleted inserted replaced
4:3f8368f032cf 18:e3554c9069b6
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPPLUGINPLATINTERFACE_H
       
    19 #define CPPLUGINPLATINTERFACE_H
       
    20 
       
    21 #include <qtplugin>
       
    22 
       
    23 /*!
       
    24     \class CpPluginPlatInterface
       
    25     \brief The class CpPluginPlatInterface is an interface for plugins which can be displayed in control panel application. 
       
    26  */
       
    27 
       
    28 class CpSettingFormItemData;
       
    29 class CpItemDataHelper;
       
    30 
       
    31 class CpPluginPlatInterface
       
    32 {
       
    33 public:
       
    34     /*!
       
    35      Destructor of CpPluginPlatInterface.
       
    36      */
       
    37     virtual ~CpPluginPlatInterface()
       
    38     {
       
    39     }
       
    40     
       
    41     /*!
       
    42      Create a data form mode item, by which the control panel framework can build a data form model.
       
    43      */
       
    44     virtual CpSettingFormItemData *createSettingFormItemData(CpItemDataHelper &itemDataHelper) const = 0;
       
    45 };
       
    46 
       
    47 Q_DECLARE_INTERFACE(CpPluginPlatInterface, "com.nokia.plugin.controlpanel.platform.interface/1.0");
       
    48 
       
    49 #endif /* CPPLUGINPLATINTERFACE_H */