• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::AgentBase::ObserverV2

Akonadi::AgentBase::ObserverV2 Class Reference

BC extension of Observer with support for monitoring item and collection moves. More...

#include <agentbase.h>

Inheritance diagram for Akonadi::AgentBase::ObserverV2:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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)

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 218 of file agentbase.h.


Member Function Documentation

void AgentBase::ObserverV2::collectionChanged ( const Akonadi::Collection &  collection,
const QSet< QByteArray > &  changedAttributes 
) [virtual]

Reimplement to handle changes to existing collections.

Parameters:
collection The changed collection.
partIdentifiers The identifiers of the collection parts that has been changed.

Definition at line 141 of file agentbase.cpp.

void AgentBase::ObserverV2::collectionMoved ( const Akonadi::Collection &  collection,
const Akonadi::Collection &  collectionSource,
const Akonadi::Collection &  collectionDestination 
) [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.
source The previous parent collection.
destination The new parent collection.

Definition at line 132 of file agentbase.cpp.

void AgentBase::ObserverV2::itemLinked ( const Akonadi::Item &  item,
const Akonadi::Collection &  collection 
) [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 116 of file agentbase.cpp.

void AgentBase::ObserverV2::itemMoved ( const Akonadi::Item &  item,
const Akonadi::Collection &  collectionSource,
const Akonadi::Collection &  collectionDestination 
) [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 107 of file agentbase.cpp.

void AgentBase::ObserverV2::itemUnlinked ( const Akonadi::Item &  item,
const Akonadi::Collection &  collection 
) [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 124 of file agentbase.cpp.


The documentation for this class was generated from the following files:
  • agentbase.h
  • agentbase.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal