diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-11 01:10:25 +0200 |
commit | f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 (patch) | |
tree | 0401716e7af8be4318be1b9e88eca1cc8ad28d39 /harmaccuweather/harmaccuweather.cpp | |
parent | 1b8f2a0e2e63b1f881b6ba7b18982353b9c27b19 (diff) | |
download | sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.tar.gz sowatch-f0564ad9d210cc68bfb1bfc6e56b86fa941ad830.zip |
more fixes
Diffstat (limited to 'harmaccuweather/harmaccuweather.cpp')
-rw-r--r-- | harmaccuweather/harmaccuweather.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/harmaccuweather/harmaccuweather.cpp b/harmaccuweather/harmaccuweather.cpp index 38fc9bc..c4daeb9 100644 --- a/harmaccuweather/harmaccuweather.cpp +++ b/harmaccuweather/harmaccuweather.cpp @@ -2,6 +2,8 @@ using namespace sowatch; +#define ACCUWEATHER_FILE_PATH "/home/user/.config/AccuWeather, Inc./awxapp.conf" + HarmAccuWeather::HarmAccuWeather(QObject *parent) : WeatherNotification(parent), _watcher(new QFileSystemWatcher(this)), @@ -10,7 +12,7 @@ HarmAccuWeather::HarmAccuWeather(QObject *parent) : { // This only works on Harmattan either way, so I guess // hardcoding the path is OK. - _watcher->addPath("/home/user/.config/AccuWeather, Inc./awxapp.conf"); + _watcher->addPath(ACCUWEATHER_FILE_PATH); connect(_watcher, SIGNAL(fileChanged(QString)), SLOT(fileChanged(QString))); _timer->setInterval(5000); @@ -23,7 +25,7 @@ HarmAccuWeather::HarmAccuWeather(QObject *parent) : QSettings* HarmAccuWeather::getAccuweatherData() { - return new QSettings("AccuWeather, Inc.", "awxapp"); + return new QSettings(ACCUWEATHER_FILE_PATH, QSettings::IniFormat); } Notification::Type HarmAccuWeather::type() const |