stifui/qt/inc/stfqtuicontroller.h
branchRCL_3
changeset 17 65b472535a0d
parent 13 822c625f7adc
child 19 d40e813b23c0
--- a/stifui/qt/inc/stfqtuicontroller.h	Wed Jun 09 09:42:37 2010 +0300
+++ b/stifui/qt/inc/stfqtuicontroller.h	Mon Jun 21 15:41:16 2010 +0300
@@ -35,6 +35,7 @@
     QList<QString> GetCaseListByModule(const QString& moduleName);
     CSTFCase GetCase(const QString& moduleName, const int index);
     void RunCases(const QList<CSTFCase>& caseList, const TSTFCaseRunningType& type);
+    void RepeatRunCases(const QList<CSTFCase>& aCaseList, const bool aIsLoopInfinitely, const int aLoopTimes = 1);
     bool AddCaseToSet(const QList<CSTFCase>& aCase, const QString& setName);
     
     //for set
@@ -58,6 +59,10 @@
     //listener
     void AddStfEventListener(IStfEventListener* listener);
     void RemoveStfEventListener(IStfEventListener* listener);
+    
+    //for repeat execution setting
+    void InitRepeatSetting(const bool aIsLoopInfinitely, const int aLoopTimes);
+    void ResetRepeatSetting();
 
 public://implement IStifCaseUpdateListener
     void OnGetCaseUpdated(CStartedTestCase* aCase, CSTFCase& stfcase, int flags);
@@ -68,8 +73,11 @@
     void FireOnSetListChanged();
     void FireOnCaseOutputChanged(IStfEventListener::CaseOutputCommand cmd, int index, QString msg);
     
-private://help methods
+private:
+    // help methods
     CSTFModule GetModuleByName(const QString& moduleName);
+    // Repeat execution cases
+    void Execution();
     
 private:
     CStifExecutor* executor;
@@ -77,8 +85,16 @@
     QList<IStfEventListener*> listenerList;
     bool isShowOutput;
     
+    // repeat run case related member 
+    // repeat execution case list   
+    QList<CSTFCase> repeatRunCaseList;
+    // current position of the case list
+    int iCurrentRunPos;
+    // is loop infinitely
+    bool isLoopInfinitely;
+    // loop times
+    int loopTimes;
     
-        
     };