summaryrefslogtreecommitdiffstats
path: root/src/imports/organizer/qdeclarativeorganizermodel.cpp
diff options
context:
space:
mode:
authorikause <iiro.kause@nokia.com>2012-04-12 11:23:01 +0300
committerQt by Nokia <qt-info@nokia.com>2012-04-12 10:40:33 +0200
commit41b99a1a9f4e2de4cb44b9099417ee24b5ec9ff0 (patch)
treef5619f3a7f6f1b278a80b99d20f68843bb3d98f4 /src/imports/organizer/qdeclarativeorganizermodel.cpp
parentd9283e3ec65ef09dc485acbcfa992c9a932e7b54 (diff)
Improve the storage location documentation of OrganizerModel
Change-Id: I466b78f562ce67ea968272ed84d415bbf709bee8 Reviewed-by: Andy Cox <andrew.cox@nokia.com>
Diffstat (limited to 'src/imports/organizer/qdeclarativeorganizermodel.cpp')
-rw-r--r--src/imports/organizer/qdeclarativeorganizermodel.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizermodel.cpp b/src/imports/organizer/qdeclarativeorganizermodel.cpp
index 2abb1e452..31dcf2f16 100644
--- a/src/imports/organizer/qdeclarativeorganizermodel.cpp
+++ b/src/imports/organizer/qdeclarativeorganizermodel.cpp
@@ -368,7 +368,8 @@ void QDeclarativeOrganizerModel::setEndPeriod(const QDateTime& end)
Depending on the platform, the access rights for different storage locations might vary.
\sa OrganizerModel::storageLocations
- \sa OrganizerModel::saveCollection(QDeclarativeOrganizerCollection *collection, QDeclarativeOrganizerModel::StorageLocation storageLocation)
+ \sa OrganizerModel::saveCollection()
+ \sa OrganizerModel::saveItem()
*/
/*!
@@ -389,7 +390,6 @@ void QDeclarativeOrganizerModel::setEndPeriod(const QDateTime& end)
is having some specific requirements and they're not met, backend returns StorageLocationsNotExistingError.
\sa OrganizerModel::StorageLocation
- \sa OrganizerModel::saveCollection(QDeclarativeOrganizerCollection *collection, QDeclarativeOrganizerModel::StorageLocation storageLocation)
*/
int QDeclarativeOrganizerModel::storageLocations() const
{
@@ -1086,10 +1086,12 @@ void QDeclarativeOrganizerModel::requestUpdated()
}
/*!
- \qmlmethod OrganizerModel::saveItem(OrganizerItem item)
+ \qmlmethod OrganizerModel::saveItem(OrganizerItem item, StorageLocation storageLocation = UserDataStorage)
+
Saves asynchronously the given \a item into the organizer backend. The location for storing item
- can be defined with \a storageLocation for new items. When item is updated, ie saved again,
- \a storageLocation is ignored and item is saved to the same location as it were before.
+ can be defined with optional \a storageLocation for new items. If optional \a storageLocation is not given, item
+ will be stored to UserDataStorage. When item is updated, ie saved again, \a storageLocation is ignored and
+ item is saved to the same location where it was originally saved.
*/
void QDeclarativeOrganizerModel::saveItem(QDeclarativeOrganizerItem* di, QDeclarativeOrganizerModel::StorageLocation storageLocation)
@@ -1493,14 +1495,13 @@ void QDeclarativeOrganizerModel::collectionsFetched()
}
/*!
- \qmlmethod OrganizerModel::saveCollection(QDeclarativeOrganizerCollection* collection, QDeclarativeOrganizerModel::StorageLocation storageLocation)
+ \qmlmethod OrganizerModel::saveCollection(Collection collection, StorageLocation storageLocation = UserDataStorage)
Saves asynchronously the given \a collection into the organizer backend. The location for storing collection
- can be defined with \a storageLocation for new collections. When collection is updated, ie saved again,
- \a storageLocation is ignored and collection is saved to the same location as it were before.
+ can be defined with optional \a storageLocation for new collections. If optional \a storageLocation is not given,
+ collection will be stored to UserDataStorage. When collection is updated, ie saved again, \a storageLocation is
+ ignored and collection is saved to the same location where it was originally saved.
- \sa Collection
- \sa OrganizerModel::storageLocations
*/
void QDeclarativeOrganizerModel::saveCollection(QDeclarativeOrganizerCollection* declColl, QDeclarativeOrganizerModel::StorageLocation storageLocation)
{