controlpanelui/src/cpserviceprovider/src/cpservicemainwindow.h
branchRCL_3
changeset 14 5f281e37a2f5
parent 13 90fe62538f66
equal deleted inserted replaced
13:90fe62538f66 14:5f281e37a2f5
     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 #ifndef CPSERVICEMAINWINDOW_H
       
    19 #define CPSERVICEMAINWINDOW_H
       
    20 
       
    21 #include <hbmainwindow.h>
       
    22 #include <QPointer>
       
    23 
       
    24 class CpLauncherService;
       
    25 class CpBaseSettingView;
       
    26 
       
    27 class CpServiceMainWindow : public HbMainWindow
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     explicit CpServiceMainWindow(QWidget *parent = 0);
       
    32     virtual ~CpServiceMainWindow();
       
    33     
       
    34     /*
       
    35      * set the setting view as current view
       
    36      */
       
    37     void setSettingView(CpBaseSettingView *settingView);
       
    38     
       
    39     /*
       
    40      * close current setting view
       
    41      */
       
    42     void closeSettingView();
       
    43     
       
    44 public slots:
       
    45     void quit();
       
    46 private:
       
    47     CpLauncherService *mLauncherService;
       
    48     HbView *mPreviousView;
       
    49     QPointer<CpBaseSettingView> mSettingViewPointer;
       
    50 };
       
    51 
       
    52 #endif // CPSERVICEMAINWINDOW_H
       
    53 
       
    54 //End of File