The QOrganizerItemFetchByIdRequest class allows a client to asynchronously request items from a items store manager, given a list of item IDs. More...
#include <QOrganizerItemFetchByIdRequest>
Inherits QOrganizerAbstractRequest.
QOrganizerItemFetchByIdRequest ( QObject * parent = 0 ) | |
~QOrganizerItemFetchByIdRequest () | |
QMap<int, QOrganizerManager::Error> | errorMap () const |
QOrganizerItemFetchHint | fetchHint () const |
QList<QOrganizerItemId> | ids () const |
QList<QOrganizerItem> | items () const |
void | setFetchHint ( const QOrganizerItemFetchHint & fetchHint ) |
void | setIds ( const QList<QOrganizerItemId> & ids ) |
The QOrganizerItemFetchByIdRequest class allows a client to asynchronously request items from a items store manager, given a list of item IDs.
The items fetched by the backend should have a one-to-one correspondence to the IDs passed into this class. That is, the nth item in the returned list should have an ID which is equal to the nth ID in the list of IDs. Any invalid ID should correspond to an empty QOrganizerItem.
For a QOrganizerItemFetchByIdRequest, the resultsAvailable() signal will be emitted when the resultant items (which may be retrieved by calling items()), are updated, as well as if the overall operation error (which may be retrieved by calling error()) is updated.
Please see the class documentation of QOrganizerAbstractRequest for more information about the usage of request classes and ownership semantics.
Constructs a new item fetch request whose parent is the specified parent
Frees any memory used by this request
Returns the map of input definition list indices to errors which occurred
Returns the fetch hint which may be used by the backend to optimize item retrieval. A client should not make changes to a item which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the item back to the manager (as the "new" restricted item will replace the previously saved item in the backend).
See also setFetchHint() and QOrganizerItemFetchHint.
Returns the list of ids of the items that the backend should retrieve.
See also setIds().
Returns the list of items retrieved by this request
Sets the fetch hint which may be used by the backend to optimize item retrieval to fetchHint. A client should not make changes to a item which has been retrieved using a fetch hint other than the default fetch hint. Doing so will result in information loss when saving the item back to the manager (as the "new" restricted item will replace the previously saved item in the backend).
See also fetchHint() and QOrganizerItemFetchHint.
Sets the list of ids of the items that the backend should retrieve to ids.
See also ids().