deviceupdatesui/cpqtsp/src/CpQtSpMainWindow.cpp
changeset 30 d3981f4fe6a4
parent 27 516a867811c3
child 31 4b5fb8110426
child 41 c742e1129640
equal deleted inserted replaced
27:516a867811c3 30:d3981f4fe6a4
     1 /*
       
     2 * Copyright (c) 2002 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 *     Bio control for Provisioning documents.
       
    16 *
       
    17 */
       
    18 
       
    19 #include <hbmainwindow.h>
       
    20 #include <CpQtSpMainWindow.h>
       
    21 #include <CpQtSpView.h>
       
    22 
       
    23 
       
    24 CpQtSpMainWindow::CpQtSpMainWindow(QWidget *parent)
       
    25     : HbMainWindow(parent)
       
    26 {
       
    27     iServiceProvider = new CpQtSp();
       
    28     connect(iServiceProvider,SIGNAL(showView()),this, SLOT(showView()));    
       
    29     iView = new CpQtSpView(iServiceProvider);    
       
    30     }
       
    31 
       
    32 CpQtSpMainWindow::~CpQtSpMainWindow()
       
    33 {
       
    34     delete iView;
       
    35     delete iServiceProvider;
       
    36 }
       
    37 
       
    38 void CpQtSpMainWindow::showView()
       
    39 {
       
    40     iView->constructView(); 				  
       
    41     addView(iView);    
       
    42 }