--- a/radioapp/radiouiengine/inc/radiouiengine.h Wed Jun 23 18:12:57 2010 +0300
+++ b/radioapp/radiouiengine/inc/radiouiengine.h Tue Jul 06 14:16:27 2010 +0300
@@ -41,6 +41,9 @@
typedef QSharedPointer<RadioScannerEngine> RadioScannerEnginePtr;
+// Constants
+const uint DEFAULT_MIN_FREQUENCY = 87500000;
+
class UI_ENGINE_DLL_EXPORT RadioUiEngine : public QObject
{
Q_OBJECT
@@ -49,12 +52,24 @@
friend class RadioScannerEngine;
-public:
+public: // Static functions that are used before the ui engine is created
+
+ /*!
+ * Gets the last tuned frequency from central repository
+ */
+ static uint lastTunedFrequency( uint defaultFrequency = DEFAULT_MIN_FREQUENCY );
- /**
- * Static functions that are used before the ui engine is created
+ /*!
+ * Gets the last used volume level
*/
- static uint lastTunedFrequency();
+ static int lastVolume();
+
+ /*!
+ * Launches the radio server process
+ */
+ static void launchRadioServer();
+
+public:
RadioUiEngine( QObject* parent = 0 );
~RadioUiEngine();