|
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 |
|
19 #ifndef FTU_STATES_WIZARDLOADERSTATE_H |
|
20 #define FTU_STATES_WIZARDLOADERSTATE_H |
|
21 |
|
22 #include "ftutest_global.h" |
|
23 #include <QState> |
|
24 |
|
25 FTU_TEST_CLASS(FtuStateProviderTest) |
|
26 |
|
27 class FtuWizardProvider; |
|
28 class FtuContentService; |
|
29 class FtuWizard; |
|
30 |
|
31 |
|
32 /** @ingroup group_ftustateprovider |
|
33 * @brief Initial state after first boot |
|
34 * |
|
35 * @see StateMachine |
|
36 * |
|
37 * @lib ?library |
|
38 * @since S60 ?S60_version |
|
39 */ |
|
40 class FtuWizardLoaderState : public QState |
|
41 { |
|
42 Q_OBJECT |
|
43 |
|
44 public: |
|
45 |
|
46 /** |
|
47 * Constructor. |
|
48 * @since S60 ?S60_version. |
|
49 * @param aParent Owner. |
|
50 */ |
|
51 FtuWizardLoaderState(QState *aParent = 0); |
|
52 |
|
53 /** |
|
54 * Destructor. |
|
55 * @since S60 ?S60_version. |
|
56 */ |
|
57 virtual ~FtuWizardLoaderState(); |
|
58 |
|
59 public slots: |
|
60 |
|
61 /** |
|
62 * Received when wizard is initialized. |
|
63 * @param wizard The caller object. |
|
64 * @param success True if succesful, false otherwise. |
|
65 */ |
|
66 void addWizard(FtuWizard* wizard, bool success); |
|
67 |
|
68 signals: |
|
69 |
|
70 protected: |
|
71 |
|
72 /** |
|
73 * @copydoc QState::onEntry() |
|
74 */ |
|
75 void onEntry(QEvent *event); |
|
76 |
|
77 /** |
|
78 * @copydoc QState::onExit() |
|
79 */ |
|
80 void onExit(QEvent *event); |
|
81 |
|
82 private: |
|
83 /** |
|
84 * Convenience method that returns the content service from dynamically |
|
85 * added meta object property. |
|
86 * @since S60 ?S60_version. |
|
87 * @return Content service. |
|
88 */ |
|
89 FtuContentService *content() const; |
|
90 private: |
|
91 /* |
|
92 * Wizard provider handle. Owned. |
|
93 */ |
|
94 FtuWizardProvider* mWizardProvider; |
|
95 |
|
96 FTU_TEST_FRIEND_CLASS(FtuStateProviderTest) |
|
97 }; |
|
98 |
|
99 #endif //FTU_STATES_WIZARDLOADERSTATE_H |