55 lines
1.3 KiB
C++
55 lines
1.3 KiB
C++
#ifndef OTARCIKCAN_H
|
|
#define OTARCIKCAN_H
|
|
|
|
#include <QObject>
|
|
#include "MainWindow.h"
|
|
#include "PCANInterface.h"
|
|
#include "GeneralMessagesLogDispatcher.h"
|
|
#include "CANDevice.h"
|
|
#include <QList>
|
|
#include "SystemConfig.h"
|
|
#include "MQTTClientWrapper.h"
|
|
|
|
|
|
class COtarcikCan : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit COtarcikCan(QObject *parent = 0);
|
|
~COtarcikCan();
|
|
CMainWindow mMainWindow;
|
|
CSystemConfig mSystemConfig;
|
|
CMQTTClientWrapper mCANBusMQTTClient;
|
|
QTimer *mGPTimer;
|
|
|
|
int Start();
|
|
|
|
|
|
int InitCANViewer(QList<CCANMessage *> *MsgList);
|
|
int UpdateCANViewerDataRequest(QList<CCANMessage *> *MsgList);
|
|
|
|
|
|
int SaveCANDevicesConfigRequest(QList<CCANDeviceConfig*> *DevicesConfigList);
|
|
int SaveCloudLoggingConfigRequest(CCloudParams *CloudParams);
|
|
|
|
int SetCANConnectionStatusRequest(bool Connected);
|
|
int SetMQTTConnectionSatusRequest(bool Connected);
|
|
int UpdateCANModuleStatusRequest(QString ModuleName, QString ModuleStatus, QString Buffer);
|
|
|
|
int SaveCANWatchdogSettingsRequest(CCANWatchdogConfig *CANWatchdogConfig);
|
|
|
|
private:
|
|
QList<CCANDevice*> mCANDevicesList;
|
|
CCloudParams mCloudLoggingParams;
|
|
|
|
int PopulateCANDevicesList(QList<CCANDeviceConfig*> *DevicesConfigsList);
|
|
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void GPTimerExpired();
|
|
};
|
|
|
|
#endif // OTARCIKCAN_H
|