Akonadi::AgentBase::ObserverV2
#include <agentbase.h>
Public Member Functions | |
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 Observer with support for monitoring item and collection moves.
Use this one instead of Observer.
- Since
- 4.4
Definition at line 237 of file agentbase.h.
Member Function Documentation
◆ collectionChanged() [1/2]
|
virtual |
Reimplement to handle changes to existing collections.
- Parameters
-
collection The changed collection.
Reimplemented from Akonadi::AgentBase::Observer.
Definition at line 222 of file agentbase.cpp.
◆ collectionChanged() [2/2]
|
virtual |
Reimplement to handle changes to existing collections.
- Parameters
-
collection The changed collection. changedAttributes The identifiers of the collection parts/attributes that has been changed.
Definition at line 160 of file agentbase.cpp.
◆ collectionMoved()
|
virtual |
Reimplement to handle collection moves.
When using this class in combination with Akonadi::ResourceBase, inter-resource moves are handled internally already and the corresponding add or delete method is called instead.
- Parameters
-
collection The moved collection. collectionSource The previous parent collection. collectionDestination The new parent collection.
Definition at line 150 of file agentbase.cpp.
◆ itemLinked()
|
virtual |
Reimplement to handle item linking.
This is only relevant for virtual resources.
- Parameters
-
item The linked item. collection The collection the item is linked to.
Definition at line 128 of file agentbase.cpp.
◆ itemMoved()
|
virtual |
Reimplement to handle item moves.
When using this class in combination with Akonadi::ResourceBase, inter-resource moves are handled internally already and the corresponding add or delete method is called instead.
- Parameters
-
item The moved item. collectionSource The collection the item has been moved from. collectionDestination The collection the item has been moved to.
Definition at line 118 of file agentbase.cpp.
◆ itemUnlinked()
|
virtual |
Reimplement to handle item unlinking.
This is only relevant for virtual resources.
- Parameters
-
item The unlinked item. collection The collection the item is unlinked from.
Definition at line 139 of file agentbase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.