Preliminary pass at converting connection system to use a more generic
approach and support more devices and multiple devices at the same time.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include "canconnectioncontainer.h"
|
||||
|
||||
CANConnectionContainer::CANConnectionContainer(CANConnection *conn)
|
||||
{
|
||||
thread = new QThread();
|
||||
connection = conn;
|
||||
connection->moveToThread(thread);
|
||||
}
|
||||
|
||||
CANConnectionContainer::~CANConnectionContainer()
|
||||
{
|
||||
//have to stop the actual execution first before deleting
|
||||
delete thread;
|
||||
delete connection;
|
||||
}
|
||||
Reference in New Issue
Block a user