SocketCan: Rename to SerialBusConnection

QtCanBus is not limited to SocketCAN, it also supports various
Windows CAN adapters directly.

Also, add the term Connection to describe the inheritance
hierarchy better.
This commit is contained in:
Andre Hartmann
2017-11-25 17:27:19 +01:00
parent 560701e208
commit 1dd59ed73c
4 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#include <QString>
#include "canconfactory.h"
#include "socketcan.h"
#include "serialbusconnection.h"
#include "gvretserial.h"
using namespace CANCon;
@@ -9,7 +9,7 @@ CANConnection* CanConFactory::create(type pType, QString pPortName)
{
switch(pType) {
case SOCKETCAN:
return new SocketCan(pPortName);
return new SerialBusConnection(pPortName);
case GVRET_SERIAL:
return new GVRetSerial(pPortName);
default: {}