|
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 #ifndef CPCOMMUNICATIONGROUPITEMDATA_H |
|
18 #define CPCOMMUNICATIONGROUPITEMDATA_H |
|
19 |
|
20 #include <cpcategorysettingformitemdata.h> |
|
21 class CpItemDataHelper; |
|
22 class XQSettingsManager; |
|
23 class XQSettingsKey; |
|
24 |
|
25 class CpCommunicationGroupItemData: public CpCategorySettingFormItemData |
|
26 { |
|
27 Q_OBJECT |
|
28 public: |
|
29 explicit CpCommunicationGroupItemData(const QString &configFile = QString(), |
|
30 const HbDataFormModelItem *parent = 0); |
|
31 |
|
32 CpCommunicationGroupItemData(HbDataFormModelItem::DataItemType type, |
|
33 const QString &label, |
|
34 const QString &configFile = QString(), |
|
35 const HbDataFormModelItem *parent = 0); |
|
36 |
|
37 ~CpCommunicationGroupItemData(); |
|
38 private slots: |
|
39 void toggleAirplaneMode(bool toggled); |
|
40 void settingValueChanged(const XQSettingsKey &key, const QVariant &value); |
|
41 private: |
|
42 virtual void beforeLoadingConfigPlugins(CpItemDataHelper &itemDataHelper); |
|
43 private: |
|
44 HbDataFormModelItem *mAirplaneModeItem; |
|
45 XQSettingsManager *mSettingManager; |
|
46 }; |
|
47 #endif /* CPCOMMUNICATIONGROUPITEMDATA_H */ |