Switch ISOTP and UDS handlers to no longer be static.

Now each can be instantiated multiple times with each instance handling
a different ISOTP or UDS stream. This should streamline some upcoming
code
This commit is contained in:
Collin Kidder
2017-08-20 21:34:05 -04:00
parent 0fd4ca9b3f
commit d869b6a126
7 changed files with 46 additions and 52 deletions
+1 -3
View File
@@ -16,8 +16,8 @@ class ISOTP_HANDLER : public QObject
public:
ISOTP_HANDLER();
~ISOTP_HANDLER();
void setExtendedAddressing(bool mode);
static ISOTP_HANDLER* getInstance();
void setReception(bool mode); //set whether to accept and forward frames or not
void sendISOTPFrame(int bus, int ID, QVector<unsigned char> data);
void setProcessAll(bool state);
@@ -51,8 +51,6 @@ private:
void processFrame(const CANFrame &frame);
void checkNeedFlush(uint64_t ID);
static ISOTP_HANDLER* mInstance;
};
#endif // ISOTP_HANDLER_H