Akonadi::AgentBase::ObserverV4

Akonadi::AgentBase::ObserverV4 Class Reference

#include <agentbase.h>

Inheritance diagram for Akonadi::AgentBase::ObserverV4:

Public Member Functions

virtual void itemsRelationsChanged (const Akonadi::Item::List &items, const Akonadi::Relation::List &addedRelations, const Akonadi::Relation::List &removedRelations)
 
virtual void itemsTagsChanged (const Akonadi::Item::List &items, const QSet< Akonadi::Tag > &addedTags, const QSet< Akonadi::Tag > &removedTags)
 
virtual void relationAdded (const Akonadi::Relation &relation)
 
virtual void relationRemoved (const Akonadi::Relation &relation)
 
virtual void tagAdded (const Akonadi::Tag &tag)
 
virtual void tagChanged (const Akonadi::Tag &tag)
 
virtual void tagRemoved (const Akonadi::Tag &tag)
 
- Public Member Functions inherited from Akonadi::AgentBase::ObserverV3
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, 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 collectionChanged (const Akonadi::Collection &collection)
 
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

Observer that adds support for item tagging.

Warning
ObserverV4 subclasses ObserverV3 which changes behavior of some of the virtual methods from Observer and ObserverV2. Please make sure you read documentation of ObserverV3 and adapt your agent accordingly.
Since
4.13

Definition at line 360 of file agentbase.h.

Member Function Documentation

void AgentBase::ObserverV4::itemsRelationsChanged ( const Akonadi::Item::List &  items,
const Akonadi::Relation::List addedRelations,
const Akonadi::Relation::List removedRelations 
)
virtual

Reimplement to handled relations changing on items.

Parameters
itemsItems that had relations added/removed from them
addedRelationsthe list of relations that were added to all items
removedRelationsthe list of relations that were removed from all items

Definition at line 311 of file agentbase.cpp.

void AgentBase::ObserverV4::itemsTagsChanged ( const Akonadi::Item::List &  items,
const QSet< Akonadi::Tag > &  addedTags,
const QSet< Akonadi::Tag > &  removedTags 
)
virtual

Reimplement to handle items tagging.

Parameters
itemsItems that were tagged or untagged
addedTagsSet of tags that were added to all items
removedTagsSet of tags that were removed from all items

Definition at line 273 of file agentbase.cpp.

void AgentBase::ObserverV4::relationAdded ( const Akonadi::Relation relation)
virtual

Reimplement to handle relations being added.

Definition at line 287 of file agentbase.cpp.

void AgentBase::ObserverV4::relationRemoved ( const Akonadi::Relation relation)
virtual

Reimplement to handle relations being removed.

Definition at line 299 of file agentbase.cpp.

void AgentBase::ObserverV4::tagAdded ( const Akonadi::Tag tag)
virtual

Reimplement to handle tags additions.

Parameters
tagNewly added tag

Definition at line 237 of file agentbase.cpp.

void AgentBase::ObserverV4::tagChanged ( const Akonadi::Tag tag)
virtual

Reimplement to handle tags changes.

Parameters
tagTag that has been changed

Definition at line 249 of file agentbase.cpp.

void AgentBase::ObserverV4::tagRemoved ( const Akonadi::Tag tag)
virtual

Reimplement to handle tags removal.

Note
All items that were tagged by tag will get a separate notification about untagging via itemsTagsChanged(). It is guaranteed that the itemsTagsChanged() notification will be delivered before this one.
Parameters
tagTag that has been removed.

Definition at line 261 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-2020 The KDE developers.
Generated on Tue Jul 7 2020 23:14:33 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.