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 RADIOSCANNERENGINE_P_H_ |
|
19 #define RADIOSCANNERENGINE_P_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QMap> |
|
23 |
|
24 // User includes |
|
25 #include "radioenginewrapperobserver.h" |
|
26 |
|
27 // Forward declarations |
|
28 class RadioScannerEngine; |
|
29 class RadioUiEnginePrivate; |
|
30 class RadioStationHandlerIf; |
|
31 class RadioStation; |
|
32 class RadioEngineWrapper; |
|
33 |
|
34 // Constants |
|
35 |
|
36 // Class declaration |
|
37 class RadioScannerEnginePrivate : public RadioEngineWrapperObserver |
|
38 { |
|
39 Q_DECLARE_PUBLIC( RadioScannerEngine ) |
|
40 Q_DISABLE_COPY( RadioScannerEnginePrivate ) |
|
41 |
|
42 public: |
|
43 |
|
44 RadioScannerEnginePrivate( RadioScannerEngine* scanner, RadioUiEnginePrivate& uiEngine ); |
|
45 virtual ~RadioScannerEnginePrivate(); |
|
46 |
|
47 private: |
|
48 |
|
49 // from base class RadioEngineWrapperObserver |
|
50 |
|
51 void tunedToFrequency( uint frequency, int reason ); |
|
52 |
|
53 // New functions |
|
54 |
|
55 void addFrequencyAndReport( const uint frequency ); |
|
56 |
|
57 private: // data |
|
58 |
|
59 /** |
|
60 * Pointer to the public class |
|
61 * Not own. |
|
62 */ |
|
63 RadioScannerEngine* q_ptr; |
|
64 |
|
65 RadioUiEnginePrivate& mUiEngine; |
|
66 |
|
67 /** |
|
68 * Last scanned frequency. Used to know when the scanning has looped around the |
|
69 * frequency band and it should stop |
|
70 */ |
|
71 uint mLastFoundFrequency; |
|
72 |
|
73 bool mMutedByScanner; |
|
74 |
|
75 bool mIsScanning; |
|
76 |
|
77 }; |
|
78 |
|
79 |
|
80 #endif // RADIOSCANNERENGINE_P_H_ |
|