phonebookui/phonebookservices/src/cntservicemainwindow.cpp
changeset 59 a642906a277a
parent 47 7cbcb2896f0e
child 65 ae724a111993
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
     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 "cntservicemainwindow.h"
       
    19 #include "cntservicehandler.h"
       
    20 #include "cntserviceviewmanager.h"
       
    21 #include "cntviewnavigator.h"
       
    22 
       
    23 CntServiceMainWindow::CntServiceMainWindow(CntServiceHandler *handler, QWidget *parent):
       
    24     CntMainWindow(parent, noView),
       
    25     mServiceHandler(handler),
       
    26     mServiceViewManager(0)
       
    27 {   
       
    28     CntViewNavigator* navigator = new CntViewNavigator( this );
       
    29     navigator->addException( serviceEditView, noView );
       
    30 
       
    31     mServiceViewManager = new CntServiceViewManager(this, mServiceHandler);
       
    32     mServiceViewManager->setViewNavigator( navigator );
       
    33 }
       
    34 
       
    35 CntServiceMainWindow::~CntServiceMainWindow()
       
    36 {
       
    37     delete mServiceViewManager;
       
    38     mServiceViewManager = 0;
       
    39     delete mServiceHandler;
       
    40     mServiceHandler = 0;
       
    41 }
       
    42 
       
    43 // end of file