From f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 11 Aug 2012 01:10:25 +0200 Subject: more fixes --- harmaccuweather/harmaccuprovider.cpp | 1 - harmaccuweather/harmaccuweather.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'harmaccuweather') 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 -- cgit v1.2.3