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 * CSTFCase used to describe a test case. |
|
16 * |
|
17 */ |
|
18 #ifndef CSTFCASE_H |
|
19 #define CSTFCASE_H |
|
20 #include "QString" |
|
21 |
|
22 enum TSTFCaseRunningType |
|
23 { |
|
24 Sequentially = 0, |
|
25 Parallel |
|
26 }; |
|
27 |
|
28 enum TSTFCaseStatusType |
|
29 { |
|
30 EStatusRunning = 0x00000001, |
|
31 EStatusExecuted = 0x00000002, |
|
32 EStatusPassed = 0x00000004, |
|
33 EStatusFailed = 0x00000008, |
|
34 EStatusAborted = 0x00000010, |
|
35 EStatusCrashed = 0x00000020, |
|
36 EStatusAll = 0x000000ff, |
|
37 }; |
|
38 |
|
39 class CSTFCase |
|
40 { |
|
41 public: |
|
42 CSTFCase() {isActive = true; caseIndex=-1;} |
|
43 CSTFCase(QString name, int index) {caseName = name; caseIndex = index; isActive = true;} |
|
44 |
|
45 public: |
|
46 QString& Name(){return caseName;} |
|
47 int Index(){return caseIndex;} |
|
48 bool IsActive(){return isActive;} |
|
49 QString& ModuleName() {return moduleName;} |
|
50 |
|
51 public: |
|
52 void SetName(const QString name){caseName = name; } |
|
53 void SetIndex(const int index){caseIndex = index;} |
|
54 void SetActive(const bool active) {isActive = active;} |
|
55 void SetModuleName(const QString name){moduleName = name;} |
|
56 |
|
57 private: |
|
58 QString caseName; |
|
59 int caseIndex; |
|
60 bool isActive; |
|
61 QString moduleName; |
|
62 }; |
|
63 #endif // CSTFCASE_H |
|