Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadidatasourcerepository.cpp
Show All 37 Lines | 37 | : m_storage(storage), | |||
---|---|---|---|---|---|
38 | m_serializer(serializer) | 38 | m_serializer(serializer) | ||
39 | { | 39 | { | ||
40 | } | 40 | } | ||
41 | 41 | | |||
42 | KJob *DataSourceRepository::update(Domain::DataSource::Ptr source) | 42 | KJob *DataSourceRepository::update(Domain::DataSource::Ptr source) | ||
43 | { | 43 | { | ||
44 | auto collection = m_serializer->createCollectionFromDataSource(source); | 44 | auto collection = m_serializer->createCollectionFromDataSource(source); | ||
45 | Q_ASSERT(collection.isValid()); | 45 | Q_ASSERT(collection.isValid()); | ||
46 | return m_storage->updateCollection(collection); | 46 | return m_storage->updateCollection(collection, this); | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | void DataSourceRepository::showConfigDialog() | 49 | void DataSourceRepository::showConfigDialog() | ||
50 | { | 50 | { | ||
51 | ConfigDialog dialog(qApp->activeWindow()); | 51 | ConfigDialog dialog(qApp->activeWindow()); | ||
52 | dialog.exec(); | 52 | dialog.exec(); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | void DataSourceRepository::windowNeedsDataBackend(QWidget *window) | 55 | void DataSourceRepository::windowNeedsDataBackend(QWidget *window) | ||
56 | { | 56 | { | ||
57 | Akonadi::ControlGui::widgetNeedsAkonadi(window); | 57 | Akonadi::ControlGui::widgetNeedsAkonadi(window); | ||
58 | } | 58 | } |