113 // ----------------------------------------------------------------------------- |
113 // ----------------------------------------------------------------------------- |
114 // |
114 // |
115 void IAUpdateEngine::StartedByLauncherL(bool aRefreshFromNetworkDenied) |
115 void IAUpdateEngine::StartedByLauncherL(bool aRefreshFromNetworkDenied) |
116 { |
116 { |
117 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::StartedByLauncherL() begin"); |
117 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::StartedByLauncherL() begin"); |
|
118 emit createUI(); |
118 mRequestIssued = true; |
119 mRequestIssued = true; |
119 mRequestType = IAUpdateUiDefines::ENoRequest; |
120 mRequestType = IAUpdateUiDefines::ENoRequest; |
120 iController->SetRequestType(mRequestType); |
121 iController->SetRequestType(mRequestType); |
121 SetVisibleL(true); |
122 SetVisibleL(true); |
122 CIAUpdateParameters* params = iController->ParamsReadAndRemoveFileL(); |
123 CIAUpdateParameters* params = iController->ParamsReadAndRemoveFileL(); |
164 // |
165 // |
165 void IAUpdateEngine::ShowUpdatesRequestL(int wgid, |
166 void IAUpdateEngine::ShowUpdatesRequestL(int wgid, |
166 CIAUpdateParameters* aFilterParams) |
167 CIAUpdateParameters* aFilterParams) |
167 { |
168 { |
168 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::ShowUpdatesRequestL() begin"); |
169 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::ShowUpdatesRequestL() begin"); |
|
170 emit createUI(); |
169 SetClientWgId(wgid); |
171 SetClientWgId(wgid); |
170 mRequestIssued = true; |
172 mRequestIssued = true; |
171 // delete iBackgroundTimer; |
173 // delete iBackgroundTimer; |
172 // iBackgroundTimer = NULL; |
174 // iBackgroundTimer = NULL; |
173 mStartedFromApplication = true; |
175 mStartedFromApplication = true; |
225 // ----------------------------------------------------------------------------- |
227 // ----------------------------------------------------------------------------- |
226 // |
228 // |
227 void IAUpdateEngine::ShowUpdateQueryRequestL(int wgid, uint aUid) |
229 void IAUpdateEngine::ShowUpdateQueryRequestL(int wgid, uint aUid) |
228 { |
230 { |
229 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::ShowUpdateQueryRequestL begin"); |
231 IAUPDATE_TRACE("[IAUPDATE] IAUpdateEngine::ShowUpdateQueryRequestL begin"); |
|
232 emit createUI(); |
230 SetClientWgId(wgid); |
233 SetClientWgId(wgid); |
231 mRequestIssued = true; |
234 mRequestIssued = true; |
232 mStartedFromApplication = true; |
235 mStartedFromApplication = true; |
233 mUpdatequeryUid = aUid; |
236 mUpdatequeryUid = aUid; |
234 mUpdateNow = false; |
237 mUpdateNow = false; |
1157 } |
1160 } |
1158 |
1161 |
1159 HbMessageBox *messageBox = new HbMessageBox( |
1162 HbMessageBox *messageBox = new HbMessageBox( |
1160 HbMessageBox::MessageTypeQuestion); |
1163 HbMessageBox::MessageTypeQuestion); |
1161 messageBox->setText(QString( |
1164 messageBox->setText(QString( |
1162 "Application update is available from Nokia. Update?")); |
1165 hbTrId("txt_software_info_application_update_is_available"))); |
1163 int actionCount = messageBox->actions().count(); |
1166 int actionCount = messageBox->actions().count(); |
1164 for (int i = actionCount - 1; i >= 0; i--) |
1167 for (int i = actionCount - 1; i >= 0; i--) |
1165 { |
1168 { |
1166 messageBox->removeAction(messageBox->actions().at(i)); |
1169 messageBox->removeAction(messageBox->actions().at(i)); |
1167 } |
1170 } |
1168 mPrimaryAction = NULL; |
1171 mPrimaryAction = NULL; |
1169 mPrimaryAction = new HbAction("Now"); |
1172 mPrimaryAction = new HbAction(hbTrId("txt_software_button_now")); |
1170 mSecondaryAction = NULL; |
1173 mSecondaryAction = NULL; |
1171 mSecondaryAction = new HbAction("Later"); |
1174 mSecondaryAction = new HbAction(hbTrId("txt_software_button_later")); |
1172 messageBox->addAction(mPrimaryAction); |
1175 messageBox->addAction(mPrimaryAction); |
1173 messageBox->addAction(mSecondaryAction); |
1176 messageBox->addAction(mSecondaryAction); |
1174 messageBox->setTimeout(HbPopup::NoTimeout); |
1177 messageBox->setTimeout(HbPopup::NoTimeout); |
1175 messageBox->setAttribute(Qt::WA_DeleteOnClose); |
1178 messageBox->setAttribute(Qt::WA_DeleteOnClose); |
1176 messageBox->open(this, SLOT(dialogFinished(HbAction*))); |
1179 messageBox->open(this, SLOT(dialogFinished(HbAction*))); |