Additional implementation of new connection system. The GVRET code can

now connect and run its thread.
This commit is contained in:
Collin Kidder
2016-03-26 20:17:10 -04:00
parent e7ded7737a
commit 0bd3a3b95b
14 changed files with 126 additions and 21 deletions
+7 -2
View File
@@ -33,6 +33,11 @@ public:
CANConnection *getConnection();
};
//Gentle reminder, CANConnection objects run in their own thread (each one, different thread)
//so, for the love of God, do not try to access them directly.
//Use the signal/slots system to do indirect calls.
//Please and thank you.
class CANConnection : public QObject
{
Q_OBJECT
@@ -41,7 +46,7 @@ public:
CANConnection(CANFrameModel *, int);
virtual int getNumBuses();
int getBusBase();
QString getConnTypeName();
virtual QString getConnTypeName();
QString getConnPortName();
signals:
@@ -59,7 +64,7 @@ public slots:
virtual void updatePortName(QString); //string version of the port to connect to. This base doesnt know a thing about this value
virtual void stopFrameCapture(int); //pass bus number
virtual void startFrameCapture(int); //pass bus number. Only if stopped. Defaults to started anyway
//virtual void updateBusSettings(int); //bus number that was updated.
virtual void updateBusSettings(CAN_Bus *bus); //reference to the bus that changed.
protected:
bool quit;