Akonadi::AgentBase::ObserverV3

Search for usage in LXR

Akonadi::AgentBase::ObserverV3 Class Reference

#include <agentbase.h>

Inheritance diagram for Akonadi::AgentBase::ObserverV3:

Public Member Functions

virtual void itemsFlagsChanged (const Akonadi::Item::List &items, const QSet< QByteArray > &addedFlags, const QSet< QByteArray > &removedFlags)
 
virtual void itemsLinked (const Akonadi::Item::List &items, const Akonadi::Collection &collection)
 
virtual void itemsMoved (const Akonadi::Item::List &items, const Akonadi::Collection &sourceCollection, const Akonadi::Collection &destinationCollection)
 
virtual void itemsRemoved (const Akonadi::Item::List &items)
 
virtual void itemsUnlinked (const Akonadi::Item::List &items, const Akonadi::Collection &collection)
 
- Public Member Functions inherited from Akonadi::AgentBase::ObserverV2
virtual void collectionChanged (const Akonadi::Collection &collection)
 
virtual void collectionChanged (const Akonadi::Collection &collection, const QSet< QByteArray > &changedAttributes)
 
virtual void collectionMoved (const Akonadi::Collection &collection, const Akonadi::Collection &collectionSource, const Akonadi::Collection &collectionDestination)
 
virtual void itemLinked (const Akonadi::Item &item, const Akonadi::Collection &collection)
 
virtual void itemMoved (const Akonadi::Item &item, const Akonadi::Collection &collectionSource, const Akonadi::Collection &collectionDestination)
 
virtual void itemUnlinked (const Akonadi::Item &item, const Akonadi::Collection &collection)
 
- Public Member Functions inherited from Akonadi::AgentBase::Observer
 Observer ()
 
virtual ~Observer ()
 
virtual void collectionAdded (const Akonadi::Collection &collection, const Akonadi::Collection &parent)
 
virtual void collectionRemoved (const Akonadi::Collection &collection)
 
virtual void itemAdded (const Akonadi::Item &item, const Akonadi::Collection &collection)
 
virtual void itemChanged (const Akonadi::Item &item, const QSet< QByteArray > &partIdentifiers)
 
virtual void itemRemoved (const Akonadi::Item &item)
 

Detailed Description

BC extension of ObserverV2 with support for batch operations.

Warning
When using ObserverV3, you will never get single-item notifications from AgentBase::Observer, even when you don't reimplement corresponding batch method from ObserverV3. For instance, when you don't reimplement itemsRemoved() here, you will not get any notifications about item removal whatsoever!
Since
4.11

Definition at line 301 of file agentbase.h.

Member Function Documentation

◆ itemsFlagsChanged()

void AgentBase::ObserverV3::itemsFlagsChanged ( const Akonadi::Item::List & items,
const QSet< QByteArray > & addedFlags,
const QSet< QByteArray > & removedFlags )
virtual

Reimplement to handle changes in flags of existing items.

Warning
When using ObserverV3, you will never get notifications about flag changes via Observer::itemChanged(), even when you don't reimplement itemsFlagsChanged()!
Parameters
itemsThe changed items
addedFlagsFlags that have been added to the item
removedFlagsFlags that have been removed from the item

Definition at line 174 of file agentbase.cpp.

◆ itemsLinked()

void AgentBase::ObserverV3::itemsLinked ( const Akonadi::Item::List & items,
const Akonadi::Collection & collection )
virtual

Reimplement to handle batch notifications about items linking.

Parameters
itemsLinked items
collectionCollection to which the items have been linked

Definition at line 211 of file agentbase.cpp.

◆ itemsMoved()

void AgentBase::ObserverV3::itemsMoved ( const Akonadi::Item::List & items,
const Akonadi::Collection & sourceCollection,
const Akonadi::Collection & destinationCollection )
virtual

Reimplement to handle batch notification about items move.

Parameters
itemsList of moved items
sourceCollectionCollection from where the items were moved
destinationCollectionCollection to which the items were moved

Definition at line 187 of file agentbase.cpp.

◆ itemsRemoved()

void AgentBase::ObserverV3::itemsRemoved ( const Akonadi::Item::List & items)
virtual

Reimplement to handle batch notification about items deletion.

Parameters
itemsList of deleted items

Definition at line 200 of file agentbase.cpp.

◆ itemsUnlinked()

void AgentBase::ObserverV3::itemsUnlinked ( const Akonadi::Item::List & items,
const Akonadi::Collection & collection )
virtual

Reimplement to handle batch notifications about items unlinking.

Parameters
itemsUnlinked items
collectionCollection from which the items have been unlinked

Definition at line 223 of file agentbase.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.