Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadiprojectrepository.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 50 | { | |||
---|---|---|---|---|---|
52 | Q_ASSERT(item.isValid()); | 52 | Q_ASSERT(item.isValid()); | ||
53 | return m_storage->updateItem(item, this); | 53 | return m_storage->updateItem(item, this); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | KJob *ProjectRepository::remove(Domain::Project::Ptr project) | 56 | KJob *ProjectRepository::remove(Domain::Project::Ptr project) | ||
57 | { | 57 | { | ||
58 | auto item = m_serializer->createItemFromProject(project); | 58 | auto item = m_serializer->createItemFromProject(project); | ||
59 | Q_ASSERT(item.isValid()); | 59 | Q_ASSERT(item.isValid()); | ||
60 | return m_storage->removeItem(item); | 60 | return m_storage->removeItem(item, this); | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | KJob *ProjectRepository::associate(Domain::Project::Ptr parent, Domain::Task::Ptr child) | 63 | KJob *ProjectRepository::associate(Domain::Project::Ptr parent, Domain::Task::Ptr child) | ||
64 | { | 64 | { | ||
65 | Item childItem = m_serializer->createItemFromTask(child); | 65 | Item childItem = m_serializer->createItemFromTask(child); | ||
66 | Q_ASSERT(childItem.isValid()); | 66 | Q_ASSERT(childItem.isValid()); | ||
67 | 67 | | |||
68 | auto job = new Utils::CompositeJob(); | 68 | auto job = new Utils::CompositeJob(); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |