diff --git a/interfaces/org.freedesktop.Akonadi.NotificationManager.xml b/interfaces/org.freedesktop.Akonadi.NotificationManager.xml
--- a/interfaces/org.freedesktop.Akonadi.NotificationManager.xml
+++ b/interfaces/org.freedesktop.Akonadi.NotificationManager.xml
@@ -46,5 +46,9 @@
+
+
+
+
diff --git a/server/src/notificationmanager.h b/server/src/notificationmanager.h
--- a/server/src/notificationmanager.h
+++ b/server/src/notificationmanager.h
@@ -101,6 +101,7 @@
Q_SCRIPTABLE int notificationCount() const;
Q_SCRIPTABLE QStringList debugMessages() const;
Q_SCRIPTABLE QStringList listNotifications() const;
+ Q_SCRIPTABLE QStringList triggerTimer();
Q_SIGNALS:
Q_SCRIPTABLE void notify( const Akonadi::NotificationMessage::List &msgs );
diff --git a/server/src/notificationmanager.cpp b/server/src/notificationmanager.cpp
--- a/server/src/notificationmanager.cpp
+++ b/server/src/notificationmanager.cpp
@@ -260,3 +260,13 @@
{
return mDebugMessages;
}
+
+QStringList NotificationManager::triggerTimer()
+{
+ QStringList ret;
+ ret << QString::fromUtf8("The timer is currently %1").arg(mTimer.isActive() ? QString::fromUtf8("active"): QString::fromUtf8("inactive"));
+ ret << QString::fromUtf8("The intervall is currently %1 msec").arg(mTimer.interval());
+ mTimer.stop();
+ emitPendingNotifications();
+ return ret;
+}