66 QMap<PhoneAction::ActionType, PhoneAction *> translatedActions; |
66 QMap<PhoneAction::ActionType, PhoneAction *> translatedActions; |
67 |
67 |
68 switch (symbianResourceId) { |
68 switch (symbianResourceId) { |
69 |
69 |
70 case R_PHONEUI_MTCAL_INCOMING_CALL: |
70 case R_PHONEUI_MTCAL_INCOMING_CALL: |
|
71 { |
|
72 PhoneAction *text = new PhoneAction; |
|
73 text->setText(hbTrId("txt_phone_other_incoming_call")); |
|
74 translatedActions[PhoneAction::Text] = text; |
|
75 } |
|
76 break; |
71 case R_PHONEUI_VIDEO_CALL_INCOMING: |
77 case R_PHONEUI_VIDEO_CALL_INCOMING: |
72 { |
78 { |
73 PhoneAction *text = new PhoneAction; |
79 PhoneAction *text = new PhoneAction; |
74 text->setText (hbTrId("txt_phone_other_incoming_call")); |
80 text->setText (hbTrId("txt_phone_other_incoming_video_call")); |
75 translatedActions [PhoneAction::Text] = text; |
81 translatedActions [PhoneAction::Text] = text; |
76 } |
82 } |
77 break; |
83 break; |
78 |
84 |
79 case R_PHONEUI_INCALL_CALL_DISCONNECTED: |
85 case R_PHONEUI_INCALL_CALL_DISCONNECTED: |
96 { |
102 { |
97 PhoneAction *text = new PhoneAction; |
103 PhoneAction *text = new PhoneAction; |
98 text->setText (hbTrId("txt_phone_other_waiting")); |
104 text->setText (hbTrId("txt_phone_other_waiting")); |
99 translatedActions [PhoneAction::Text] = text; |
105 translatedActions [PhoneAction::Text] = text; |
100 } |
106 } |
101 break; |
107 break; |
102 |
|
103 |
108 |
104 case R_PHONEUI_TIME_DURAT_LONG_WITH_ZERO: |
109 case R_PHONEUI_TIME_DURAT_LONG_WITH_ZERO: |
105 { |
110 { |
106 PhoneAction *text = new PhoneAction; |
111 PhoneAction *text = new PhoneAction; |
107 // Symbian modifier used here: %:0%H%:1%T%:2%S%:3 |
112 // Symbian modifier used here: %:0%H%:1%T%:2%S%:3 |
108 // This is because this text is used by Symbian localization |
113 // This is because this text is used by Symbian localization |
109 // for formatting later on. |
114 // for formatting later on. |
110 text->setText ("%:0%H%:1%T%:2%S%:3"); |
115 text->setText ("%:0%H%:1%T%:2%S%:3"); |
111 translatedActions [PhoneAction::Text] = text; |
116 translatedActions [PhoneAction::Text] = text; |
112 break; |
117 } |
113 } |
118 break; |
114 |
119 |
115 case R_PHONEUI_OUT_GOING_CALL: |
120 case R_PHONEUI_OUT_GOING_CALL: |
|
121 { |
|
122 PhoneAction *text = new PhoneAction; |
|
123 text->setText (hbTrId("txt_phone_other_calling")); |
|
124 translatedActions [PhoneAction::Text] = text; |
|
125 } |
|
126 break; |
116 case R_PHONEUI_OUT_GOING_VIDEO_CALL: |
127 case R_PHONEUI_OUT_GOING_VIDEO_CALL: |
117 { |
128 { |
118 PhoneAction *text = new PhoneAction; |
129 PhoneAction *text = new PhoneAction; |
119 text->setText (hbTrId("txt_phone_other_calling")); |
130 text->setText (hbTrId("txt_phone_other_calling_video_call")); |
120 translatedActions [PhoneAction::Text] = text; |
131 translatedActions [PhoneAction::Text] = text; |
121 break; |
132 } |
122 } |
133 break; |
123 |
134 |
124 case R_PHONEUI_MTCAL_CLI_WITHHELD: |
135 case R_PHONEUI_MTCAL_CLI_WITHHELD: |
125 { |
136 { |
126 PhoneAction *text = new PhoneAction; |
137 PhoneAction *text = new PhoneAction; |
127 text->setText (hbTrId("txt_phone_other_private_number")); |
138 text->setText (hbTrId("txt_phone_other_private_number")); |
128 translatedActions [PhoneAction::Text] = text; |
139 translatedActions [PhoneAction::Text] = text; |
129 break; |
140 } |
130 } |
141 break; |
131 case R_PHONEUI_MTCAL_CLI_UNKNOWN: |
142 case R_PHONEUI_MTCAL_CLI_UNKNOWN: |
132 { |
143 { |
133 PhoneAction *text = new PhoneAction; |
144 PhoneAction *text = new PhoneAction; |
134 text->setText (hbTrId("txt_phone_other_unknown_number")); |
145 text->setText (hbTrId("txt_phone_other_unknown_number")); |
135 translatedActions [PhoneAction::Text] = text; |
146 translatedActions [PhoneAction::Text] = text; |
136 break; |
147 } |
137 } |
148 break; |
138 |
|
139 case R_PHONE_MTCAL_CLI_PAYPHONE: |
149 case R_PHONE_MTCAL_CLI_PAYPHONE: |
140 { |
150 { |
141 PhoneAction *text = new PhoneAction; |
151 PhoneAction *text = new PhoneAction; |
142 text->setText (hbTrId("Payphone number")); |
152 text->setText (hbTrId("Payphone number")); |
143 translatedActions [PhoneAction::Text] = text; |
153 translatedActions [PhoneAction::Text] = text; |
144 break; |
154 } |
145 } |
155 break; |
146 |
156 |
147 case R_PHONEUI_EMERGENCY_CALL_HEADER: |
157 case R_PHONEUI_EMERGENCY_CALL_HEADER: |
148 { |
158 { |
149 PhoneAction *text = new PhoneAction; |
159 PhoneAction *text = new PhoneAction; |
150 text->setText (hbTrId("txt_phone_other_emergency_call")); |
160 text->setText (hbTrId("txt_phone_other_emergency_call")); |
151 translatedActions [PhoneAction::Text] = text; |
161 translatedActions [PhoneAction::Text] = text; |
152 break; |
162 } |
153 } |
163 break; |
154 |
164 |
155 case R_PHONEUI_EMERGENCY_CALL_BUTTONS: |
|
156 { |
|
157 PhoneAction *button = new PhoneAction; |
|
158 button->setText (hbTrId("txt_phone_button_end_call")); |
|
159 button->setIcon (HbIcon("qtg_mono_end_call")); |
|
160 button->setCommand (EPhoneCmdEnd); |
|
161 translatedActions [PhoneAction::LeftButton] = button; |
|
162 } |
|
163 break; |
|
164 |
|
165 case R_PHONEUI_ATTEMPTING_EMERGENCY_CALL_TEXT: |
165 case R_PHONEUI_ATTEMPTING_EMERGENCY_CALL_TEXT: |
166 { |
166 { |
167 PhoneAction *text = new PhoneAction; |
167 PhoneAction *text = new PhoneAction; |
168 text->setText (hbTrId("txt_phone_other_attempting")); |
168 text->setText (hbTrId("txt_phone_other_attempting")); |
169 translatedActions [PhoneAction::Text] = text; |
169 translatedActions [PhoneAction::Text] = text; |