15 #include "connector.h"
16 #include "qalphacloud.h"
17 #include "qalphacloud_export.h"
22 class OneDateEnergyPrivate;
38 Q_PROPERTY(
QAlphaCloud::Connector *connector READ connector WRITE setConnector NOTIFY connectorChanged REQUIRED)
45 Q_PROPERTY(QString serialNumber READ serialNumber WRITE setSerialNumber NOTIFY serialNumberChanged REQUIRED)
51 Q_PROPERTY(QDate date READ date WRITE setDate RESET resetDate NOTIFY dateChanged)
64 Q_PROPERTY(
bool cached READ cached WRITE setCached NOTIFY cachedChanged)
69 Q_PROPERTY(
int photovoltaic READ photovoltaic NOTIFY photovoltaicChanged)
74 Q_PROPERTY(
int totalLoad READ totalLoad NOTIFY totalLoadChanged)
78 Q_PROPERTY(
int input READ input NOTIFY inputChanged)
82 Q_PROPERTY(
int output READ output NOTIFY outputChanged)
87 Q_PROPERTY(
int charge READ charge NOTIFY chargeChanged)
91 Q_PROPERTY(
int discharge READ discharge NOTIFY dischargeChanged)
97 Q_PROPERTY(
int gridCharge READ gridCharge NOTIFY gridChargeChanged)
107 Q_PROPERTY(QJsonObject rawJson READ rawJson NOTIFY rawJsonChanged)
116 Q_PROPERTY(
bool valid READ valid NOTIFY validChanged STORED
false)
135 Q_PROPERTY(QString errorString READ errorString NOTIFY errorStringChanged)
152 OneDateEnergy(
Connector *connector,
const QString &serialNumber,
const QDate &date, QObject *parent =
nullptr);
155 Q_REQUIRED_RESULT
Connector *connector()
const;
157 Q_SIGNAL
void connectorChanged(
Connector *connector);
159 Q_REQUIRED_RESULT QString serialNumber()
const;
160 void setSerialNumber(
const QString &serialNumber);
161 Q_SIGNAL
void serialNumberChanged(
const QString &serialNumber);
163 Q_REQUIRED_RESULT QDate date()
const;
164 void setDate(
const QDate &date);
166 Q_SIGNAL
void dateChanged(
const QDate &date);
168 Q_REQUIRED_RESULT
bool cached()
const;
169 void setCached(
bool cached);
170 Q_SIGNAL
void cachedChanged(
bool cached);
172 Q_REQUIRED_RESULT
int totalLoad()
const;
173 Q_SIGNAL
void totalLoadChanged(
int totalLoad);
175 Q_REQUIRED_RESULT
int photovoltaic()
const;
176 Q_SIGNAL
void photovoltaicChanged(
int photovoltaic);
178 Q_REQUIRED_RESULT
int input()
const;
179 Q_SIGNAL
void inputChanged(
int input);
181 Q_REQUIRED_RESULT
int output()
const;
182 Q_SIGNAL
void outputChanged(
int output);
184 Q_REQUIRED_RESULT
int charge()
const;
185 Q_SIGNAL
void chargeChanged(
int charge);
187 Q_REQUIRED_RESULT
int discharge()
const;
188 Q_SIGNAL
void dischargeChanged(
int discharge);
190 Q_REQUIRED_RESULT
int gridCharge()
const;
191 Q_SIGNAL
void gridChargeChanged(
int gridCharge);
193 Q_REQUIRED_RESULT QJsonObject rawJson()
const;
194 Q_SIGNAL
void rawJsonChanged();
196 Q_REQUIRED_RESULT
bool valid()
const;
197 Q_SIGNAL
void validChanged(
bool valid);
205 QString errorString()
const;
206 Q_SIGNAL
void errorStringChanged(
const QString &errorString);
238 std::unique_ptr<OneDateEnergyPrivate>
const d;
API Connection.
Definition: connector.h:39
Cumulative daily energy information.
Definition: onedateenergy.h:32
Utility namespace.
Definition: apirequest.cpp:24
RequestStatus
Request status.
Definition: qalphacloud.h:28
ErrorCode
Error codes.
Definition: qalphacloud.h:45