iaupdate/IAD/ui/src/iaupdatedialogutil.cpp
changeset 52 92f864ef0288
parent 42 d17dc5398051
child 77 d1838696558c
equal deleted inserted replaced
42:d17dc5398051 52:92f864ef0288
    13 *
    13 *
    14 * Description:   This module contains the implementation of IAUpdateDialogUtil class 
    14 * Description:   This module contains the implementation of IAUpdateDialogUtil class 
    15 *                member functions.
    15 *                member functions.
    16 *
    16 *
    17 */
    17 */
    18 #include <hbtextitem.h>
    18 #include <hblabel.h>
    19 #include <hbmessagebox.h>
    19 #include <hbmessagebox.h>
    20 
    20 
    21 #include "iaupdatedialogutil.h"
    21 #include "iaupdatedialogutil.h"
    22 #include "iaupdatedialogobserver.h"
    22 #include "iaupdatedialogobserver.h"
    23 #include "iaupdatedebug.h"
    23 #include "iaupdatedebug.h"
    81 
    81 
    82 
    82 
    83 void IAUpdateDialogUtil::showAgreement(HbAction *primaryAction, HbAction *secondaryAction)
    83 void IAUpdateDialogUtil::showAgreement(HbAction *primaryAction, HbAction *secondaryAction)
    84 {
    84 {
    85     HbMessageBox *agreementDialog = new HbMessageBox(HbMessageBox::MessageTypeQuestion); 
    85     HbMessageBox *agreementDialog = new HbMessageBox(HbMessageBox::MessageTypeQuestion); 
       
    86     HbLabel *label = new HbLabel(agreementDialog);
       
    87     label->setHtml(QString("Disclaimer"));
       
    88     agreementDialog->setHeadingWidget(label);
    86     agreementDialog->setIconVisible(false);
    89     agreementDialog->setIconVisible(false);
    87     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.\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.");
    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.");
    88 
    91 
    89     int actionCount = agreementDialog->actions().count();
    92     int actionCount = agreementDialog->actions().count();
    90     for (int i=actionCount-1; i >= 0; i--)
    93     for (int i=actionCount-1; i >= 0; i--)
    91     { 
    94     { 
    92         agreementDialog->removeAction(agreementDialog->actions().at(i));
    95         agreementDialog->removeAction(agreementDialog->actions().at(i));