equal
deleted
inserted
replaced
30 #include "debugtraces.h" |
30 #include "debugtraces.h" |
31 |
31 |
32 //Localized constants |
32 //Localized constants |
33 #define LOC_SMS_CENTRE_NAME hbTrId("txt_messaging_setlabel_message_centre_name") |
33 #define LOC_SMS_CENTRE_NAME hbTrId("txt_messaging_setlabel_message_centre_name") |
34 #define LOC_SMS_CENTRE_NUMBER hbTrId("txt_messaging_setlabel_message_centre_number") |
34 #define LOC_SMS_CENTRE_NUMBER hbTrId("txt_messaging_setlabel_message_centre_number") |
35 #define LOC_DELETE hbTrId("txt_messaging_button_delete_message_centre") |
35 #define LOC_SMS_CENTRE_DELETE_BUTTON hbTrId("txt_messaging_button_delete_message_centre") |
36 #define LOC_SMS_CENTRE_DELETE hbTrId("txt_messaging_dialog_delete_message_centre") |
36 #define LOC_SMS_CENTRE_DELETE_DIALOG hbTrId("txt_messaging_dialog_delete_message_centre") |
37 #define LOC_MESSAGE_CENTER_SAVED hbTrId("txt_messaging_dpopinfo_message_centre_saved") |
37 #define LOC_MESSAGE_CENTER_SAVED hbTrId("txt_messaging_dpopinfo_message_centre_saved") |
38 |
38 |
39 MsgSMSCenterSettingsForm::MsgSMSCenterSettingsForm(int view, |
39 MsgSMSCenterSettingsForm::MsgSMSCenterSettingsForm(int view, |
40 QGraphicsItem *parent) : |
40 QGraphicsItem *parent) : |
41 HbDataForm(parent), mEdit1(0), mEdit2(0), mView(view) |
41 HbDataForm(parent), mEdit1(0), mEdit2(0), mView(view) |
113 settingsmodel->appendDataFormItem( |
113 settingsmodel->appendDataFormItem( |
114 customButtonGeneral, |
114 customButtonGeneral, |
115 QString(""), |
115 QString(""), |
116 settingsmodel->invisibleRootItem()); |
116 settingsmodel->invisibleRootItem()); |
117 |
117 |
118 deleteMessageCentre->setContentWidgetData("text",LOC_DELETE); |
118 deleteMessageCentre->setContentWidgetData("text",LOC_SMS_CENTRE_DELETE_BUTTON); |
119 this->addConnection(deleteMessageCentre,SIGNAL(clicked()), |
119 this->addConnection(deleteMessageCentre,SIGNAL(clicked()), |
120 this,SLOT(onPressedCustomButton())); |
120 this,SLOT(onPressedCustomButton())); |
121 } |
121 } |
122 |
122 |
123 this->setModel(settingsmodel); |
123 this->setModel(settingsmodel); |
184 } |
184 } |
185 } |
185 } |
186 |
186 |
187 void MsgSMSCenterSettingsForm::onPressedCustomButton() |
187 void MsgSMSCenterSettingsForm::onPressedCustomButton() |
188 { |
188 { |
189 HbMessageBox::question(LOC_SMS_CENTRE_DELETE, this, |
189 HbMessageBox::question(LOC_SMS_CENTRE_DELETE_DIALOG, this, |
190 SLOT(onDialogDeleteMsgCentre(HbAction*)), |
190 SLOT(onDialogDeleteMsgCentre(HbAction*)), |
191 HbMessageBox::Delete | HbMessageBox::Cancel); |
191 HbMessageBox::Delete | HbMessageBox::Cancel); |
192 } |
192 } |
193 |
193 |
194 void MsgSMSCenterSettingsForm::onDialogDeleteMsgCentre(HbAction* action) |
194 void MsgSMSCenterSettingsForm::onDialogDeleteMsgCentre(HbAction* action) |