2010-03-15 01:50:52 +00:00
|
|
|
#ifndef UAVOBJECTSTEST_H
|
|
|
|
#define UAVOBJECTSTEST_H
|
|
|
|
|
2010-03-28 22:22:19 +00:00
|
|
|
#include "..\uavobjectmanager.h"
|
|
|
|
#include "..\exampleobject.h"
|
2010-03-15 01:50:52 +00:00
|
|
|
#include <QTimer>
|
|
|
|
#include <QTextStream>
|
|
|
|
|
|
|
|
class UAVObjectsTest: QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
UAVObjectsTest();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void objectUpdated(UAVObject* obj);
|
|
|
|
void objectUpdatedAuto(UAVObject* obj);
|
|
|
|
void objectUpdatedManual(UAVObject* obj);
|
|
|
|
void objectUnpacked(UAVObject* obj);
|
|
|
|
void updateRequested(UAVObject* obj);
|
|
|
|
void runTest();
|
|
|
|
void newObject(UAVObject* obj);
|
|
|
|
void newInstance(UAVObject* obj);
|
|
|
|
|
|
|
|
private:
|
|
|
|
UAVObjectManager* objMngr;
|
2010-03-28 22:22:19 +00:00
|
|
|
ExampleObject* obj1;
|
2010-03-15 01:50:52 +00:00
|
|
|
QTimer* timer;
|
|
|
|
QTextStream sout;
|
|
|
|
bool done;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // UAVOBJECTSTEST_H
|