|
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 "cntsettingsview.h" |
|
18 #include <hbdataformmodelitem.h> |
|
19 #include <hbglobal.h> |
|
20 |
|
21 CntDefaultSettingsModel::CntDefaultSettingsModel() |
|
22 { |
|
23 QStringList orderList; |
|
24 orderList.append( hbTrId("txt_phob_setlabel_name_display_order_val_last_name") ); |
|
25 orderList.append( hbTrId("txt_phob_setlabel_name_display_order_val_last_name_separator") ); |
|
26 orderList.append( hbTrId("txt_phob_setlabel_name_display_order_val_first_nam") ); |
|
27 /* |
|
28 QStringList showList; |
|
29 showList.append(hbTrId("txt_phob_setlabel_show_val_status_update")); |
|
30 showList.append(hbTrId("txt_phob_setlabel_show_val_name_and_phonenumber")); |
|
31 showList.append(hbTrId("txt_phob_setlabel_show_val_name_only")); |
|
32 */ |
|
33 mOrder = new HbDataFormModelItem(HbDataFormModelItem::ComboBoxItem, hbTrId("txt_phob_setlabel_name_display_order")); |
|
34 mOrder->setContentWidgetData( "items", orderList ); |
|
35 |
|
36 /* |
|
37 HbDataFormModelItem* show = new HbDataFormModelItem( HbDataFormModelItem::ComboBoxItem, hbTrId("txt_phob_setlabel_show") ); |
|
38 show->setContentWidgetData( "items", showList ); |
|
39 */ |
|
40 |
|
41 appendDataFormItem( mOrder, invisibleRootItem() ); |
|
42 /* appendDataFormItem( show, invisibleRootItem() ); |
|
43 */ |
|
44 } |
|
45 |
|
46 CntDefaultSettingsModel::~CntDefaultSettingsModel() |
|
47 { |
|
48 |
|
49 } |
|
50 |
|
51 void CntDefaultSettingsModel::saveSettings() |
|
52 { |
|
53 QString selected = mOrder->contentWidgetData( "currentText" ).toString(); |
|
54 |
|
55 } |
|
56 |
|
57 void CntDefaultSettingsModel::loadSettings() |
|
58 { |
|
59 mOrder->setContentWidgetData("currentText", hbTrId("txt_phob_setlabel_name_display_order_val_last_name_separator") ); |
|
60 } |
|
61 // End of File |