42 #ifndef QTESTCOREELEMENT_H 43 #define QTESTCOREELEMENT_H 45 #include <QtTest/qtestcorelist.h> 46 #include <QtTest/qtestelementattribute.h> 54 template <
class ElementType>
75 template<
class ElementType>
81 template<
class ElementType>
87 template <
class ElementType>
90 if(attributeIndex == -1)
97 testAttribute->
setPair(attributeIndex, value);
101 template <
class ElementType>
107 template <
class ElementType>
112 return attrb->
value();
117 template <
class ElementType>
122 return attrb->
name();
127 template <
class ElementType>
130 const char *xmlElementNames[] =
143 return xmlElementNames[
type];
148 template <
class ElementType>
154 template <
class ElementType>
#define QT_END_NAMESPACE
This macro expands to.
bool setPair(QTest::AttributeIndex attributeIndex, const char *value)
LogElementType
The enum specifies the kinds of test log messages.
const char * value() const
QTest::LogElementType type
const char * attributeName(QTest::AttributeIndex index) const
void addAttribute(const QTest::AttributeIndex index, const char *value)
const char * name() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTestCoreElement(int type=-1)
virtual ~QTestCoreElement()
const char * attributeValue(QTest::AttributeIndex index) const
const QTestElementAttribute * attribute(QTest::AttributeIndex index) const
QTestElementAttribute * attributes() const
const char * elementName() const
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
QTestElementAttribute * listOfAttributes
QTest::LogElementType elementType() const
AttributeIndex
This enum numbers the different tests.
QTest::AttributeIndex index() const