39 public: |
39 public: |
40 |
40 |
41 /** |
41 /** |
42 * Constructor and destructor |
42 * Constructor and destructor |
43 */ |
43 */ |
44 RadioEngineWrapper( RadioStationHandlerIf& stationHandler, RadioEngineWrapperObserver& observer ); |
44 RadioEngineWrapper( RadioStationHandlerIf& stationHandler ); |
45 ~RadioEngineWrapper(); |
45 ~RadioEngineWrapper(); |
|
46 |
|
47 void addObserver( RadioEngineWrapperObserver* observer ); |
|
48 void removeObserver( RadioEngineWrapperObserver* observer ); |
46 |
49 |
47 /** |
50 /** |
48 * Checks if the radio engine has been constructed properly |
51 * Checks if the radio engine has been constructed properly |
49 */ |
52 */ |
50 bool isEngineConstructed(); |
53 bool isEngineConstructed(); |
65 |
68 |
66 /** |
69 /** |
67 * Getters for current radio status |
70 * Getters for current radio status |
68 */ |
71 */ |
69 bool isRadioOn() const; |
72 bool isRadioOn() const; |
70 bool isScanning() const; |
|
71 uint currentFrequency() const; |
73 uint currentFrequency() const; |
72 bool isMuted() const; |
74 bool isMuted() const; |
73 bool isAntennaAttached() const; |
75 bool isAntennaAttached() const; |
74 bool isUsingLoudspeaker() const; |
76 bool isUsingLoudspeaker() const; |
75 |
77 |
76 /** |
78 /** |
77 * Slots to tune to given frequency or preset |
79 * Functions to tune to given frequency or preset |
78 */ |
80 */ |
79 void tuneFrequency( uint frequency, const int sender = CommandSender::Unspecified ); |
81 void tuneFrequency( uint frequency, const int reason = TuneReason::Unspecified ); |
80 void tuneWithDelay( uint frequency, const int sender = CommandSender::Unspecified ); |
82 void tuneWithDelay( uint frequency, const int reason = TuneReason::Unspecified ); |
81 |
83 |
82 /*! |
84 /*! |
83 * volume update command slot for the engine |
85 * Audio update command functions for the engine |
84 */ |
86 */ |
85 void setVolume( int volume ); |
87 void setVolume( int volume ); |
86 void toggleMute(); |
88 void toggleMute(); |
87 void toggleAudioRoute(); |
89 void toggleAudioRoute(); |
88 |
90 |
89 void startSeeking( Seeking::Direction direction ); |
91 void startSeeking( Seeking::Direction direction, const int reason = TuneReason::Unspecified ); |
90 void scanFrequencyBand(); |
92 void cancelSeeking(); |
91 void cancelScanFrequencyBand(); |
|
92 |
93 |
93 private: // data |
94 private: // data |
94 |
95 |
95 /** |
96 /** |
96 * Unmodifiable pointer to the private implementation |
97 * Unmodifiable pointer to the private implementation |