aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/itestframework.h
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2016-06-06 15:35:00 +0200
committerChristian Stenger <christian.stenger@qt.io>2016-06-14 11:05:35 +0000
commit8cba580343b2aca6c2fe60dd773480c80a3feda9 (patch)
tree04d597fa9e367d40ab904a6bcbaff79f7e51ca74 /src/plugins/autotest/itestframework.h
parentc64fa0d3292f8c2a849783738075197038a69dfe (diff)
AutoTest: Introduce active state for test frameworks
Change-Id: I0fddce91a239c0a51352a25e34a221fd8880b733 Reviewed-by: David Schulz <david.schulz@theqtcompany.com> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'src/plugins/autotest/itestframework.h')
-rw-r--r--src/plugins/autotest/itestframework.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/plugins/autotest/itestframework.h b/src/plugins/autotest/itestframework.h
index f46454ceee..678f2fb022 100644
--- a/src/plugins/autotest/itestframework.h
+++ b/src/plugins/autotest/itestframework.h
@@ -34,7 +34,12 @@ namespace Internal {
class ITestFramework
{
public:
- virtual ~ITestFramework() { }
+ ITestFramework(bool activeByDefault) : m_active(activeByDefault) {}
+ virtual ~ITestFramework()
+ {
+ delete m_rootNode;
+ delete m_testParser;
+ }
virtual const char *name() const = 0;
virtual unsigned priority() const = 0; // should this be modifyable?
@@ -52,6 +57,9 @@ public:
return m_testParser;
}
+ bool active() const { return m_active; }
+ void setActive(bool active) { m_active = active; }
+
protected:
virtual ITestParser *createTestParser() const = 0;
virtual TestTreeItem *createRootNode() const = 0;
@@ -59,6 +67,7 @@ protected:
private:
TestTreeItem *m_rootNode = 0;
ITestParser *m_testParser = 0;
+ bool m_active = false;
};
} // namespace Internal