controlpanel/controlpanel_plat/inc/cpsettingformentryitemdataimpl.h
branchRCL_3
changeset 24 8ee96d21d9bf
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
       
     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 CPSETTINGFORMENTRYITEMDATAIMPL_H
       
    19 #define CPSETTINGFORMENTRYITEMDATAIMPL_H
       
    20 
       
    21 #include "cpsettingformentryitemdata.h"
       
    22 
       
    23 
       
    24 /*!
       
    25     \class CpSettingFormEntryItemDataImpl
       
    26     \brief The template class CpSettingFormEntryItemDataImpl provide a defaut implementation of CpSettingFormEntryItemData. 
       
    27     By implementing pure virtual function CpSettingFormEntryItemData::createSettingView.
       
    28  */
       
    29 class CpItemDataHelper;
       
    30 template<typename PLUGIN_VIEW>
       
    31 class CpSettingFormEntryItemDataImpl : public CpSettingFormEntryItemData
       
    32 {
       
    33 public:
       
    34 
       
    35     /*!
       
    36         Construct a new CpSettingFormEntryItemDataImpl with the given text,description and parent.
       
    37     */
       
    38     explicit CpSettingFormEntryItemDataImpl(CpItemDataHelper &itemDataHelper,
       
    39 			const QString &text = QString(),
       
    40             const QString &description = QString(),
       
    41 			const HbIcon &icon = HbIcon(),
       
    42             const HbDataFormModelItem *parent = 0) : 
       
    43             CpSettingFormEntryItemData(itemDataHelper,text,description,icon,parent)
       
    44     { }
       
    45 
       
    46 	/*!
       
    47         Construct a new CpSettingFormEntryItemDataImpl with the given text,description and parent.
       
    48     */
       
    49 	explicit CpSettingFormEntryItemDataImpl(HbDataForm *dataForm,
       
    50 			const QString &text = QString(),
       
    51 	        const QString &description = QString(),
       
    52 			const HbIcon &icon = HbIcon(),
       
    53 			const HbDataFormModelItem *parent = 0) : 
       
    54             CpSettingFormEntryItemData(dataForm,text,description,icon,parent)
       
    55 
       
    56 	{ }
       
    57 	
       
    58 	/*!
       
    59 	    Construct a new CpSettingFormEntryItemData with the given type, text, description, icon name, and parent.
       
    60 	*/
       
    61     explicit CpSettingFormEntryItemDataImpl(
       
    62             EntryItemType type,
       
    63             CpItemDataHelper &itemDataHelper,
       
    64             const QString &text = QString(),
       
    65             const QString &description = QString(),
       
    66             const QString &icon = QString(),
       
    67             const HbDataFormModelItem *parent = 0) : 
       
    68             CpSettingFormEntryItemData(type,itemDataHelper,text,description,icon,parent)
       
    69     { }
       
    70     
       
    71     /*!
       
    72         Construct a new CpSettingFormEntryItemData with the given type, text, description, icon name, and parent.
       
    73     */
       
    74     explicit CpSettingFormEntryItemDataImpl(
       
    75             EntryItemType type,
       
    76             HbDataForm *dataForm,
       
    77             const QString &text = QString(),
       
    78             const QString &description = QString(),
       
    79             const QString &icon = QString(),
       
    80             const HbDataFormModelItem *parent = 0) : 
       
    81             CpSettingFormEntryItemData(type,dataForm,text,description,icon,parent)
       
    82     { }
       
    83 
       
    84     /*!
       
    85          Destructor.
       
    86     */
       
    87     virtual ~CpSettingFormEntryItemDataImpl()
       
    88     { }
       
    89     
       
    90     /*!
       
    91          Implement CpSettingFormEntryItemData::createSettingView
       
    92     */
       
    93     virtual CpBaseSettingView *createSettingView() const
       
    94     { return new PLUGIN_VIEW(); }
       
    95 };
       
    96 
       
    97 #endif  // CP_SETTINGFORM_ENTRY_ITEM_DATA_IMPL_H