Previously, the AllPhoneNumbersProperty return value was a toString'ed version of a KContact::PhoneNumber. This looked a little bit like JSON, and is difficult for the client to parse.
Now just return a list of QStrings containing the phone numbers
Previously, the AllPhoneNumbersProperty return value was a toString'ed version of a KContact::PhoneNumber. This looked a little bit like JSON, and is difficult for the client to parse.
Now just return a list of QStrings containing the phone numbers
No Linters Available |
No Unit Test Coverage |
Buildable 12084 | |
Build 12102: arc lint + arc unit |
Also, it looks like KContact::PhoneNumber is set up such that it could be used as a QVariant. From my point of view, the additional information in the PhoneNumber object would be useful so I could display something like "Simon Redman (Mobile)" or "Simon Redman (Home)" in case of multiple matches.
It looks like KContacts::PhoneNumber is set up for passing as a QVariant. It has the marshaller and demarshaller, it would possibly just need to be registered into QMetaType