|
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 PsCallDivertingCondition condition, |
|
23 PsServiceGroup serviceGroup, |
|
24 const QString &label, |
|
25 const QString &queryLabel, |
|
26 bool needTimeoutInfo, |
|
27 CpItemDataHelper &helper, |
|
28 const HbDataFormModelItem *parent) : |
|
29 CpSettingFormItemData( |
|
30 static_cast<HbDataFormModelItem::DataItemType>( |
|
31 CpDivertSelectionItem::CpDivertSelectionItemId), |
|
32 label, parent ), |
|
33 m_serviceGroup(serviceGroup), |
|
34 m_condition(condition), |
|
35 m_queryLabel(queryLabel), |
|
36 m_needTimeoutInfo(needTimeoutInfo), |
|
37 m_helper(helper) |
|
38 { |
|
39 m_helper.addConnection( |
|
40 this, SIGNAL(clicked()), |
|
41 this, SLOT(thisItemClicked())); |
|
42 } |
|
43 |
|
44 CpDivertItemData::~CpDivertItemData() |
|
45 { |
|
46 |
|
47 } |
|
48 |
|
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() |
|
70 { |
|
71 emit itemClicked(*this); |
|
72 } |
|
73 |
|
74 // end of file |