diff options
Diffstat (limited to 'harmaccuweather')
-rw-r--r-- | harmaccuweather/harmaccuprovider.cpp | 1 | ||||
-rw-r--r-- | harmaccuweather/harmaccuweather.cpp | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/harmaccuweather/harmaccuprovider.cpp b/harmaccuweather/harmaccuprovider.cpp index 0eedf04..2c26b67 100644 --- a/harmaccuweather/harmaccuprovider.cpp +++ b/harmaccuweather/harmaccuprovider.cpp @@ -14,7 +14,6 @@ HarmAccuProvider::HarmAccuProvider(QObject *parent) : HarmAccuProvider::~HarmAccuProvider() { - } void HarmAccuProvider::generateNotification() 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 |