akonadi
itemmonitor.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ITEMMONITOR_H
00021 #define AKONADI_ITEMMONITOR_H
00022
00023 #include "akonadi_export.h"
00024
00025 class QStringList;
00026
00027 namespace Akonadi {
00028
00029 class Item;
00030 class ItemFetchScope;
00031
00081 class AKONADI_EXPORT ItemMonitor
00082 {
00083 public:
00087 ItemMonitor();
00088
00092 virtual ~ItemMonitor();
00093
00097 void setItem( const Item &item );
00098
00102 Item item() const;
00103
00104 protected:
00110 virtual void itemChanged( const Item &item );
00111
00115 virtual void itemRemoved();
00116
00127 void setFetchScope( const ItemFetchScope &fetchScope );
00128
00141 ItemFetchScope &fetchScope();
00142
00143 private:
00144
00145 class Private;
00146 Private* const d;
00147
00148
00149 Q_DISABLE_COPY( ItemMonitor )
00150 };
00151
00152 }
00153
00154 #endif