radioapp/radiouiengine/tsrc/inc/t_radiostation.h
changeset 16 f54ebcfc1b80
parent 13 46974bebc798
child 37 451b2e1545b2
equal deleted inserted replaced
14:63aabac4416d 16:f54ebcfc1b80
    26 #include "radioenginewrapperobserver.h"
    26 #include "radioenginewrapperobserver.h"
    27 #include "radiostation.h"
    27 #include "radiostation.h"
    28 
    28 
    29 class RadioUiEngine;
    29 class RadioUiEngine;
    30 class RadioStationModel;
    30 class RadioStationModel;
    31 class RadioPlayLogModel;
    31 class RadioHistoryModel;
    32 class RadioPresetStorage;
    32 class RadioPresetStorage;
    33 class RadioEngineWrapper;
    33 class RadioEngineWrapper;
    34 class RadioEngineWrapperObserver;
    34 class RadioEngineWrapperObserver;
    35 
    35 
    36 class TestRadioUiEngine : public QObject, RadioEngineWrapperObserver
    36 class TestRadioUiEngine : public QObject, RadioEngineWrapperObserver
    73     void testImplicitSharing();
    73     void testImplicitSharing();
    74     void testChangeFlags();
    74     void testChangeFlags();
    75     void TestCallSignChar();
    75     void TestCallSignChar();
    76     void testPICodeToCallSign();
    76     void testPICodeToCallSign();
    77     void testRadioStationModel();
    77     void testRadioStationModel();
    78     void testPlayLogModel();
    78     void testhistoryModel();
    79     void testPlayLogModelItem();
    79     void testHistoryModelItem();
    80     
    80     
    81 private:
    81 private:
    82 
    82 
    83     // from base class RadioEngineWrapperObserver
    83     // from base class RadioEngineWrapperObserver
    84     void tunedToFrequency( uint frequency, int commandSender );
    84     void tunedToFrequency( uint frequency, int commandSender );
   108 
   108 
   109     void testSetFavorite();
   109     void testSetFavorite();
   110 
   110 
   111     void testRenameStation();
   111     void testRenameStation();
   112     void testSetRadioTextPlus();
   112     void testSetRadioTextPlus();
   113     void testPlayLogModelInit();
   113     void testHistoryModelInit();
   114     void testPlayLogModelAddItem();
   114     void testHistoryModelAddItem();
   115     void testPlayLogModelFindItem();
   115     void testHistoryModelFindItem();
   116     void testPlayLogModelUpdateItem();
   116     void testHistoryModelUpdateItem();
   117     void testPlayLogModelSetData();
   117     void testHistoryModelSetData();
   118     void testAddRadioTextPlus();
   118     void testAddRadioTextPlus();
   119     void testClearRadioTextPlus();
   119     void testClearRadioTextPlus();
   120     void testRadioPlayLogItem();
   120     void testRadioHistoryItem();
   121     
   121     
   122 private:
   122 private:
   123 	RadioUiEngine* mUiEngine;
   123 	RadioUiEngine* mUiEngine;
   124 	QScopedPointer<RadioEngineWrapper>  mEngineWrapper;
   124 	QScopedPointer<RadioEngineWrapper>  mEngineWrapper;
   125 	RadioStationModel* mRadioStationModel;
   125 	RadioStationModel* mRadioStationModel;
   126 	RadioPlayLogModel* mPlayLogModel;
   126 	RadioHistoryModel* mhistoryModel;
   127 	QScopedPointer<RadioPresetStorage>  mPresetStorage;
   127 	QScopedPointer<RadioPresetStorage>  mPresetStorage;
   128 	int mExpectedStationCount;	
   128 	int mExpectedStationCount;	
   129 	/**
   129 	/**
   130 	 * Internal book keeping used to determine which slots have been entered since calling RadioStationModel 
   130 	 * Internal book keeping used to determine which slots have been entered since calling RadioStationModel 
   131 	 * API method. Used to conclude if the correct signals from RadioStationModel have been received.
   131 	 * API method. Used to conclude if the correct signals from RadioStationModel have been received.