|
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 RADIOWIZARDVIEW_H_ |
|
19 #define RADIOWIZARDVIEW_H_ |
|
20 |
|
21 // User includes |
|
22 #include "radioviewbase.h" |
|
23 #include "radiowidgetsexport.h" |
|
24 |
|
25 // Forward declarations |
|
26 class RadioMainWindow; |
|
27 class HbLabel; |
|
28 class HbPushButton; |
|
29 class HbListView; |
|
30 class RadioBannerLabel; |
|
31 |
|
32 // Class declaration |
|
33 class WIDGETS_DLL_EXPORT RadioWizardView : public RadioViewBase |
|
34 { |
|
35 Q_OBJECT |
|
36 |
|
37 public: |
|
38 |
|
39 explicit RadioWizardView( RadioXmlUiLoader* uiLoader ); |
|
40 |
|
41 private: |
|
42 |
|
43 // from base class RadioViewBase |
|
44 |
|
45 void init( RadioMainWindow* aMainWindow, RadioStationModel* aModel ); |
|
46 void initSecondarySoftkey(); |
|
47 |
|
48 // from base class QGraphicsWidget |
|
49 |
|
50 void showEvent( QShowEvent* event ); |
|
51 |
|
52 private slots: |
|
53 |
|
54 void saveSelectedAsFavorites(); |
|
55 void listItemClicked( const QModelIndex& index ); |
|
56 void engineStatusChanged( bool radioIsOn ); |
|
57 |
|
58 private: |
|
59 |
|
60 void startScanning(); |
|
61 |
|
62 private: // data |
|
63 |
|
64 HbListView* mList; |
|
65 RadioBannerLabel* mBannerLabel; |
|
66 bool mStartScanningRequested; |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // RADIOWIZARDVIEW_H_ |