diff -r 051d34a3f367 -r 2c9d3aa5bea2 controlpanel/controlpanel_plat/inc/cppluginplatinterface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanel/controlpanel_plat/inc/cppluginplatinterface.h Thu Apr 01 03:17:51 2010 +0800 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CPPLUGINPLATINTERFACE_H +#define CPPLUGINPLATINTERFACE_H + +#include + +/*! + \class CpPluginPlatInterface + \brief The class CpPluginPlatInterface is an interface for plugins which can be displayed in control panel application. + */ + +class CpSettingFormItemData; +class CpItemDataHelper; + +class CpPluginPlatInterface +{ +public: + /*! + Destructor of CpPluginPlatInterface. + */ + virtual ~CpPluginPlatInterface() + { + } + + /*! + Create a data form mode item, by which the control panel framework can build a data form model. + */ + virtual CpSettingFormItemData *createSettingFormItemData(CpItemDataHelper &itemDataHelper) const = 0; +}; + +Q_DECLARE_INTERFACE(CpPluginPlatInterface, "com.nokia.plugin.controlpanel.platform.interface/1.0"); + +#endif /* CPPLUGINPLATINTERFACE_H */