equal
deleted
inserted
replaced
|
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 <HbMainWindow> |
|
19 #include "hsloadscenestate.h" |
|
20 #include "hsscene.h" |
|
21 |
|
22 /*! |
|
23 \class HsLoadSceneState |
|
24 \ingroup group_hshomescreenstateplugin |
|
25 \brief View part of the home screen idle state. |
|
26 |
|
27 Loads the home screen scene. |
|
28 */ |
|
29 |
|
30 /*! |
|
31 Constructs a new load scene state with the given \a parent. |
|
32 */ |
|
33 HsLoadSceneState::HsLoadSceneState(QState *parent) |
|
34 : QState(parent) |
|
35 { |
|
36 connect(this, SIGNAL(entered()), SLOT(action_loadScene())); |
|
37 } |
|
38 |
|
39 /*! |
|
40 Destroys this idle state. |
|
41 */ |
|
42 HsLoadSceneState::~HsLoadSceneState() |
|
43 { |
|
44 } |
|
45 |
|
46 /*! |
|
47 \fn HsLoadSceneState::event_idle() |
|
48 |
|
49 Initiates a transition to idle state. |
|
50 */ |
|
51 |
|
52 /*! |
|
53 Loads the home screen scene. |
|
54 */ |
|
55 void HsLoadSceneState::action_loadScene() |
|
56 { |
|
57 HsScene::instance()->load(); |
|
58 HsScene::mainWindow()->show(); |
|
59 emit event_idle(); |
|
60 } |