2020-09-13 13:50:05 -04:00

40 lines
741 B
C++

#ifndef CCHALET_H
#define CCHALET_H
#include "ChaletGui.h"
#include <QObject>
#include <QTimer>
#include "ChaletData.h"
class CChaletMasterCtrlInterface;
class CChalet : public QObject
{
Q_OBJECT
public:
explicit CChalet(CChaletGui *ChaletGuiPtr);
~CChalet();
CChaletGui *mChaletGui;
CChaletMasterCtrlInterface *mNetworkInterface;
QTimer *mChaletPollTimer;
int Start();
int ChaletStatusReceived(CChaletMainStatus Status);
int WiFiToggleButtonPressed(bool RequestedState);
int InverterToggleButtonPressed(bool RequestedState);
int DoHarakiriButtonClicked(bool Verified);
int RebootCPUButtonPressed();
signals:
public slots:
void ChaletPollTimerExpired();
};
#endif // CCHALET_H