summaryrefslogtreecommitdiff
path: root/meecastweather/meecastprovider.cpp
blob: aaecb8bfe3cdf6275617d3a11884a6bdc000d210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <QtCore/QtDebug>
#include <QtCore/QTimer>
#include "meecastweather.h"
#include "meecastprovider.h"

using namespace sowatch;

const QLatin1String MeeCastProvider::myId("meecast");

MeeCastProvider::MeeCastProvider(QObject *parent) :
	NotificationProvider(parent)
{
	// Give some time to send the first notification
	QTimer::singleShot(2000, this, SLOT(generateNotification()));
}

MeeCastProvider::~MeeCastProvider()
{
}

void MeeCastProvider::generateNotification()
{
	if (QFile::exists(MeeCastWeather::configFilePath)) {
		emit incomingNotification(new MeeCastWeather(this));
	}
}