diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-10-02 16:39:40 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-10-02 16:39:40 +0200 |
commit | 0a656b75f3fc80f13424db0e7ec403dff28a366e (patch) | |
tree | 23f72a2fde3f718048b49d9806ded3d315d50a80 /ckitcallnotification | |
parent | d9f132f3d5bf41ee4f30e7ea2bd1b61120fa29b7 (diff) | |
download | sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.tar.gz sowatch-0a656b75f3fc80f13424db0e7ec403dff28a366e.zip |
new notifications list, time syncing
Diffstat (limited to 'ckitcallnotification')
-rw-r--r-- | ckitcallnotification/ckitcallnotification.cpp | 9 | ||||
-rw-r--r-- | ckitcallnotification/ckitcallnotification.h | 7 | ||||
-rw-r--r-- | ckitcallnotification/ckitcallprovider.cpp | 2 |
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; } |