diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-01-21 13:21:53 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-01-21 13:21:57 +0100 |
commit | b72fcd31c02a3f1b197ef2ca67c9692b6081ba94 (patch) | |
tree | 92d7d86e3f7b558727d1d9a63b0955858d7cab01 /doc/shared/model-append.qdocinc | |
parent | 022b06541fed57825e1ec379ad60d558fb93c6fb (diff) | |
parent | de5e3c6631c0bfd8562feb050339187a55116b4f (diff) |
Merge remote-tracking branch 'origin/stable' into release
Change-Id: I4127820ff319208899d0a2f4e80404365c6946b3
Diffstat (limited to 'doc/shared/model-append.qdocinc')
-rw-r--r-- | doc/shared/model-append.qdocinc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/shared/model-append.qdocinc b/doc/shared/model-append.qdocinc new file mode 100644 index 0000000..cf1bb5d --- /dev/null +++ b/doc/shared/model-append.qdocinc @@ -0,0 +1,13 @@ +\brief Add a new \a object to the model and database. + +This function appends the new object to the local model cache +and makes an asynchronous request to the backend. + +Since adding an object to the database may fail for various reasons, +the returned reply must be kept and used for error handling (see \l EnginioReply). +If the operation fails, the object that was supposed to be appended will be removed +from the local model again. If the model is used in a view and the backend does +not accept the object because it violates a validator, it will be visible to the +user that a new row in the view appears and disappears again. + +\return the EnginioReply from the backend |