blob: 39cb4d140a7a055629a32a8c36afe83ad5ea0595 (
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
55
56
57
58
59
60
61
62
|
// //////////////////////////////////////////////////////////////////////////
// Header file MostRecentTests.h for class MostRecentTests
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2001/09/20
// //////////////////////////////////////////////////////////////////////////
#ifndef MOSTRECENTTESTS_H
#define MOSTRECENTTESTS_H
#include <cppunit/Test.h>
#include <qstring.h>
#include <qlist.h>
#include <qobject.h>
/*! \class MostRecentTests
* \brief This class represents the list of the recent tests.
*/
class MostRecentTests : public QObject
{
Q_OBJECT
public:
/*! Constructs a MostRecentTests object.
*/
MostRecentTests();
/*! Destructor.
*/
virtual ~MostRecentTests();
void setTestToRun( CPPUNIT_NS::Test *test );
CPPUNIT_NS::Test *testToRun();
int testCount();
QString testNameAt( int index );
CPPUNIT_NS::Test *testAt( int index );
signals:
void listChanged();
void testToRunChanged( CPPUNIT_NS::Test *testToRun );
public slots:
void selectTestToRun( int index );
private:
/// Prevents the use of the copy constructor.
MostRecentTests( const MostRecentTests © );
/// Prevents the use of the copy operator.
void operator =( const MostRecentTests © );
private:
QList<CPPUNIT_NS::Test> m_tests;
};
// Inlines methods for MostRecentTests:
// ------------------------------------
#endif // MOSTRECENTTESTS_H
|