--- a/radioapp/radioenginewrapper/inc/radioenginewrapper.h Fri Jun 04 10:21:36 2010 +0100
+++ b/radioapp/radioenginewrapper/inc/radioenginewrapper.h Fri Jun 11 13:38:32 2010 +0300
@@ -44,15 +44,12 @@
RadioEngineWrapper( RadioStationHandlerIf& stationHandler );
~RadioEngineWrapper();
+ bool init();
+
void addObserver( RadioEngineWrapperObserver* observer );
void removeObserver( RadioEngineWrapperObserver* observer );
/**
- * Checks if the radio engine has been constructed properly
- */
- bool isEngineConstructed();
-
- /**
* Getters for things owned by the engine
*/
RadioSettingsIf& settings();
@@ -64,7 +61,7 @@
uint minFrequency() const;
uint maxFrequency() const;
uint frequencyStepSize() const;
- bool isFrequencyValid( uint frequency );
+ bool isFrequencyValid( uint frequency ) const;
/**
* Getters for current radio status
@@ -75,20 +72,26 @@
bool isAntennaAttached() const;
bool isUsingLoudspeaker() const;
+ void setManualSeekMode( bool manualSeek );
+ bool isInManualSeekMode() const;
+
+ void setRdsEnabled( bool rdsEnabled );
+
/**
- * Functions to tune to given frequency or preset
+ * Tunes to the given frequency
*/
- void tuneFrequency( uint frequency, const int reason = TuneReason::Unspecified );
- void tuneWithDelay( uint frequency, const int reason = TuneReason::Unspecified );
+ void setFrequency( uint frequency, const int reason = TuneReason::Unspecified );
/*!
* Audio update command functions for the engine
*/
+ void increaseVolume();
+ void decreaseVolume();
void setVolume( int volume );
- void setMute( bool muted );
+ void setMute( bool muted, bool updateSettings = true );
void toggleAudioRoute();
- void startSeeking( Seeking::Direction direction, const int reason = TuneReason::Unspecified );
+ void startSeeking( Seek::Direction direction, const int reason = TuneReason::Unspecified );
void cancelSeeking();
private: // data