radioapp/radiouiengine/tsrc/inc/t_radiostation.h
changeset 51 bbebb0235466
parent 47 74b7c6e79031
--- a/radioapp/radiouiengine/tsrc/inc/t_radiostation.h	Fri Sep 03 12:25:04 2010 +0300
+++ b/radioapp/radiouiengine/tsrc/inc/t_radiostation.h	Mon Sep 20 18:04:48 2010 +0300
@@ -25,6 +25,7 @@
 
 #include "radioenginewrapperobserver.h"
 #include "radiostation.h"
+#include "t_schedulerstartandstoptimer.h"
 
 class RadioUiEngine;
 class RadioStationModel;
@@ -33,7 +34,7 @@
 class RadioEngineWrapper;
 class RadioEngineWrapperObserver;
 
-class TestRadioUiEngine : public QObject, RadioEngineWrapperObserver
+class TestRadioUiEngine : public QObject, RadioEngineWrapperObserver, MSchedulerStartAndStopTimerObserver
 {
     Q_OBJECT
 
@@ -90,6 +91,13 @@
     void headsetStatusChanged( bool connected );
     void skipPrevious();
     void skipNext();
+    
+    // from base class MSchedulerStartAndStopTimerObserver =>
+    void Timeout( TUint aTimerId );    
+    void CreateMUT();
+    void DeleteMUT();
+    // <=
+
     // subfunctions used by the test framework called slots
     void testRadioStationModelInit();
     void testAddStation1();
@@ -117,8 +125,6 @@
 private:
 	RadioUiEngine* mUiEngine;
 	QScopedPointer<RadioEngineWrapper>  mEngineWrapper;
-	RadioStationModel* mRadioStationModel;
-	RadioHistoryModel* mhistoryModel;
 	QScopedPointer<RadioPresetStorage>  mPresetStorage;
 	int mExpectedStationCount;	
 	/**
@@ -128,6 +134,12 @@
 	Slots mEnteredSlots;
 	QString mStationToBeAdded;
 	QString mStationToBeSaved;
+    CSchedulerStopAndStartTimer* mSchedulerTimer;
+    // Active scheduler
+    // Workaround for the below panic, occured after porting to 10.1 
+    // Main Panic E32USER-CBase 44
+    // Create and install the active scheduler
+    CActiveScheduler* mScheduler;
 };
 
 #endif /* T_RADIOSTATION_H_ */