diff options
Diffstat (limited to 'testnotification/testnotificationprovider.cpp')
-rw-r--r-- | testnotification/testnotificationprovider.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/testnotification/testnotificationprovider.cpp b/testnotification/testnotificationprovider.cpp index 687780b..8f1db76 100644 --- a/testnotification/testnotificationprovider.cpp +++ b/testnotification/testnotificationprovider.cpp @@ -1,4 +1,5 @@ #include "testnotification.h" +#include "testweathernotification.h" #include "testnotificationprovider.h" using namespace sowatch; @@ -10,10 +11,11 @@ TestNotificationProvider::TestNotificationProvider(QObject *parent) : _timer(new QTimer(this)) { const int initial_delay = 2000; - const int burst_num = 0; + const int burst_num = 1; const int burst_delay = 500; const int extra_delay = 100 * 1000; QTimer::singleShot(initial_delay, this, SLOT(generateInitialNotification())); + QTimer::singleShot(initial_delay + 100, this, SLOT(generateWeatherNotification())); for (int i = 0; i < burst_num; i++) { QTimer::singleShot(initial_delay + burst_delay * (i+1), this, SLOT(generateNotification())); } @@ -34,6 +36,12 @@ void TestNotificationProvider::generateInitialNotification() emit incomingNotification(n); } +void TestNotificationProvider::generateWeatherNotification() +{ + TestWeatherNotification *n = new TestWeatherNotification; + emit incomingNotification(n); +} + void TestNotificationProvider::generateNotification() { TestNotification *n = new TestNotification(Notification::ImNotification, |