diff options
author | ikause <iiro.kause@nokia.com> | 2012-04-16 14:17:02 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-16 16:00:03 +0200 |
commit | 75a46aa085c1308f1c638d00388792b95a1e2f90 (patch) | |
tree | 5f0b14b9d0af0b0f16592db9f669c65732de29cb /src/imports/organizer/qdeclarativeorganizermodel.cpp | |
parent | e0fe3a9a49dfac9cb97258a50e48e54cac10589c (diff) |
Improving OrganizerModel versit related documentation
Change-Id: Ide91a63ab1566927c575327196f2ed76d36a9e65
Reviewed-by: Päivi Rajala <paivi.rajala@nokia.com>
Diffstat (limited to 'src/imports/organizer/qdeclarativeorganizermodel.cpp')
-rw-r--r-- | src/imports/organizer/qdeclarativeorganizermodel.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/imports/organizer/qdeclarativeorganizermodel.cpp b/src/imports/organizer/qdeclarativeorganizermodel.cpp index 31dcf2f16..be591e7ff 100644 --- a/src/imports/organizer/qdeclarativeorganizermodel.cpp +++ b/src/imports/organizer/qdeclarativeorganizermodel.cpp @@ -173,6 +173,14 @@ public: \sa OrganizerItem, {QOrganizerManager} */ +/*! + \qmlsignal OrganizerModel::modelChanged() + + This signal is emitted, when there are changes in items contained by \l OrganizerModel's data model. Items have either + been added, removed or modified. This signal is also always emitted during OrganizerModel construction when data model is + ready for use, even in cases when data model is not having any items in it. + */ + QDeclarativeOrganizerModel::QDeclarativeOrganizerModel(QObject *parent) : QAbstractListModel(parent), d_ptr(new QDeclarativeOrganizerModelPrivate) @@ -407,6 +415,33 @@ void QDeclarativeOrganizerModel::setStorageLocations(int storageLocationsFlag) } /*! + \qmlproperty enumeration OrganizerModel::ImportError + + Defines the errors cases for \l OrganizerModel::importItems() -function. + + \list + \li OrganizerModel::ImportNoError Completed succesfully, no error. + \li OrganizerModel::ImportUnspecifiedError Unspecified error. + \li OrganizerModel::ImportIOError Input/output error. + \li OrganizerModel::ImportOutOfMemoryError Out of memory error. + \li OrganizerModel::ImportNotReadyError Not ready for importing. Only one import operation can be active at a time. + \li OrganizerModel::ImportParseError Error during parsing. + \endlist +*/ + +/*! + \qmlsignal OrganizerModel::importCompleted() + + This signal is emitted, when \l OrganizerModel::importItems() completes. The success of operation + can be seen on \a error which is defined in \l OrganizerModel::ImportError. \a url indicates the + file, which was imported. + + If the operation was succesful, items are now imported to backend. If \l OrganizerModel::autoUpdate + is enabled, \l OrganizerModel::modelChanged will be emitted when imported items are also visible on + \l OrganizerModel's data model. + */ + +/*! \qmlmethod OrganizerModel::importItems(url url, list<string> profiles) Import organizer items from a vcalendar by the given \a url and optional \a profiles. |