Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadilivequeryintegrator.h
Show First 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | |||||
308 | 308 | | |||
309 | template<> | 309 | template<> | ||
310 | inline bool LiveQueryIntegrator::represents<Item, Domain::Note::Ptr>(const Item &input, const Domain::Note::Ptr &output) | 310 | inline bool LiveQueryIntegrator::represents<Item, Domain::Note::Ptr>(const Item &input, const Domain::Note::Ptr &output) | ||
311 | { | 311 | { | ||
312 | return m_serializer->representsItem(output, input); | 312 | return m_serializer->representsItem(output, input); | ||
313 | } | 313 | } | ||
314 | 314 | | |||
315 | template<> | 315 | template<> | ||
316 | inline Domain::DataSource::Ptr LiveQueryIntegrator::create<Item, Domain::DataSource::Ptr>(const Item &input) | ||||
317 | { | ||||
318 | return m_serializer->createDataSourceFromCollection(input.parentCollection(), SerializerInterface::BaseName); | ||||
319 | } | ||||
320 | | ||||
321 | template<> | ||||
322 | inline void LiveQueryIntegrator::update<Item, Domain::DataSource::Ptr>(const Item &input, Domain::DataSource::Ptr &output) | ||||
323 | { | ||||
324 | m_serializer->updateDataSourceFromCollection(output, input.parentCollection(), SerializerInterface::BaseName); | ||||
325 | } | ||||
326 | | ||||
327 | template<> | ||||
328 | inline bool LiveQueryIntegrator::represents<Item, Domain::DataSource::Ptr>(const Item &input, const Domain::DataSource::Ptr &output) | ||||
329 | { | ||||
330 | return m_serializer->representsCollection(output, input.parentCollection()); | ||||
331 | } | ||||
332 | | ||||
333 | template<> | ||||
316 | inline Domain::Project::Ptr LiveQueryIntegrator::create<Item, Domain::Project::Ptr>(const Item &input) | 334 | inline Domain::Project::Ptr LiveQueryIntegrator::create<Item, Domain::Project::Ptr>(const Item &input) | ||
317 | { | 335 | { | ||
318 | return m_serializer->createProjectFromItem(input); | 336 | return m_serializer->createProjectFromItem(input); | ||
319 | } | 337 | } | ||
320 | 338 | | |||
321 | template<> | 339 | template<> | ||
322 | inline void LiveQueryIntegrator::update<Item, Domain::Project::Ptr>(const Item &input, Domain::Project::Ptr &output) | 340 | inline void LiveQueryIntegrator::update<Item, Domain::Project::Ptr>(const Item &input, Domain::Project::Ptr &output) | ||
323 | { | 341 | { | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |