From kde-pim Fri Feb 06 12:05:46 2015 From: Daniel =?ISO-8859-1?Q?Vr=E1til?= Date: Fri, 06 Feb 2015 12:05:46 +0000 To: kde-pim Subject: Re: [Kde-pim] Akonadi::ResourceBase::retrieveItems() Message-Id: <2426328.y3yB3zTYtH () thor> X-MARC-Message: https://marc.info/?l=kde-pim&m=142322436616915 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============7434508224566790283==" --===============7434508224566790283== Content-Type: multipart/signed; boundary="nextPart1704302.oq4eP5asU1"; micalg="pgp-sha1"; protocol="application/pgp-signature" --nextPart1704302.oq4eP5asU1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Thursday, February 05, 2015 06:37:19 PM Martin Koller wrote: > Can this method always return ALL items available, or does the resour= ce have > to know which of these are already known to Akonadi ? Non-incremental sync is supported, just use=20 Akonadi::ResourceBase::itemsRetrieved(). But if you can somehow do incr= emental=20 sync, then use it instead, you will have much better performance. Also if you enable streaming (setItemStreamingEnabled()), then you can = call=20 itemsRetrieved() multiple times, and then just call itemsRetrievalDone(= ) when=20 you are...done ;) Cheers, Dan =2D-=20 Daniel Vr=E1til | dvratil@redhat.com | dvratil on #kde-devel, #kontact,= #akonadi Software Engineer - KDE Desktop Team, Red Hat Inc. GPG Key: 0xC59D614F6F4AE348 Fingerprint: 4EC1 86E3 C54E 0B39 5FDD B5FB C59D 614F 6F4A E348 --nextPart1704302.oq4eP5asU1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABAgAGBQJU1K4eAAoJEMWdYU9vSuNI1CwH/0y4WOKaqx+yxpQ8yJbx3BDA SeZSX4CLWC021w2jl+lnb/xkHvLUFxbh/t+oUWnJmtTHUmoTSY1ii2yEreCt5765 6l18WEEYMMoo6CtW94tIH5PJvctMqbIDcm9mOHE/8DxkI3icSdEvoszbhsQNcZeb IRrXB5QoUGI9z4n1R/ySnzjhYK4w/MhMwbEAt8QYyPiJcfnIyIpU5aITR6BAD/cU eA9VJ9bddWWjI+5oS4YiCXqAo4fpBi8QqyQWvmIorWiaBsF7n9aAHjuYOGOW6tbM 1cZ3mQ4C36XOK+dQHME9aAvAp0FYo10SkbNX/Mp9Dvo2y+QZ2sxH5RVqB16Jo5M= =9OrW -----END PGP SIGNATURE----- --nextPart1704302.oq4eP5asU1-- --===============7434508224566790283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/ --===============7434508224566790283==--