stifui/qt/inc/stfqtuicontroller.h
branchRCL_3
changeset 17 65b472535a0d
parent 13 822c625f7adc
child 19 d40e813b23c0
equal deleted inserted replaced
13:822c625f7adc 17:65b472535a0d
    33     bool OpenEngineIniFile(const QString& fileName);
    33     bool OpenEngineIniFile(const QString& fileName);
    34     QList<QString> GetModuleList();
    34     QList<QString> GetModuleList();
    35     QList<QString> GetCaseListByModule(const QString& moduleName);
    35     QList<QString> GetCaseListByModule(const QString& moduleName);
    36     CSTFCase GetCase(const QString& moduleName, const int index);
    36     CSTFCase GetCase(const QString& moduleName, const int index);
    37     void RunCases(const QList<CSTFCase>& caseList, const TSTFCaseRunningType& type);
    37     void RunCases(const QList<CSTFCase>& caseList, const TSTFCaseRunningType& type);
       
    38     void RepeatRunCases(const QList<CSTFCase>& aCaseList, const bool aIsLoopInfinitely, const int aLoopTimes = 1);
    38     bool AddCaseToSet(const QList<CSTFCase>& aCase, const QString& setName);
    39     bool AddCaseToSet(const QList<CSTFCase>& aCase, const QString& setName);
    39     
    40     
    40     //for set
    41     //for set
    41     QList<QString> GetSetList();
    42     QList<QString> GetSetList();
    42     QList<QString> GetCaseListBySet(const QString& setName);
    43     QList<QString> GetCaseListBySet(const QString& setName);
    56     QList<CSTFCase> GetCasesByStatus(const TSTFCaseStatusType& type);
    57     QList<CSTFCase> GetCasesByStatus(const TSTFCaseStatusType& type);
    57     
    58     
    58     //listener
    59     //listener
    59     void AddStfEventListener(IStfEventListener* listener);
    60     void AddStfEventListener(IStfEventListener* listener);
    60     void RemoveStfEventListener(IStfEventListener* listener);
    61     void RemoveStfEventListener(IStfEventListener* listener);
       
    62     
       
    63     //for repeat execution setting
       
    64     void InitRepeatSetting(const bool aIsLoopInfinitely, const int aLoopTimes);
       
    65     void ResetRepeatSetting();
    61 
    66 
    62 public://implement IStifCaseUpdateListener
    67 public://implement IStifCaseUpdateListener
    63     void OnGetCaseUpdated(CStartedTestCase* aCase, CSTFCase& stfcase, int flags);
    68     void OnGetCaseUpdated(CStartedTestCase* aCase, CSTFCase& stfcase, int flags);
    64     void OnGetCaseOutput(CStartedTestCase* aCase, QString& msg);
    69     void OnGetCaseOutput(CStartedTestCase* aCase, QString& msg);
    65     
    70     
    66 private: //Fire event
    71 private: //Fire event
    67     void FireOnGetOutput(QString message);
    72     void FireOnGetOutput(QString message);
    68     void FireOnSetListChanged();
    73     void FireOnSetListChanged();
    69     void FireOnCaseOutputChanged(IStfEventListener::CaseOutputCommand cmd, int index, QString msg);
    74     void FireOnCaseOutputChanged(IStfEventListener::CaseOutputCommand cmd, int index, QString msg);
    70     
    75     
    71 private://help methods
    76 private:
       
    77     // help methods
    72     CSTFModule GetModuleByName(const QString& moduleName);
    78     CSTFModule GetModuleByName(const QString& moduleName);
       
    79     // Repeat execution cases
       
    80     void Execution();
    73     
    81     
    74 private:
    82 private:
    75     CStifExecutor* executor;
    83     CStifExecutor* executor;
    76     IStfQtUIModel* model;
    84     IStfQtUIModel* model;
    77     QList<IStfEventListener*> listenerList;
    85     QList<IStfEventListener*> listenerList;
    78     bool isShowOutput;
    86     bool isShowOutput;
    79     
    87     
       
    88     // repeat run case related member 
       
    89     // repeat execution case list   
       
    90     QList<CSTFCase> repeatRunCaseList;
       
    91     // current position of the case list
       
    92     int iCurrentRunPos;
       
    93     // is loop infinitely
       
    94     bool isLoopInfinitely;
       
    95     // loop times
       
    96     int loopTimes;
    80     
    97     
    81         
       
    82     };
    98     };
    83 
    99 
    84 
   100 
    85 
   101 
    86 
   102