<table><tr><td style="">sredman retitled this revision from "Add first-cut contacts-reading plugin" to "Add contacts-reading plugin".<br />sredman edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-uybiyxzwkkju335/" rel="noreferrer">(Show Details)</a><br />sredman edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-wzdrfpmyfvjkc3h/" rel="noreferrer">(Show Details)</a>
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9691" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">A<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ble to request the entire contacts book from the android-side plugin,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">dd a plugin to KDE Connect which supports reading the Android contacts databases and exporting that data over DBus<br />
 - Currently supports getting contact names, email addresses, and phone numbers<br />
 - All contacts are associated with a unique ID<br />
 - After getting a valid uID, more information about that contact can be requested by sending that uID as part of an argument to the DBus methods<br />
 - Phone number and email address entries are stored as a triple of the phone number or email address, an integer representing the type, and a label, if defined<br />
</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">then export them as a massive</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Phone number and email address types are currently not defined</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">unsorted list to DBus</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">but happen to match the types defined by Android's contacts databases</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Needs real users to suggest a better DBus interface.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Use some DBus debugger, such as d-feet or QDBusViewer to push and poke the DBus interfaces:<br />
 - Start by calling getAllContactUIDs, which returns a list of all valid uIDs<br />
 - Take some or all of those uIDs and call getNamesByUIDs to see who in your contacts book is being represented<br />
 - Take some or all of those uIDs and call getPhonesByUIDs or getEmailsByUIDs, and verify that the data coming back is the correct data as you have entered it in your contacts database<br />
 - Make up some uID and enter it into getNamesByUIDs, getPhonesByUIDs,</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Current</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">and getEmailsByUIDs to</span> ver<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">sio</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ify the plugi</span>n is <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">proof-of-concept only</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">able to handle 'bad' data</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R224 KDE Connect</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9691" rel="noreferrer">https://phabricator.kde.org/D9691</a></div></div><br /><div><strong>To: </strong>sredman, KDE Connect<br /></div>