diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-15 23:52:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-15 23:52:30 +0200 |
commit | f9ac9d207025fb8d40d1be753cde78beb77aa202 (patch) | |
tree | 117224de19ab0883ba958b9937baed10fa94cc50 /meecastweather/meecastweather.h | |
parent | cf54773b561c324596b25739888b8ab5b4b45bd1 (diff) | |
download | sowatch-f9ac9d207025fb8d40d1be753cde78beb77aa202.tar.gz sowatch-f9ac9d207025fb8d40d1be753cde78beb77aa202.zip |
meecast plugin
Diffstat (limited to 'meecastweather/meecastweather.h')
-rw-r--r-- | meecastweather/meecastweather.h | 19 |
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; }; |