controlpanel/src/cpframework/src/cpviewlauncher.h
branchRCL_3
changeset 54 7e0eff37aedb
parent 53 8ee96d21d9bf
child 57 e78c61e77b1a
equal deleted inserted replaced
53:8ee96d21d9bf 54:7e0eff37aedb
     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:  This class adds a setting view to main window, and restore previous view when back key clicked.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPVIEWLAUNCHER_H
       
    19 #define CPVIEWLAUNCHER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class HbView;
       
    24 class CpViewLauncher : public QObject
       
    25 {
       
    26     Q_OBJECT
       
    27 public:
       
    28 	static void launchView(HbView *view);
       
    29 private slots:
       
    30     void viewDone();
       
    31 private:
       
    32     Q_DISABLE_COPY(CpViewLauncher)
       
    33     CpViewLauncher();
       
    34     ~CpViewLauncher();
       
    35     void internalLaunchView(HbView *view);
       
    36 private:
       
    37     HbView *mView;
       
    38     HbView *mPreView;
       
    39 };
       
    40 
       
    41 #endif /* CPVIEWLAUNCHER_H */