Possiblity to add sensors from TelldusCenter to be visible in Telldus Live! This closes #186.

This commit is contained in:
Stefan Persson 2013-09-11 14:32:33 +02:00
parent 103eaf05e0
commit b73eae288f
8 changed files with 168 additions and 9 deletions

View file

@ -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();
}