homescreenapp/hsdomainmodel/inc/hsgui.h
changeset 51 4785f57bf3d4
child 55 03646e8da489
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
       
     1 /*
       
     2 * Copyright (c) 2010 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 HSVIEW_H
       
    19 #define HSVIEW_H
       
    20 
       
    21 #include <QPointer>
       
    22 
       
    23 #include "hsdomainmodel_global.h"
       
    24 #include "hstest_global.h"
       
    25 
       
    26 HOMESCREEN_TEST_CLASS(HomeScreenStatePluginTest)
       
    27 
       
    28 class HbView;
       
    29 class HbMainWindow;
       
    30 
       
    31 class HSDOMAINMODEL_EXPORT HsGui
       
    32 {
       
    33 public:
       
    34 	HsGui();
       
    35 	~HsGui();
       
    36 	static HbView *idleView();	
       
    37 	static HbView *takeIdleView();
       
    38 	static void setIdleView(HbView *idleView);	
       
    39 	static HbMainWindow *mainWindow();
       
    40 
       
    41 private:
       
    42 	static QPointer<HbView> mIdleView;
       
    43 	HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest)
       
    44 };
       
    45 
       
    46 Q_DECLARE_METATYPE(HsGui*)
       
    47 #endif //HSVIEW_H