1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: QT C++ based Class. |
|
15 * IStfQtUIModel is interface of appliction data model. |
|
16 * IStifModelEventListener is used to listen event from data model. |
|
17 * |
|
18 */ |
|
19 #ifndef ISTFQTUIMODEL_H |
|
20 #define ISTFQTUIMODEL_H |
|
21 |
|
22 //#include <TestModuleInfo.h> |
|
23 #include "cstfcase.h" |
|
24 #include "cstfmodule.h" |
|
25 #include <UIStoreIf.h> |
|
26 #include <UIStore.h> |
|
27 #include <UIEngine.h> |
|
28 |
|
29 class IStifModelEventListener |
|
30 { |
|
31 public: |
|
32 virtual void OnCaseStatisticChanged() = 0; |
|
33 virtual void OnRunningCaseChanged() = 0; |
|
34 }; |
|
35 |
|
36 class IStfQtUIModel |
|
37 { |
|
38 public: |
|
39 inline virtual ~IStfQtUIModel(){} |
|
40 virtual void ClearCasesStatus() = 0; |
|
41 virtual QList<CSTFCase> GetCasesByStatus(const TSTFCaseStatusType& type) = 0; |
|
42 virtual void AddRunningCase(const CStartedTestCase* startedCase, const CSTFCase& stfCase) = 0; |
|
43 virtual void RemoveRunningCase(const CStartedTestCase* startedCase) = 0; |
|
44 virtual void AddCaseByStatus(const TSTFCaseStatusType& type, const CSTFCase& aCase) = 0; |
|
45 virtual void PauseCase() = 0; |
|
46 virtual void ResumeCase() = 0; |
|
47 virtual void AbortCase() = 0; |
|
48 |
|
49 virtual void AddStifModelEventListener(IStifModelEventListener* listener) = 0; |
|
50 virtual void RemoveStifModelEventListener(IStifModelEventListener* listener) = 0; |
|
51 |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // ISTFQTUIMODEL_H |
|