summaryrefslogtreecommitdiff
path: root/src/msvc6/testpluginrunner/TestPlugInRunnerModel.h
blob: 3b31cd8f9289c541c6521a32e64b7b12ab9e9542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// //////////////////////////////////////////////////////////////////////////
// Header file TestPlugInRunnerModel.h for class TestPlugInRunnerModel
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2001/06/24
// //////////////////////////////////////////////////////////////////////////
#ifndef TESTPLUGINRUNNERMODEL_H
#define TESTPLUGINRUNNERMODEL_H

#include <TestRunnerModel.h>
class TestPlugIn;


/*! \class TestPlugInRunnerModel
 * \brief This class represents a model for the plug in runner.
 */
class TestPlugInRunnerModel : public TestRunnerModel
{
public:
  /*! Constructs a TestPlugInRunnerModel object.
   */
  TestPlugInRunnerModel();

  /*! Destructor.
   */
  virtual ~TestPlugInRunnerModel();

  void setPlugIn( TestPlugIn *plugIn );

  void reloadPlugIn();

public: // overridden from TestRunnerModel
  void setRootTest( CPPUNIT_NS::Test *rootTest );

private:
  /// Prevents the use of the copy constructor.
  TestPlugInRunnerModel( const TestPlugInRunnerModel &copy );

  /// Prevents the use of the copy operator.
  void operator =( const TestPlugInRunnerModel &copy );

  void freeRootTest();

private:
  TestPlugIn *m_plugIn;
};



// Inlines methods for TestPlugInRunnerModel:
// ------------------------------------------



#endif  // TESTPLUGINRUNNERMODEL_H