phonebookui/phonebookservices/src/cntserviceviewmanager.cpp
branchRCL_3
changeset 62 5b6f26637ad3
equal deleted inserted replaced
58:d4f567ce2e7c 62:5b6f26637ad3
       
     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 "cntserviceviewmanager.h"
       
    19 #include "cntserviceviewfactory.h"
       
    20 #include <cntabstractengine.h>
       
    21 /*!
       
    22 Constructor
       
    23 */
       
    24 CntServiceViewManager::CntServiceViewManager( HbMainWindow *mainWindow,
       
    25     CntAbstractServiceProvider& aProvider ):
       
    26     CntDefaultViewManager(mainWindow)
       
    27     {
       
    28     // ownership of the factory is given to the base class.
       
    29     setViewFactory( new CntServiceViewFactory( aProvider, engine().extensionManager() ) );
       
    30     }
       
    31 
       
    32 /*!
       
    33 Destructor
       
    34 */
       
    35 CntServiceViewManager::~CntServiceViewManager()
       
    36 {
       
    37 /*Remove all views*/
       
    38 }
       
    39 
       
    40 void CntServiceViewManager::closeApp()
       
    41 {
       
    42     // Quit happens when returnValueDelivered signal from XQServiceProver
       
    43     // is caught from service handler.
       
    44     emit applicationClosed();
       
    45 }
       
    46 
       
    47 // end of file