radioapp/radiouiengine/inc/radiouiengine_p.h
changeset 19 afea38384506
parent 16 f54ebcfc1b80
child 37 451b2e1545b2
--- a/radioapp/radiouiengine/inc/radiouiengine_p.h	Mon May 03 12:31:41 2010 +0300
+++ b/radioapp/radiouiengine/inc/radiouiengine_p.h	Fri May 14 15:52:32 2010 +0300
@@ -22,6 +22,8 @@
 #include <QScopedPointer>
 #include <QPointer>
 
+// User includes
+#include "radio_global.h"
 #include "radioenginewrapperobserver.h"
 
 // Forward declarations
@@ -29,6 +31,7 @@
 class RadioEngineWrapper;
 class RadioStationModel;
 class RadioHistoryModel;
+class RadioCarouselModel;
 class RadioPresetStorage;
 class RadioControlService;
 class RadioMonitorService;
@@ -41,14 +44,12 @@
 
 public:
 
-    enum TuneDirection{ Next, Previous };
-
     RadioUiEnginePrivate( RadioUiEngine* engine );
     virtual ~RadioUiEnginePrivate();
 
     RadioUiEngine& api();
 
-    bool startRadio();
+    bool init();
 
     void cancelSeeking();
 
@@ -71,9 +72,9 @@
 // New functions
 
     /*!
-     * Tunes to next or previous favorite preset
+     * Tunes to next or previous station
      */
-    void skip( TuneDirection direction );
+    uint skip( StationSkip::Mode mode, uint startFrequency = 0 );
 
 private: // data
 
@@ -87,13 +88,17 @@
 
     QScopedPointer<RadioPresetStorage>      mPresetStorage;
 
-    RadioStationModel*                      mStationModel;
+    QScopedPointer<RadioStationModel>       mStationModel;
 
-    RadioHistoryModel*                      mHistoryModel;
+    QScopedPointer<RadioHistoryModel>       mHistoryModel;
+
+    QScopedPointer<RadioCarouselModel>      mCarouselModel;
 
-    RadioControlService*                    mControlService;
+#ifndef BUILD_WIN32
+    QScopedPointer<RadioControlService>     mControlService;
+#endif
 
-    RadioMonitorService*                    mMonitorService;
+    QScopedPointer<RadioMonitorService>     mMonitorService;
 
     QPointer<RadioScannerEngine>            mScannerEngine;