diff -r 0410b3201a77 -r afe7195bb6c3 iaupdate/IAD/ui/src/iaupdateagreement.cpp --- a/iaupdate/IAD/ui/src/iaupdateagreement.cpp Tue Jun 15 13:36:10 2010 +0100 +++ b/iaupdate/IAD/ui/src/iaupdateagreement.cpp Thu Jul 22 16:35:01 2010 +0100 @@ -19,7 +19,6 @@ //INCLUDES #include -#include #include #include @@ -102,23 +101,12 @@ User::LeaveIfError( cenrep->Get( KIAUpdateAutoUpdateCheck, autoUpdateCheckValue ) ); CleanupStack::PopAndDestroy( cenrep ); - autoUpdateCheckValue = EIAUpdateSettingValueDisable; //temp to test dialog if ( autoUpdateCheckValue == EIAUpdateSettingValueDisableWhenRoaming || autoUpdateCheckValue == EIAUpdateSettingValueEnable ) { accepted = ETrue; firstTimeInfo->SetAgreementAcceptedL(); } - else - { - HbAction *primaryAction = new HbAction("Accept"); - HbAction *secondaryAction = new HbAction("Decline"); - if ( ShowDialogL( primaryAction, secondaryAction ) == primaryAction) - { - accepted = ETrue; - firstTimeInfo->SetAgreementAcceptedL(); - } - } } CleanupStack::PopAndDestroy( firstTimeInfo ); return accepted; @@ -138,20 +126,6 @@ - - -// --------------------------------------------------------------------------- -// CIAUpdateAgreement::ShowAgreementL -// -// --------------------------------------------------------------------------- -// -void CIAUpdateAgreement::ShowAgreementL() - { - HbAction *primaryAction = new HbAction("OK"); - ShowDialogL( primaryAction, NULL ); - delete primaryAction; - } - // --------------------------------------------------------------------------- // CIAUpdateAgreement::AgreementAcceptedL // @@ -165,36 +139,7 @@ return ret; } -// --------------------------------------------------------------------------- -// CIAUpdateAgreement::ShowDialogL -// -// --------------------------------------------------------------------------- -// -HbAction* CIAUpdateAgreement::ShowDialogL( HbAction *primaryAction, HbAction *secondaryAction ) - { - HbDialog agreementDialog; - HbTextItem *headingText = new HbTextItem(&agreementDialog); - headingText->setFontSpec(HbFontSpec(HbFontSpec::Title)); - headingText->setText("Disclaimer"); - agreementDialog.setHeadingWidget(headingText); - - - HbTextItem *text = new HbTextItem(&agreementDialog); - text->setFontSpec(HbFontSpec(HbFontSpec::PrimarySmall)); - text->setText("This application allows you to download and use applications and services provided by Nokia or third parties. Service Terms and Privacy Policy will apply. Nokia will not assume any liability or responsibility for the availability or third party applications or services. Before using the third party application or service, read the applicable terms of use.\n\nUse of this application involves transmission of data. Contact your network service provider for information about data transmission charges.\n\n(c) 2007-2010 Nokia. All rights reserved."); - agreementDialog.setContentWidget(text); - - agreementDialog.setPrimaryAction(primaryAction); - - if ( secondaryAction ) - { - agreementDialog.setSecondaryAction(secondaryAction); - } - agreementDialog.setTimeout(HbPopup::NoTimeout); - agreementDialog.show(); - //return agreementDialog.exec(); - return primaryAction; - } + /*HBufC* text_1 = StringLoader::LoadLC( R_IAUPDATE_AGREEMENT_DIALOG_TEXT_1 ); HBufC* text_2 = StringLoader::LoadLC( R_IAUPDATE_AGREEMENT_DIALOG_TEXT_2 );