44 lines
902 B
C++
44 lines
902 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 ChaletLogReceived(QByteArray *Log);
|
|
int ConnectedToMaster(bool connected);
|
|
int ChaletCommActivity();
|
|
|
|
int WiFiToggleButtonPressed(bool RequestedState);
|
|
int InverterToggleButtonPressed(bool RequestedState);
|
|
int DoHarakiriButtonClicked(bool Verified);
|
|
int RebootCPUButtonPressed();
|
|
int RequestChaletLogs(QDate StartDate);
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void ChaletPollTimerExpired();
|
|
|
|
};
|
|
|
|
#endif // CCHALET_H
|