controlpanelui/src/cpserviceprovider/src/cpservicemainwindow.cpp
changeset 12 624337f114fe
child 14 23411a3be0db
equal deleted inserted replaced
11:10d0dd0e43f1 12:624337f114fe
       
     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 "cpservicemainwindow.h"
       
    19 #include <QCoreApplication>
       
    20 #include <hbview.h>
       
    21 #include "cplauncherservice.h"
       
    22 #include "cpsplogger.h"
       
    23 
       
    24 CpServiceMainWindow::CpServiceMainWindow(QWidget *parent /* = 0*/)
       
    25 : HbMainWindow(parent), mLauncherService(0)
       
    26 {
       
    27     CPSP_LOG("CpServiceMainWindow Constructing...");
       
    28     mLauncherService = new CpLauncherService(this);
       
    29 }
       
    30 
       
    31 CpServiceMainWindow::~CpServiceMainWindow()
       
    32 {
       
    33     CPSP_LOG("CpServiceMainWindow Destructing...");
       
    34 }
       
    35 
       
    36 void CpServiceMainWindow::quit()
       
    37 {
       
    38     CPSP_LOG("CpServiceMainWindow::quit()");
       
    39  
       
    40     connect(mLauncherService, SIGNAL(returnValueDelivered()), qApp, SLOT(quit()));
       
    41     mLauncherService->complete();
       
    42     qApp->quit();
       
    43     
       
    44     /*
       
    45     hide();
       
    46     mLauncherService->complete();
       
    47     HbView *currView = currentView();
       
    48     if (currView) {
       
    49         removeView(currView);
       
    50         currView->deleteLater();
       
    51     }
       
    52     */
       
    53 }
       
    54 
       
    55 //End of File