summaryrefslogtreecommitdiff
path: root/ckitcallnotification
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-10-02 16:39:40 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-10-02 16:39:40 +0200
commit0a656b75f3fc80f13424db0e7ec403dff28a366e (patch)
tree23f72a2fde3f718048b49d9806ded3d315d50a80 /ckitcallnotification
parentd9f132f3d5bf41ee4f30e7ea2bd1b61120fa29b7 (diff)
downloadsowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.tar.gz
sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.zip
new notifications list, time syncing
Diffstat (limited to 'ckitcallnotification')
-rw-r--r--ckitcallnotification/ckitcallnotification.cpp9
-rw-r--r--ckitcallnotification/ckitcallnotification.h7
-rw-r--r--ckitcallnotification/ckitcallprovider.cpp2
3 files changed, 10 insertions, 8 deletions
diff --git a/ckitcallnotification/ckitcallnotification.cpp b/ckitcallnotification/ckitcallnotification.cpp
index 72a768e..7362e2d 100644
--- a/ckitcallnotification/ckitcallnotification.cpp
+++ b/ckitcallnotification/ckitcallnotification.cpp
@@ -39,14 +39,19 @@ void CKitCallNotification::activate()
// TODO Actually do something
}
-void CKitCallNotification::clear()
+void CKitCallNotification::dismiss()
{
// TODO Actually reject the call
- emit cleared();
}
void CKitCallNotification::changeDisplayName(const QString &displayName)
{
_displayName = displayName;
+ emit titleChanged();
emit changed();
}
+
+void CKitCallNotification::remove()
+{
+ emit dismissed();
+}
diff --git a/ckitcallnotification/ckitcallnotification.h b/ckitcallnotification/ckitcallnotification.h
index 10453be..bd65e63 100644
--- a/ckitcallnotification/ckitcallnotification.h
+++ b/ckitcallnotification/ckitcallnotification.h
@@ -21,16 +21,13 @@ public:
QString body() const;
void activate();
- void clear();
-
-signals:
- void changed();
- void cleared();
+ void dismiss();
protected:
QDateTime _dateTime;
QString _displayName;
void changeDisplayName(const QString& displayName);
+ void remove();
friend class CKitCallProvider;
};
diff --git a/ckitcallnotification/ckitcallprovider.cpp b/ckitcallnotification/ckitcallprovider.cpp
index acfcca3..5e00977 100644
--- a/ckitcallnotification/ckitcallprovider.cpp
+++ b/ckitcallnotification/ckitcallprovider.cpp
@@ -44,7 +44,7 @@ void CKitCallProvider::activeCallChanged()
} else {
// Call has either been answered, rejected, missed, ..
if (_notification) {
- _notification->clear();
+ _notification->remove();
_notification->deleteLater();
_notification = 0;
}