diff options
Diffstat (limited to 'ckitcallnotification/ckitcallnotification.cpp')
-rw-r--r-- | ckitcallnotification/ckitcallnotification.cpp | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/ckitcallnotification/ckitcallnotification.cpp b/ckitcallnotification/ckitcallnotification.cpp new file mode 100644 index 0000000..72a768e --- /dev/null +++ b/ckitcallnotification/ckitcallnotification.cpp @@ -0,0 +1,52 @@ +#include "ckitcallnotification.h" + +using namespace sowatch; + +CKitCallNotification::CKitCallNotification(const QString& displayName, QObject *parent) : + Notification(parent), + _dateTime(QDateTime::currentDateTime()), + _displayName(displayName) +{ +} + +Notification::Type CKitCallNotification::type() const +{ + return Notification::CallNotification; +} + +uint CKitCallNotification::count() const +{ + return 1; +} + +QDateTime CKitCallNotification::dateTime() const +{ + return _dateTime; +} + +QString CKitCallNotification::title() const +{ + return _displayName; +} + +QString CKitCallNotification::body() const +{ + return tr("Incoming call"); +} + +void CKitCallNotification::activate() +{ + // TODO Actually do something +} + +void CKitCallNotification::clear() +{ + // TODO Actually reject the call + emit cleared(); +} + +void CKitCallNotification::changeDisplayName(const QString &displayName) +{ + _displayName = displayName; + emit changed(); +} |