summaryrefslogtreecommitdiff
path: root/meecastweather/meecastweather.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-15 23:52:30 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-15 23:52:30 +0200
commitf9ac9d207025fb8d40d1be753cde78beb77aa202 (patch)
tree117224de19ab0883ba958b9937baed10fa94cc50 /meecastweather/meecastweather.h
parentcf54773b561c324596b25739888b8ab5b4b45bd1 (diff)
downloadsowatch-f9ac9d207025fb8d40d1be753cde78beb77aa202.tar.gz
sowatch-f9ac9d207025fb8d40d1be753cde78beb77aa202.zip
meecast plugin
Diffstat (limited to 'meecastweather/meecastweather.h')
-rw-r--r--meecastweather/meecastweather.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/meecastweather/meecastweather.h b/meecastweather/meecastweather.h
index 7bd1561..9526726 100644
--- a/meecastweather/meecastweather.h
+++ b/meecastweather/meecastweather.h
@@ -16,7 +16,7 @@ class MeeCastWeather : public WeatherNotification
public:
explicit MeeCastWeather(QObject *parent = 0);
- static QString configFilePath();
+ const static QLatin1String configFilePath;
Type type() const;
uint count() const;
@@ -33,17 +33,26 @@ public:
private slots:
void fileChanged(const QString& path);
- void update();
+ void parseConfigFile();
+ void parseStationFile();
+ void handleTimeout();
private:
QFileSystemWatcher* _watcher;
QTimer* _timer;
- bool _metric;
+ QString _stationFilePath;
+
+ bool _configFileChanged;
+ bool _stationFileChanged;
+
+ Unit _tempUnit;
+ QString _location;
+
QDateTime _lastUpdate;
- QString _lastLocation;
int _lastTemp;
- int _lastWxCode;
+ int _lastCode;
+ QString _lastText;
};