summaryrefslogtreecommitdiff
path: root/ckitcallnotification
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-25 01:36:10 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-25 01:36:10 +0200
commit2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (patch)
treeb2b8341615898e5cbf5cdb08ee34a629df093897 /ckitcallnotification
parent5153fb9a2b5d8a7af069a75b75bdc7bee591d0a9 (diff)
downloadsowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.tar.gz
sowatch-2b4e878938215ac743bdc36deace4c2a4cb0c7a2.zip
preparing for watchlet support
Diffstat (limited to 'ckitcallnotification')
-rw-r--r--ckitcallnotification/ckitcallprovider.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ckitcallnotification/ckitcallprovider.cpp b/ckitcallnotification/ckitcallprovider.cpp
index adcb6d5..90dab97 100644
--- a/ckitcallnotification/ckitcallprovider.cpp
+++ b/ckitcallnotification/ckitcallprovider.cpp
@@ -21,9 +21,17 @@ CKitCallProvider::~CKitCallProvider()
void CKitCallProvider::activeCallChanged()
{
QVariantMap info = _activeCall->value().toMap();
+ qDebug() << "active call changed" << info;
+ if (!info.contains("state")) {
+ qWarning() << "broken active call context property";
+ }
int state = info["state"].toInt();
if (state == 0) {
QString displayName = info["displayName"].toString();
+ if (displayName.isEmpty()) {
+ // Ignore call until display name is not empty.
+ return;
+ }
// "Incoming call"
if (_notification) {
_notification->changeDisplayName(displayName);