08-03-2014 07:04 PM
I have an issue which is difficult for me to understand and even more difficult to explain so please bear with me!
I am hoping to make a callblocker app for my mobile and I am connecting to Phones callUpdated signal and successfully receive updates in my onCallUpdate slot when an incoming call happens.
My problem is that my onCallUpdate slot is being fired multiple times for one incoming call, the first couple of times call.phonenumber() is blank, I thought this was fine as I could just wait for phonenumber().length() to be greater than 0 before doing something like endcall().
The problem with waiting for the length of the phonenumber to be > 0 and only doing something when the phone number is > 0 is that I also want to detect private numbers but phoneNumber().length() is 0 for private numbers always.
Is there another way for me to only do something in my onCallUpdated slot when the phonenumber() becomes available other than checking length of phonenumber() so then I can tell if its a private number ?
Hope somebody can point me in the right direction with this.
Solved! Go to Solution.
08-04-2014 10:37 AM
08-04-2014 11:19 AM
Looks like you might be right
Thank you for your suggestion, so I just have to check if callid has already reported incoming call state with a blank number and if it has and still is a blank number it's a private number!
Thank you again.