author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 11 Jun 2010 13:38:32 +0300 | |
changeset 28 | 075425b8d9a4 |
parent 24 | 6df133bd92e1 |
child 32 | 189d20c34778 |
permissions | -rw-r--r-- |
24 | 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 RADIOPRESETSCANNER_H_ |
|
19 |
#define RADIOPRESETSCANNER_H_ |
|
20 |
||
21 |
// System includes |
|
22 |
#include <QObject> |
|
23 |
#include <QScopedPointer> |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
24 |
#include <QPointer> |
24 | 25 |
|
26 |
// Forward declarations |
|
27 |
class HbProgressDialog; |
|
28 |
class RadioStation; |
|
29 |
class RadioUiEngine; |
|
30 |
class RadioWindow; |
|
31 |
class RadioFrequencyStrip; |
|
32 |
class RadioStationCarousel; |
|
33 |
class RadioScannerEngine; |
|
34 |
||
35 |
// Class declaration |
|
36 |
class RadioFrequencyScanner : public QObject |
|
37 |
{ |
|
38 |
Q_OBJECT |
|
39 |
||
40 |
public: |
|
41 |
||
42 |
RadioFrequencyScanner( RadioUiEngine& uiEngine, QObject* parent ); |
|
43 |
~RadioFrequencyScanner(); |
|
44 |
||
45 |
void startScanning(); |
|
46 |
||
47 |
bool isAlive() const; |
|
48 |
||
49 |
signals: |
|
50 |
||
51 |
void frequencyScannerFinished(); |
|
52 |
||
53 |
public slots: |
|
54 |
||
55 |
void cancelScanning(); |
|
56 |
||
57 |
private slots: |
|
58 |
||
59 |
void delayedStart(); |
|
60 |
void updateScanProgress( const RadioStation& station ); |
|
61 |
void continueScanning(); |
|
62 |
void restoreUiControls(); |
|
63 |
||
64 |
private: |
|
65 |
||
66 |
void finishScanning(); |
|
67 |
||
68 |
private: // data |
|
69 |
||
70 |
/*! |
|
71 |
* Reference to the Ui engine |
|
72 |
*/ |
|
73 |
RadioUiEngine& mUiEngine; |
|
74 |
||
75 |
bool mInMainView; |
|
76 |
||
77 |
QScopedPointer<RadioScannerEngine> mScannerEngine; |
|
78 |
||
79 |
/** |
|
80 |
* Scanning progress note |
|
81 |
* Own. |
|
82 |
*/ |
|
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
83 |
QPointer<HbProgressDialog> mScanningProgressNote; |
24 | 84 |
|
85 |
int mStripScrollTime; |
|
86 |
int mCarouselScrollTime; |
|
87 |
||
88 |
bool mIsAlive; |
|
89 |
||
28
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
90 |
bool mUserCanceled; |
075425b8d9a4
Revision: 201021
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
24
diff
changeset
|
91 |
|
24 | 92 |
}; |
93 |
||
94 |
#endif // RADIOPRESETSCANNER_H_ |