77 qDebug("SATAPP: SatAppConfirmProvider::ConfirmCommand:\ |
77 qDebug("SATAPP: SatAppConfirmProvider::ConfirmCommand:\ |
78 Quering SetUpCall"); |
78 Quering SetUpCall"); |
79 showSetUpCallConfirm(action); |
79 showSetUpCallConfirm(action); |
80 break; |
80 break; |
81 } |
81 } |
82 // TODO: implemente later |
82 case ESatSLaunchBrowserQuery: |
|
83 { |
|
84 showLaunchBrowserConfirm(action); |
|
85 break; |
|
86 } |
|
87 // Shown only when Confirm SIM services setting enabled, |
|
88 // setting not supported on this code line. |
83 case ESatSRefreshQuery: |
89 case ESatSRefreshQuery: |
84 // TODO: implemente later |
|
85 case ESatSLaunchBrowserQuery: |
|
86 { |
|
87 action.completeWithNoResponse(); |
|
88 break; |
|
89 } |
|
90 default: |
90 default: |
91 { |
91 { |
92 qDebug("SATAPP: SatAppConfirmProvider::ConfirmCommand:\ |
92 qDebug("SATAPP: SatAppConfirmProvider::ConfirmCommand:\ |
93 Unknown quering command"); |
93 Unknown quering command"); |
94 action.completeWithNoResponse(); |
94 action.completeWithNoResponse(); |
160 mConfirmQuery->open(); |
160 mConfirmQuery->open(); |
161 qDebug("SATAPP: SatAppConfirmProvider::showSetUpCallConfirm <"); |
161 qDebug("SATAPP: SatAppConfirmProvider::showSetUpCallConfirm <"); |
162 } |
162 } |
163 |
163 |
164 // ---------------------------------------------------------------------------- |
164 // ---------------------------------------------------------------------------- |
|
165 // SatAppConfirmProvider::showLaunchBrowserConfirm |
|
166 // ---------------------------------------------------------------------------- |
|
167 // |
|
168 void SatAppConfirmProvider::showLaunchBrowserConfirm(SatAppAction &action) |
|
169 { |
|
170 qDebug("SATAPP: SatAppConfirmProvider::showLaunchBrowserConfirm >"); |
|
171 QString text = action.value(KeyText).toString(); |
|
172 if (!text.length()){ |
|
173 text = hbTrId("txt_simatk_dialog_openbrowser"); |
|
174 } |
|
175 mConfirmQuery = new HbMessageBox(HbMessageBox::MessageTypeQuestion); |
|
176 // Sets the "Yes"-action/button |
|
177 mConfirmQuery->setText(text); |
|
178 mConfirmQuery->setStandardButtons(HbMessageBox::Ok | HbMessageBox::Cancel); |
|
179 SAT_ASSERT(connect(mConfirmQuery->actions().at(0), SIGNAL(triggered()), |
|
180 &action, SLOT(completeWithSuccess()))); |
|
181 SAT_ASSERT(connect(mConfirmQuery->actions().at(1), SIGNAL(triggered()), |
|
182 &action, SLOT(completeWithBackRequested()))); |
|
183 SAT_ASSERT(connect(mAction, SIGNAL(actionCompleted(SatAppAction *)), |
|
184 this, SLOT(resetState()))); |
|
185 qDebug("SATAPP: SatAppUiProvider::showLaunchBrowserConfirm before open"); |
|
186 mConfirmQuery->open(); |
|
187 qDebug("SATAPP: SatAppConfirmProvider::showLaunchBrowserConfirm <"); |
|
188 } |
|
189 |
|
190 // ---------------------------------------------------------------------------- |
165 // SatAppConfirmProvider::clearScreen |
191 // SatAppConfirmProvider::clearScreen |
166 // ---------------------------------------------------------------------------- |
192 // ---------------------------------------------------------------------------- |
167 // |
193 // |
168 void SatAppConfirmProvider::clearScreen() |
194 void SatAppConfirmProvider::clearScreen() |
169 { |
195 { |