Support new QtPim
This is the proposed fix for #1
It's targeting the
next branch, as things would break for Jolla if this were merged to the
master branch, since you are using an older version of QtPim.
This is a rather huge diff; it might be easier to review it if you do it commit by commit, but there is still a huge commit which I was not able to split it into smaller ones without breaking the build.
There are some TODO notes in there; I believe I don't need them for my use-case, and in any case it might be better if we deal with them in a separate commit.
the oldest commit in the branch tries to simply build the project against a newer version of QtPim, but while the build succeeds, the plugin is not functional, as the QML ContactsModel is always unless the Collections API is implemented. So I wonder if it's worth to have it as a separate commit (and with those
ifdefs) or if it's better to just remove all the ifdefs and not try to dream to achieve source compatibility between the old and the new QtPims.
Anyway, take your time :-)