userguide/src/HelpBaseView.cpp
branchRCL_3
changeset 44 12f60d9a73b3
equal deleted inserted replaced
40:0d1adf67ec1b 44:12f60d9a73b3
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hbtoolbar.h>
       
    19 #include <hbnotificationdialog.h>
       
    20 #include <hbaction.h>
       
    21 
       
    22 #include "HelpBaseView.h"
       
    23 
       
    24 //////////////////////////////////////////////////////////////////////////////////////////////
       
    25 
       
    26 HelpBaseView::HelpBaseView()
       
    27 {
       
    28 }
       
    29 
       
    30 HelpBaseView::~HelpBaseView()
       
    31 {
       
    32 }
       
    33 
       
    34 
       
    35 ////////////////////////////////////////////////////////////////////////////////////////////
       
    36 
       
    37 void HelpBaseView::initBaseDocMl()
       
    38 {
       
    39  // Create widget hierarchy
       
    40     setObjectName( DOCML_VIEW_NAME );
       
    41 
       
    42     // List existing root elements - this allows us to refer to objects in the XML 
       
    43     // which are created outside the document.
       
    44     QObjectList roots;
       
    45     roots.append( this );
       
    46 
       
    47 	mBuilder.setObjectTree(roots);
       
    48 
       
    49 	mBuilder.load(QRC_DOCML_BASE);
       
    50 }
       
    51 
       
    52 void HelpBaseView::onToolbarOnlineSupport()
       
    53 {
       
    54     HbNotificationDialog *notificationDialog = new HbNotificationDialog();
       
    55     notificationDialog->setParent(this);
       
    56     notificationDialog->setTitle(URL_LINK_SUPPORT);
       
    57     notificationDialog->show();
       
    58 }
       
    59 
       
    60 
       
    61 // end of file