24 |
24 |
25 // Forward declarations |
25 // Forward declarations |
26 class HbProgressDialog; |
26 class HbProgressDialog; |
27 class RadioStation; |
27 class RadioStation; |
28 class RadioUiEngine; |
28 class RadioUiEngine; |
29 class RadioXmlUiLoader; |
29 class RadioWindow; |
30 class RadioMainWindow; |
|
31 class RadioFrequencyStrip; |
30 class RadioFrequencyStrip; |
32 class RadioStationCarousel; |
31 class RadioStationCarousel; |
33 class RadioScannerEngine; |
32 class RadioScannerEngine; |
34 |
33 |
35 // Class declaration |
34 // Class declaration |
40 public: |
39 public: |
41 |
40 |
42 RadioFrequencyScanner( RadioUiEngine& uiEngine, QObject* parent ); |
41 RadioFrequencyScanner( RadioUiEngine& uiEngine, QObject* parent ); |
43 ~RadioFrequencyScanner(); |
42 ~RadioFrequencyScanner(); |
44 |
43 |
45 void startScanning( RadioXmlUiLoader& uiLoader ); |
44 void startScanning(); |
|
45 |
|
46 bool isAlive() const; |
46 |
47 |
47 signals: |
48 signals: |
48 |
49 |
49 void frequencyScannerFinished(); |
50 void frequencyScannerFinished(); |
50 |
51 |
|
52 public slots: |
|
53 |
|
54 void cancelScanning(); |
|
55 |
51 private slots: |
56 private slots: |
52 |
57 |
53 void delayedStart(); |
58 void delayedStart(); |
54 void updateScanAndSaveProgress( const RadioStation& station ); |
59 void updateScanProgress( const RadioStation& station ); |
55 void continueScanning(); |
60 void continueScanning(); |
56 void scanAndSavePresetsCancelled(); |
|
57 void restoreUiControls(); |
61 void restoreUiControls(); |
58 |
62 |
59 private: |
63 private: |
60 |
64 |
61 void scanAndSavePresetsFinished(); |
65 void finishScanning(); |
62 |
66 |
63 private: // data |
67 private: // data |
64 |
68 |
65 /*! |
69 /*! |
66 * Reference to the Ui engine |
70 * Reference to the Ui engine |
67 */ |
71 */ |
68 RadioUiEngine& mUiEngine; |
72 RadioUiEngine& mUiEngine; |
69 |
73 |
70 bool mInTuningView; |
74 bool mInMainView; |
71 |
75 |
72 QScopedPointer<RadioScannerEngine> mScannerEngine; |
76 QScopedPointer<RadioScannerEngine> mScannerEngine; |
73 |
77 |
74 /** |
78 /** |
75 * Scanning progress note |
79 * Scanning progress note |
76 * Own. |
80 * Own. |
77 */ |
81 */ |
78 HbProgressDialog* mScanningProgressNote; |
82 QScopedPointer<HbProgressDialog> mScanningProgressNote; |
79 |
83 |
80 /** |
84 int mStripScrollTime; |
81 * Amount of radio stations found |
85 int mCarouselScrollTime; |
82 */ |
|
83 uint mChannelCount; |
|
84 |
86 |
85 int mStripScrollTime; |
87 bool mIsAlive; |
86 int mCarouselScrollTime; |
|
87 |
88 |
88 }; |
89 }; |
89 |
90 |
90 #endif // RADIOPRESETSCANNER_H_ |
91 #endif // RADIOPRESETSCANNER_H_ |