# class ItemMonitor

###

Module | akonadi
Namespace | Akonadi
Class | ItemMonitor
Inherits |

The class ItemMonitor is a convenience class to monitor a single item.

This class can be used as a base class for classes that want to show a single item to the user and keep track of status changes of the item without having to using a Monitor object themself.

### methods

- ItemMonitor ( )

  returns ctor

  Creates a new item monitor.

- ItemMonitor (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | Akonadi.ItemMonitor |

- fetchScope ( )

  returns Akonadi.ItemFetchScope

  Returns the item fetch scope.

  Since this returns a reference it can be used to conveniently modify the current scope in-place, i.e. by calling a method on the returned reference without storing it in a local variable. See the ItemFetchScope documentation for an example.

  Returns a reference to the current item fetch scope

  See also setFetchScope() for replacing the current item fetch scope

- item ( )

  returns Akonadi.Item

  Returns the currently monitored item.

- itemChanged (item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  item | Akonadi.Item |

  This method is called whenever the monitored item has changed.

  item - The data of the changed item.

- itemRemoved ( )

  returns Nothing

  This method is called whenever the monitored item has been removed.

- setFetchScope (fetchScope)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  fetchScope | Akonadi.ItemFetchScope |

  Sets the item fetch scope.

  Controls how much of an item's data is fetched from the server, e.g. whether to fetch the full item payload or only metadata.

  fetchScope - the new scope for item fetch operations

  See also fetchScope()

- setItem (id)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | Akonadi.Item |

  Sets the item that shall be monitored.