18 #ifndef RADIOUIENGINE_P_H_ |
18 #ifndef RADIOUIENGINE_P_H_ |
19 #define RADIOUIENGINE_P_H_ |
19 #define RADIOUIENGINE_P_H_ |
20 |
20 |
21 // System includes |
21 // System includes |
22 #include <QScopedPointer> |
22 #include <QScopedPointer> |
23 #include <QPointer> |
23 #include <QSharedPointer> |
24 |
24 |
25 // User includes |
25 // User includes |
26 #include "radio_global.h" |
26 #include "radio_global.h" |
27 #include "radioenginewrapperobserver.h" |
27 #include "radioenginewrapperobserver.h" |
28 |
28 |
29 // Forward declarations |
29 // Forward declarations |
30 class RadioUiEngine; |
30 class RadioUiEngine; |
31 class RadioEngineWrapper; |
31 class RadioEngineWrapper; |
32 class RadioStationModel; |
32 class RadioStationModel; |
33 class RadioHistoryModel; |
33 class RadioHistoryModel; |
34 class RadioCarouselModel; |
|
35 class RadioPresetStorage; |
34 class RadioPresetStorage; |
36 class RadioControlService; |
35 class RadioControlService; |
37 class RadioMonitorService; |
36 class RadioMonitorService; |
38 class RadioScannerEngine; |
37 class RadioScannerEngine; |
|
38 class QTimer; |
39 |
39 |
40 class RadioUiEnginePrivate : public RadioEngineWrapperObserver |
40 class RadioUiEnginePrivate : public RadioEngineWrapperObserver |
41 { |
41 { |
42 Q_DECLARE_PUBLIC( RadioUiEngine ) |
42 Q_DECLARE_PUBLIC( RadioUiEngine ) |
43 Q_DISABLE_COPY( RadioUiEnginePrivate ) |
43 Q_DISABLE_COPY( RadioUiEnginePrivate ) |
60 // from base class RadioEngineWrapperObserver |
60 // from base class RadioEngineWrapperObserver |
61 |
61 |
62 void tunedToFrequency( uint frequency, int reason ); |
62 void tunedToFrequency( uint frequency, int reason ); |
63 void radioStatusChanged( bool radioIsOn ); |
63 void radioStatusChanged( bool radioIsOn ); |
64 void rdsAvailabilityChanged( bool available ); |
64 void rdsAvailabilityChanged( bool available ); |
|
65 void increaseVolume(); |
|
66 void decreaseVolume(); |
65 void volumeChanged( int volume ); |
67 void volumeChanged( int volume ); |
66 void muteChanged( bool muted ); |
68 void muteChanged( bool muted ); |
67 void audioRouteChanged( bool loudspeaker ); |
69 void audioRouteChanged( bool loudspeaker ); |
68 void antennaStatusChanged( bool connected ); |
70 void antennaStatusChanged( bool connected ); |
69 void skipPrevious(); |
71 void skipPrevious(); |
90 |
92 |
91 QScopedPointer<RadioStationModel> mStationModel; |
93 QScopedPointer<RadioStationModel> mStationModel; |
92 |
94 |
93 QScopedPointer<RadioHistoryModel> mHistoryModel; |
95 QScopedPointer<RadioHistoryModel> mHistoryModel; |
94 |
96 |
95 QScopedPointer<RadioCarouselModel> mCarouselModel; |
|
96 |
|
97 #ifndef BUILD_WIN32 |
|
98 QScopedPointer<RadioControlService> mControlService; |
97 QScopedPointer<RadioControlService> mControlService; |
99 #endif |
|
100 |
98 |
101 QScopedPointer<RadioMonitorService> mMonitorService; |
99 QScopedPointer<RadioMonitorService> mMonitorService; |
102 |
100 |
103 QPointer<RadioScannerEngine> mScannerEngine; |
101 QWeakPointer<RadioScannerEngine> mScannerEngine; |
|
102 |
|
103 /** |
|
104 * Power off timer |
|
105 * Owned by public class by setting parent |
|
106 */ |
|
107 QTimer* mPowerOffTimer; |
104 |
108 |
105 }; |
109 }; |
106 |
110 |
107 #endif // RADIOUIENGINE_P_H_ |
111 #endif // RADIOUIENGINE_P_H_ |