Hi folks,
as using org.nemomobile.contacts
is now permitted with SFOS 4.5, I wanted to include support for handling contacts back in Fernschreiber. However, for some strange reason, the PeopleModel
seems to have some issues. When loading it in the app, the QtContacts backend reports the following warnings followed by some logs (the last two entries are my logs to check if the model was populated):
[W] unknown:0 - "Failed to attach key memory region for qtcontacts-sqlite-np: QSharedMemory::attach (shmget): doesn't exist"
[W] unknown:0 - "Failed to open contacts transient store"
[W] unknown:0 - "Unable to open synchronous engine database connection"
[W] unknown:0 - QSqlQuery::prepare: database not open
[W] unknown:0 - "Failed to prepare distinct display label group selection query: \n SELECT DISTINCT DisplayLabelGroup FROM DisplayLabels ORDER BY DisplayLabelGroupSortOrder ASC"
[D] unknown:0 - Starting favorites query at 645 ms
[D] unknown:0 - Favorites queried in 860 ms
[D] unknown:0 - Starting metadata query at 1028 ms
[D] onPopulatedChanged:60 - People now populated? true
[D] onPopulatedChanged:61 - Contacts: 0
Despite these issues, the PeopleModel
raises the populated
signal with true
, but without any contacts in the model.
My declaration:
PeopleModel {
requiredProperty: PeopleModel.PhoneNumberRequired
onPopulatedChanged: {
console.log("People now populated? " + populated);
console.log("Contacts: " + count)
}
}
The .desktop file is updated with the ‘Contacts’ permission:
[X-Sailjail]
Permissions=Audio;Contacts;Documents;Downloads;Internet;Location;MediaIndexing;Microphone;Music;Pictures;PublicDir;RemovableMedia;UserDirs;Videos
The contacts permission is also visible in the app settings, so it’s most certainly correctly declared.
Any ideas/hints/documentation? I can derive a lot of things from the QML type declarations, but some help would be appreciated, especially what’s missing to get the contacts loaded properly…