summaryrefslogtreecommitdiff
path: root/testnotification/testnotificationprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testnotification/testnotificationprovider.cpp')
-rw-r--r--testnotification/testnotificationprovider.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/testnotification/testnotificationprovider.cpp b/testnotification/testnotificationprovider.cpp
index 960f450..f66ae89 100644
--- a/testnotification/testnotificationprovider.cpp
+++ b/testnotification/testnotificationprovider.cpp
@@ -3,14 +3,19 @@
using namespace sowatch;
+int TestNotificationProvider::_counter = 1;
+
TestNotificationProvider::TestNotificationProvider(QObject *parent) :
NotificationProvider(parent),
_timer(new QTimer(this))
{
- QTimer::singleShot(15000, this, SLOT(generateInitialNotification()));
+ QTimer::singleShot(1000, this, SLOT(generateInitialNotification()));
+ QTimer::singleShot(1200, this, SLOT(generateNotification()));
+ QTimer::singleShot(1400, this, SLOT(generateNotification()));
+ QTimer::singleShot(1600, this, SLOT(generateNotification()));
connect(_timer, SIGNAL(timeout()), SLOT(generateNotification()));
_timer->setInterval(60000);
- _timer->start();
+ //_timer->start();
}
TestNotificationProvider::~TestNotificationProvider()
@@ -28,7 +33,9 @@ void TestNotificationProvider::generateInitialNotification()
void TestNotificationProvider::generateNotification()
{
TestNotification *n = new TestNotification(Notification::ImNotification,
- "A friend",
- "I will keep talking to you");
+ QString("Friend %1").arg(_counter++),
+ "Lorem ipsum dolor sit amet. "
+ "Consectetur adipiscing elit. "
+ "Donec non congue augue.");
emit incomingNotification(n);
}