Changeset View
Changeset View
Standalone View
Standalone View
src/akonadi/akonadilivequeryintegrator.h
Show First 20 Lines • Show All 289 Lines • ▼ Show 20 Line(s) | |||||
290 | 290 | | |||
291 | template<> | 291 | template<> | ||
292 | inline bool LiveQueryIntegrator::represents<Collection, Domain::DataSource::Ptr>(const Collection &input, const Domain::DataSource::Ptr &output) | 292 | inline bool LiveQueryIntegrator::represents<Collection, Domain::DataSource::Ptr>(const Collection &input, const Domain::DataSource::Ptr &output) | ||
293 | { | 293 | { | ||
294 | return m_serializer->representsCollection(output, input); | 294 | return m_serializer->representsCollection(output, input); | ||
295 | } | 295 | } | ||
296 | 296 | | |||
297 | template<> | 297 | template<> | ||
298 | inline Domain::Note::Ptr LiveQueryIntegrator::create<Item, Domain::Note::Ptr>(const Item &input) | | |||
299 | { | | |||
300 | return m_serializer->createNoteFromItem(input); | | |||
301 | } | | |||
302 | | ||||
303 | template<> | | |||
304 | inline void LiveQueryIntegrator::update<Item, Domain::Note::Ptr>(const Item &input, Domain::Note::Ptr &output) | | |||
305 | { | | |||
306 | m_serializer->updateNoteFromItem(output, input); | | |||
307 | } | | |||
308 | | ||||
309 | template<> | | |||
310 | inline bool LiveQueryIntegrator::represents<Item, Domain::Note::Ptr>(const Item &input, const Domain::Note::Ptr &output) | | |||
311 | { | | |||
312 | return m_serializer->representsItem(output, input); | | |||
313 | } | | |||
314 | | ||||
315 | template<> | | |||
316 | inline Domain::DataSource::Ptr LiveQueryIntegrator::create<Item, Domain::DataSource::Ptr>(const Item &input) | 298 | inline Domain::DataSource::Ptr LiveQueryIntegrator::create<Item, Domain::DataSource::Ptr>(const Item &input) | ||
317 | { | 299 | { | ||
318 | return m_serializer->createDataSourceFromCollection(input.parentCollection(), SerializerInterface::BaseName); | 300 | return m_serializer->createDataSourceFromCollection(input.parentCollection(), SerializerInterface::BaseName); | ||
319 | } | 301 | } | ||
320 | 302 | | |||
321 | template<> | 303 | template<> | ||
322 | inline void LiveQueryIntegrator::update<Item, Domain::DataSource::Ptr>(const Item &input, Domain::DataSource::Ptr &output) | 304 | inline void LiveQueryIntegrator::update<Item, Domain::DataSource::Ptr>(const Item &input, Domain::DataSource::Ptr &output) | ||
323 | { | 305 | { | ||
Show All 20 Lines | |||||
344 | 326 | | |||
345 | template<> | 327 | template<> | ||
346 | inline bool LiveQueryIntegrator::represents<Item, Domain::Project::Ptr>(const Item &input, const Domain::Project::Ptr &output) | 328 | inline bool LiveQueryIntegrator::represents<Item, Domain::Project::Ptr>(const Item &input, const Domain::Project::Ptr &output) | ||
347 | { | 329 | { | ||
348 | return m_serializer->representsItem(output, input); | 330 | return m_serializer->representsItem(output, input); | ||
349 | } | 331 | } | ||
350 | 332 | | |||
351 | template<> | 333 | template<> | ||
352 | inline Domain::Tag::Ptr LiveQueryIntegrator::create<Tag, Domain::Tag::Ptr>(const Tag &input) | | |||
353 | { | | |||
354 | return m_serializer->createTagFromAkonadiTag(input); | | |||
355 | } | | |||
356 | | ||||
357 | template<> | | |||
358 | inline void LiveQueryIntegrator::update<Tag, Domain::Tag::Ptr>(const Tag &input, Domain::Tag::Ptr &output) | | |||
359 | { | | |||
360 | m_serializer->updateTagFromAkonadiTag(output, input); | | |||
361 | } | | |||
362 | | ||||
363 | template<> | | |||
364 | inline bool LiveQueryIntegrator::represents<Tag, Domain::Tag::Ptr>(const Tag &input, const Domain::Tag::Ptr &output) | | |||
365 | { | | |||
366 | return m_serializer->representsAkonadiTag(output, input); | | |||
367 | } | | |||
368 | | ||||
369 | template<> | | |||
370 | inline Domain::Task::Ptr LiveQueryIntegrator::create<Item, Domain::Task::Ptr>(const Item &input) | 334 | inline Domain::Task::Ptr LiveQueryIntegrator::create<Item, Domain::Task::Ptr>(const Item &input) | ||
371 | { | 335 | { | ||
372 | return m_serializer->createTaskFromItem(input); | 336 | return m_serializer->createTaskFromItem(input); | ||
373 | } | 337 | } | ||
374 | 338 | | |||
375 | template<> | 339 | template<> | ||
376 | inline void LiveQueryIntegrator::update<Item, Domain::Task::Ptr>(const Item &input, Domain::Task::Ptr &output) | 340 | inline void LiveQueryIntegrator::update<Item, Domain::Task::Ptr>(const Item &input, Domain::Task::Ptr &output) | ||
377 | { | 341 | { | ||
Show All 28 Lines |