iaupdate/IAD/ui/src/iaupdatedialogutil.cpp
changeset 77 d1838696558c
parent 44 329d304c1aa1
child 80 9dcba1ee99f7
equal deleted inserted replaced
75:2d2d25361590 77:d1838696558c
    15 *                member functions.
    15 *                member functions.
    16 *
    16 *
    17 */
    17 */
    18 #include <hblabel.h>
    18 #include <hblabel.h>
    19 #include <hbmessagebox.h>
    19 #include <hbmessagebox.h>
       
    20 #include <hbstringutil.h>
    20 
    21 
    21 #include "iaupdatedialogutil.h"
    22 #include "iaupdatedialogutil.h"
    22 #include "iaupdatedialogobserver.h"
    23 #include "iaupdatedialogobserver.h"
    23 #include "iaupdatedebug.h"
    24 #include "iaupdatedebug.h"
    24 
    25 
    82 
    83 
    83 void IAUpdateDialogUtil::showAgreement(HbAction *primaryAction, HbAction *secondaryAction)
    84 void IAUpdateDialogUtil::showAgreement(HbAction *primaryAction, HbAction *secondaryAction)
    84 {
    85 {
    85     HbMessageBox *agreementDialog = new HbMessageBox(HbMessageBox::MessageTypeQuestion); 
    86     HbMessageBox *agreementDialog = new HbMessageBox(HbMessageBox::MessageTypeQuestion); 
    86     HbLabel *label = new HbLabel(agreementDialog);
    87     HbLabel *label = new HbLabel(agreementDialog);
    87     label->setHtml(QString("Disclaimer"));
    88     label->setHtml(hbTrId("txt_software_title_disclaimer"));
    88     agreementDialog->setHeadingWidget(label);
    89     agreementDialog->setHeadingWidget(label);
    89     agreementDialog->setIconVisible(false);
    90     agreementDialog->setIconVisible(false);
    90     agreementDialog->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.<br /><br />Use of this application involves transmission of data. Contact your network service provider for information about data transmission charges.<br /><br />(c) 2007-2010 Nokia. All rights reserved.");
    91     agreementDialog->setText(hbTrId("txt_software_info_this_application_allows_you_to_d").arg(2007).arg(2010));
    91 
    92     // TODO: when textmap contains %1, change to:
       
    93     /*
       
    94     agreementDialog->
       
    95         setText(hbTrId("txt_software_info_this_application_allows_you_to_d").
       
    96                 arg(HbStringUtil::convertDigits("2007")).arg(HbStringUtil::convertDigits("2007")));
       
    97     */
    92     int actionCount = agreementDialog->actions().count();
    98     int actionCount = agreementDialog->actions().count();
    93     for (int i=actionCount-1; i >= 0; i--)
    99     for (int i=actionCount-1; i >= 0; i--)
    94     { 
   100     { 
    95         agreementDialog->removeAction(agreementDialog->actions().at(i));
   101         agreementDialog->removeAction(agreementDialog->actions().at(i));
    96     }
   102     }