summaryrefslogtreecommitdiff
path: root/ckitcallnotification
diff options
context:
space:
mode:
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;
}