Changeset View
Changeset View
Standalone View
Standalone View
src/zanshin/migrator/zanshin021migrator.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 43 | { | |||
---|---|---|---|---|---|
45 | return item.hasPayload<KCalCore::Todo::Ptr>() && !item.payload<KCalCore::Todo::Ptr>()->customProperty(Serializer::customPropertyAppName(), Serializer::customPropertyIsProject()).isEmpty(); | 45 | return item.hasPayload<KCalCore::Todo::Ptr>() && !item.payload<KCalCore::Todo::Ptr>()->customProperty(Serializer::customPropertyAppName(), Serializer::customPropertyIsProject()).isEmpty(); | ||
46 | } | 46 | } | ||
47 | 47 | | |||
48 | 48 | | |||
49 | Zanshin021Migrator::SeenItemHash Zanshin021Migrator::fetchAllItems() | 49 | Zanshin021Migrator::SeenItemHash Zanshin021Migrator::fetchAllItems() | ||
50 | { | 50 | { | ||
51 | SeenItemHash hash; | 51 | SeenItemHash hash; | ||
52 | 52 | | |||
53 | auto collectionsJob = m_storage.fetchCollections(Akonadi::Collection::root(), Akonadi::Storage::Recursive); | 53 | auto collectionsJob = m_storage.fetchCollections(Akonadi::Collection::root(), Akonadi::Storage::Recursive, nullptr); | ||
54 | collectionsJob->kjob()->exec(); | 54 | collectionsJob->kjob()->exec(); | ||
55 | 55 | | |||
56 | auto collections = collectionsJob->collections(); | 56 | auto collections = collectionsJob->collections(); | ||
57 | foreach (const auto &collection, collections) { | 57 | foreach (const auto &collection, collections) { | ||
58 | auto job = m_storage.fetchItems(collection, nullptr); | 58 | auto job = m_storage.fetchItems(collection, nullptr); | ||
59 | job->kjob()->exec(); | 59 | job->kjob()->exec(); | ||
60 | auto items = job->items(); | 60 | auto items = job->items(); | ||
61 | foreach (const Akonadi::Item &item, items) { | 61 | foreach (const Akonadi::Item &item, items) { | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |