equal
deleted
inserted
replaced
63 static RadioEngineWrapperPrivate* instance(); |
63 static RadioEngineWrapperPrivate* instance(); |
64 |
64 |
65 /** |
65 /** |
66 * Initialization and startup |
66 * Initialization and startup |
67 */ |
67 */ |
68 void init(); |
68 bool init(); |
69 bool isEngineConstructed(); |
|
70 |
69 |
71 /** |
70 /** |
72 * Returns the radio settings |
71 * Returns the radio settings |
73 */ |
72 */ |
74 RadioSettingsIf& settings(); |
73 RadioSettingsIf& settings(); |
75 |
74 |
76 /** |
75 /** |
77 * Functions called from slots to tune to given frequency or preset |
76 * Tunes to the given frequency |
78 */ |
77 */ |
79 void tuneFrequency( uint frequency, const int reason ); |
78 void setFrequency( uint frequency, const int reason ); |
80 void tuneWithDelay( uint frequency, const int reason ); |
|
81 |
79 |
82 ObserverList& observers(); |
80 ObserverList& observers(); |
83 |
81 |
84 void startSeeking( Seeking::Direction direction, const int reason ); |
82 void startSeeking( Seek::Direction direction, const int reason ); |
85 void cancelSeeking(); |
83 void cancelSeeking(); |
86 |
84 |
87 void toggleAudioRoute(); |
85 void toggleAudioRoute(); |
88 |
86 |
89 // Functions used by the win32 test window |
87 // Functions used by the win32 test window |
137 */ |
135 */ |
138 QScopedPointer<RadioSettings> mSettings; |
136 QScopedPointer<RadioSettings> mSettings; |
139 |
137 |
140 QTimer* mTuneTimer; |
138 QTimer* mTuneTimer; |
141 |
139 |
142 /** |
|
143 * Preset scanning handler |
|
144 * Own. |
|
145 */ |
|
146 // QScopedPointer<RadioFrequencyScanningHandler> mFrequencyScanningHandler; |
|
147 |
|
148 // QScopedPointer<T_RadioDataParser> mDataParser; |
140 // QScopedPointer<T_RadioDataParser> mDataParser; |
149 |
141 |
150 QString mParsingError; |
142 QString mParsingError; |
151 |
143 |
152 /** |
144 /** |
175 uint mMaxFrequency; |
167 uint mMaxFrequency; |
176 |
168 |
177 QString mArtist; |
169 QString mArtist; |
178 QString mTitle; |
170 QString mTitle; |
179 |
171 |
|
172 bool mManualSeekMode; |
|
173 |
180 }; |
174 }; |
181 |
175 |
182 #endif // RADIOENGINEWRAPPER_P_H |
176 #endif // RADIOENGINEWRAPPER_P_H |