• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.4 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • AgentBase
  • ObserverV2
Public Member Functions
Akonadi::AgentBase::ObserverV2 Class Reference

#include <agentbase.h>

Inheritance diagram for Akonadi::AgentBase::ObserverV2:
Akonadi::AgentBase::Observer

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)
- 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

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

Use this one instead of Observer.

Since:
4.4

Definition at line 243 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:
collectionThe changed collection.
changedAttributesThe identifiers of the collection parts/attributes that has been changed.

Definition at line 165 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:
collectionThe moved collection.
collectionSourceThe previous parent collection.
collectionDestinationThe new parent collection.

Definition at line 155 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:
itemThe linked item.
collectionThe collection the item is linked to.

Definition at line 131 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:
itemThe moved item.
collectionSourceThe collection the item has been moved from.
collectionDestinationThe collection the item has been moved to.

Definition at line 121 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:
itemThe unlinked item.
collectionThe collection the item is unlinked from.

Definition at line 143 of file agentbase.cpp.


The documentation for this class was generated from the following files:
  • agentbase.h
  • agentbase.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jun 24 2013 13:00:50 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.10.4 API Reference

Skip menu "kdepimlibs-4.10.4 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal