The QOrganizerItemSaveRequest class allows a client to asynchronously request that certain organizer items be saved to an organizer item store. More...
#include <QOrganizerItemSaveRequest>
Inherits: QOrganizerAbstractRequest.
This class was introduced in Qt Mobility 1.1.
QOrganizerItemSaveRequest ( QObject * parent = 0 ) | |
~QOrganizerItemSaveRequest () | |
QStringList | definitionMask () const |
QMap<int, QOrganizerManager::Error> | errorMap () const |
QList<QOrganizerItem> | items () const |
void | setDefinitionMask ( const QStringList & definitionMask ) |
void | setItem ( const QOrganizerItem & organizeritem ) |
void | setItems ( const QList<QOrganizerItem> & organizeritems ) |
The QOrganizerItemSaveRequest class allows a client to asynchronously request that certain organizer items be saved to an organizer item store.
For a QOrganizerItemSaveRequest, the resultsAvailable() signal will be emitted when either the individual item errors (which may be retrieved by calling errorMap()), or the resultant organizer 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.
Constructs a new organizer item save request whose parent is the specified parent
Frees memory in use by this request
This function was introduced in Qt Mobility 1.2.
Returns the list of definitions that this request will operate on.
If the list is empty, the request will operate on all details.
This function was introduced in Qt Mobility 1.2.
See also setDefinitionMask().
Returns the map of input definition list indices to errors which occurred
This function was introduced in Qt Mobility 1.1.
Returns the list of organizer items which will be saved if called prior to calling start(), otherwise returns the list of organizer items as they were saved in the organizer item store
This function was introduced in Qt Mobility 1.1.
See also setItems().
Set the list of definitions to restrict saving to definitionMask. This allows you to perform partial save (and remove) operations on existing items.
If definitionMask is empty (the default), no restrictions will apply, and the passed in items will be saved as is. Otherwise, only details whose definitions are in the list will be saved. If a definition name is present in the list, but there are no corresponding details in the item passed into this request, any existing details in the manager for that item will be removed.
This is useful if you've used a fetch hint to fetch a partial item from a manager so that you can save changes to the details you actually fetched without removing the details you didn't.
Additionally, when performing synchronization operations with other managers that don't support the full range of details, you can restrict the update operation to only those details so that you don't lose the extra details that are supported in this manager.
Note: Some managers do not support partial updates natively, in which case the QtOrganizer framework will emulate the functionality (fetching the whole item, applying the new restricted details, and saving the item back).
This function was introduced in Qt Mobility 1.2.
See also definitionMask().
Sets the organizer item to be saved to organizeritem. Equivalent to calling:
setOrganizerItems(QList<QOrganizerItem>() << organizeritem);
This function was introduced in Qt Mobility 1.1.
Sets the list of organizer items to be saved to organizeritems
This function was introduced in Qt Mobility 1.1.
See also items().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.