summaryrefslogtreecommitdiff
path: root/ckitcallnotification/ckitcallnotification.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-24 20:52:17 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-24 20:52:17 +0200
commita1ec50943454ba4674c8c5e5d5dadcdbd414b111 (patch)
tree163aed51758c98fa6feec35a344aa8b5095c32e5 /ckitcallnotification/ckitcallnotification.cpp
parentcba26597f1c09764d37be0d13863ec5d5c340da0 (diff)
downloadsowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.tar.gz
sowatch-a1ec50943454ba4674c8c5e5d5dadcdbd414b111.zip
Incoming phone calls working!
Diffstat (limited to 'ckitcallnotification/ckitcallnotification.cpp')
-rw-r--r--ckitcallnotification/ckitcallnotification.cpp52
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();
+}