17 #include "cpdivertitemdata.h" |
17 #include "cpdivertitemdata.h" |
18 #include "cpdivertselectionitem.h" |
18 #include "cpdivertselectionitem.h" |
19 |
19 |
20 |
20 |
21 CpDivertItemData::CpDivertItemData( |
21 CpDivertItemData::CpDivertItemData( |
22 PsCallDivertingCondition condition, |
22 HbDataFormModelItem::DataItemType type, |
23 PsServiceGroup serviceGroup, |
|
24 const QString &label, |
23 const QString &label, |
25 const QString &queryLabel, |
|
26 bool needTimeoutInfo, |
|
27 CpItemDataHelper &helper, |
24 CpItemDataHelper &helper, |
28 const HbDataFormModelItem *parent) : |
25 const HbDataFormModelItem *parent) : |
29 CpSettingFormItemData( |
26 CpSettingFormItemData( |
30 static_cast<HbDataFormModelItem::DataItemType>( |
27 static_cast<HbDataFormModelItem::DataItemType>(type), |
31 CpDivertSelectionItem::CpDivertSelectionItemId), |
|
32 label, parent ), |
28 label, parent ), |
33 m_serviceGroup(serviceGroup), |
|
34 m_condition(condition), |
|
35 m_queryLabel(queryLabel), |
|
36 m_needTimeoutInfo(needTimeoutInfo), |
|
37 m_helper(helper) |
29 m_helper(helper) |
38 { |
30 { |
39 m_helper.addConnection( |
31 m_helper.addConnection( |
40 this, SIGNAL(clicked()), |
32 this, SIGNAL(clicked()), |
41 this, SLOT(thisItemClicked())); |
33 this, SLOT(thisItemClicked())); |
44 CpDivertItemData::~CpDivertItemData() |
36 CpDivertItemData::~CpDivertItemData() |
45 { |
37 { |
46 |
38 |
47 } |
39 } |
48 |
40 |
49 PsServiceGroup CpDivertItemData::service() |
|
50 { |
|
51 return m_serviceGroup; |
|
52 } |
|
53 |
|
54 PsCallDivertingCondition CpDivertItemData::condition() |
|
55 { |
|
56 return m_condition; |
|
57 } |
|
58 |
|
59 QString CpDivertItemData::queryLabel() |
|
60 { |
|
61 return m_queryLabel; |
|
62 } |
|
63 |
|
64 bool CpDivertItemData::needTimeoutInfo() |
|
65 { |
|
66 return m_needTimeoutInfo; |
|
67 } |
|
68 |
|
69 void CpDivertItemData::thisItemClicked() |
41 void CpDivertItemData::thisItemClicked() |
70 { |
42 { |
71 emit itemClicked(*this); |
43 emit itemClicked(*this); |
72 } |
44 } |
73 |
45 |
|
46 |
74 // end of file |
47 // end of file |