deviceupdatesui/cpqtsp/src/CpQtSpMainWindow.cpp
changeset 44 137912d1a556
parent 43 88e14c3d4c4f
child 45 0f9fc722d255
equal deleted inserted replaced
43:88e14c3d4c4f 44:137912d1a556
     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 }