[Kde-pim] Dragging akonadi items
Robin Atwood
robin at binro.org
Sat Feb 27 13:56:14 GMT 2010
On Wednesday 24 February 2010, Tobias Koenig wrote:
> To get the actual data, you have to start a
> Akonadi::ItemFetchJob.
>
> KUrl url = ... // extract url from drag object
>
> Akonadi::Item item = Akonadi::Item::fromUrl( url );
>
> Akonadi::ItemFetchJob *job = new Akonadi::ItemFetchJob( item );
> job->fetchScope()->fullPayload();
> connect( job, SIGNAL( result( KJob* ) ), SLOT( fetchedItem( KJob* ) ) );
Tobias -
Problem solved, there was a small typo in your helpful example. The
penultimate line above should be:
job->fetchScope()->fetchFullPayload();
Then everything leapt into life!
Cheers
-Robin
--
----------------------------------------------------------------------
Robin Atwood.
"Ship me somewheres east of Suez, where the best is like the worst,
Where there ain't no Ten Commandments an' a man can raise a thirst"
from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list