controlpanel/controlpanel_plat/inc/cpsettingformentryitemdataimpl.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 CP_SETTINGFORM_ENTRY_ITEM_DATA_IMPL_H
       
    19 #define CP_SETTINGFORM_ENTRY_ITEM_DATA_IMPL_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 	/*!
       
    48         Construct a new CpSettingFormEntryItemDataImpl with the given text,description and parent.
       
    49     */
       
    50 	explicit CpSettingFormEntryItemDataImpl(HbDataForm *dataForm,
       
    51 			const QString &text = QString(),
       
    52 	        const QString &description = QString(),
       
    53 			const HbIcon &icon = HbIcon(),
       
    54 			const HbDataFormModelItem *parent = 0) : 
       
    55             CpSettingFormEntryItemData(dataForm,text,description,icon,parent)
       
    56 
       
    57 	{
       
    58 	}
       
    59 
       
    60     /*!
       
    61          Destructor.
       
    62     */
       
    63     virtual ~CpSettingFormEntryItemDataImpl()
       
    64     {
       
    65     }
       
    66     
       
    67     /*!
       
    68          Implement CpSettingFormEntryItemData::createSettingView
       
    69     */
       
    70     virtual CpBaseSettingView *createSettingView() const
       
    71     {
       
    72         return new PLUGIN_VIEW();
       
    73     }
       
    74 };
       
    75 
       
    76 #endif  // CP_SETTINGFORM_ENTRY_ITEM_DATA_IMPL_H