phonesettings/cpphonesettingsplugins/divertplugin/src/cpdivertitemdata.cpp
changeset 37 ba76fc04e6c2
child 45 6b911d05207e
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     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 #include "cpdivertitemdata.h"
       
    18 #include "cpdivertselectionitem.h"
       
    19 
       
    20 
       
    21 CpDivertItemData::CpDivertItemData(
       
    22                 HbDataFormModelItem::DataItemType type,
       
    23                 const QString &label,
       
    24                 CpItemDataHelper &helper,
       
    25                 const HbDataFormModelItem *parent) :
       
    26                 CpSettingFormItemData(
       
    27                         static_cast<HbDataFormModelItem::DataItemType>(type),
       
    28                         label, parent ),
       
    29                 m_helper(helper)
       
    30 {
       
    31     m_helper.addConnection(
       
    32         this, SIGNAL(clicked()),
       
    33         this, SLOT(thisItemClicked()));
       
    34 }
       
    35 
       
    36 CpDivertItemData::~CpDivertItemData()
       
    37 {
       
    38 
       
    39 }
       
    40 
       
    41 void CpDivertItemData::thisItemClicked()
       
    42 {
       
    43     emit itemClicked(*this);
       
    44 }
       
    45 
       
    46 
       
    47 // end of file