[Kde-pim] Akonadi::AgentBase::Observer Class Reference

Martin Koller kollix at aon.at
Sun Nov 17 12:41:11 GMT 2013


In this documentation
http://api.kde.org/4.x-api/kdepimlibs-apidocs/akonadi/html/classAkonadi_1_1AgentBase_1_1Observer.html
I read:

"Do not call the base implementation of reimplemented virtual methods! The default implementation disconnected themselves from the Akonadi::ChangeRecorder to enable internal optimizations for unused notifications."

But in the example below, I find:

void ExampleObserver::itemChanged( const Item &item )
* {
*   // do something with item
*   kDebug() << "Item id=" << item.id();
*
*   // let base implementation tell the change recorder that we   <<<<<<<<<<<<<<<<<<<< ????
*   // have processed the change
*   AgentBase::Observer::itemChanged( item );
* }

what's correct now ?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list