Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Weixuan Xiao
kdeconnect-kde
Commits
d48b8f14
Commit
d48b8f14
authored
Jul 25, 2013
by
Albert Vaca Cintora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call notifications now show 'unknown number' instead of nothing when receiving a private call
parent
ee7f6b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
daemon/packageinterfaces/notificationpackageinterface.cpp
daemon/packageinterfaces/notificationpackageinterface.cpp
+4
-3
No files found.
daemon/packageinterfaces/notificationpackageinterface.cpp
View file @
d48b8f14
...
...
@@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
if
(
npType
==
"ringing"
)
{
type
=
"callReceived"
;
icon
=
"call-start"
;
content
=
"Incoming call from "
+
np
.
get
<
QString
>
(
"phoneNumber"
);
QString
number
=
content
=
"Incoming call from "
+
np
.
get
<
QString
>
(
"phoneNumber"
,
"unknown number"
);
}
else
if
(
npType
==
"missedCall"
)
{
type
=
"missedCall"
;
icon
=
"call-start"
;
content
=
"Missed call from "
+
np
.
get
<
QString
>
(
"phoneNumber"
);
content
=
"Missed call from "
+
np
.
get
<
QString
>
(
"phoneNumber"
,
"unknown number"
);
}
else
if
(
npType
==
"sms"
)
{
type
=
"smsReceived"
;
icon
=
"mail-receive"
;
content
=
"SMS received from "
+
np
.
get
<
QString
>
(
"phoneNumber"
);
content
=
"SMS received from "
+
np
.
get
<
QString
>
(
"phoneNumber"
,
"unknown number"
);
}
else
if
(
npType
==
"battery"
)
{
type
=
"battery100"
;
icon
=
"battery-100"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment