if( obj->quit )
{
+ delete obj;
break;
}
props.push_back(VehicleProperty::EngineSpeed);
props.push_back(VehicleProperty::VehicleSpeed);
+ props.push_back(DatabaseLoggingProperty);
return props;
}
{
AsyncPropertyReply* reply = new AsyncPropertyReply(request);
reply->success = false;
+
+ if(request.property == DatabaseLoggingProperty)
+ {
+ if(request.value->value<bool>())
+ {
+ ///TODO: start or stop logging thread
+ }
+ }
+
return reply;
}
#include <glib.h>
+#define DatabaseLoggingProperty "DatabaseLogging"
+
template <typename T>
class Queue
{
:AbstractSinkManager(engine, config)
{
new DatabaseSink(routingEngine, config);
+ VehicleProperty::registerProperty(DatabaseLoggingProperty, [](){return new BasicPropertyType<bool>(false);});
}
};
m_supportedProperties.push_back((*itr)->property);
}
+ m_supportedProperties.push_back(Obd2Connect);
+
re->setSupported(supported(), this);
/*if (openPort(std::string("/dev/pts/7"),115200))
{