*/
-#ifndef OBD2SOURCE_H
-#define OBD2SOURCE_H
-
-
+#ifndef TESTSOURCE_H
+#define TESTSOURCE_H
#include <abstractsource.h>
#include <string>
#include <termios.h>
#include <glib.h>
-
-
-
class TestPlugin : public AbstractSource
{
int supportedOperations();
- void setSupported(PropertyList list);
- void supportedChanged(PropertyList) {}
+ void supportedChanged(const PropertyList &) {}
void setConfiguration(map<string, string> config);
//void randomizeProperties();
- void updateProperty(VehicleProperty::Property property,AbstractPropertyType *value);
+ void updateProperty(VehicleProperty::Property property, AbstractPropertyType *value);
+
+ PropertyInfo getPropertyInfo(const VehicleProperty::Property & property);
+ void propertyChanged(AbstractPropertyType *value);
private:
+ bool testCoreSetSupported();
bool testCoreUpdateSupported();
+ bool testSetAndGet();
+ bool testSubscription();
+
PropertyList m_supportedProperties;
+ int subscriptionsToSupportedCounter;
+ int subscriptionsToUnsupportedCounter;
+ int unsubscriptionsToSupportedCounter;
+ int unsubscriptionsToUnsupportedCounter;
+ int propertyChanges;
+ int supportedPropertyChanges;
};
#endif // OBD2SOURCE_H