Possiblity to add sensors from TelldusCenter to be visible in Telldus Live! This closes #186.
This commit is contained in:
parent
103eaf05e0
commit
b73eae288f
8 changed files with 168 additions and 9 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
class Sensor::PrivateData {
|
||||
public:
|
||||
bool hasTemperature, hasHumidity, hasRainRate, hasRainTotal, hasWindDirection, hasWindAverage, hasWindGust, showInList;
|
||||
bool hasTemperature, hasHumidity, hasRainRate, hasRainTotal, hasWindDirection, hasWindAverage, hasWindGust, showInList, sendToLive;
|
||||
int id;
|
||||
QString model, name, protocol;
|
||||
QDateTime lastUpdated;
|
||||
|
@ -18,6 +18,7 @@ Sensor::Sensor(QObject *parent) :
|
|||
d = new PrivateData;
|
||||
d->id = 0;
|
||||
d->showInList = false;
|
||||
d->sendToLive = false;
|
||||
}
|
||||
|
||||
Sensor::~Sensor() {
|
||||
|
@ -131,3 +132,12 @@ void Sensor::setShowInList(bool show){
|
|||
d->showInList = show;
|
||||
emit showInListChanged();
|
||||
}
|
||||
|
||||
bool Sensor::sendToLive() const{
|
||||
return d->sendToLive;
|
||||
}
|
||||
|
||||
void Sensor::setSendToLive(bool send){
|
||||
d->sendToLive = send;
|
||||
emit sendToLiveChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue