qt:qtenginio.git
3 years agoUpdate plugins.qmltypes 1.0.1
Frederik Gladhorn [Wed, 8 Jan 2014 09:35:56 +0000 (10:35 +0100)]
Update plugins.qmltypes

Change-Id: I69ce48d46536de9bead300d2932c7068a4b3f271
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
3 years agoAdd missing change log file for 1.0.1 Enginio version
Jędrzej Nowacki [Wed, 8 Jan 2014 08:34:00 +0000 (09:34 +0100)]
Add missing change log file for 1.0.1 Enginio version

Change-Id: I602010a0ae7e92883a4ac90f145b113a48331897
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
3 years agoDo not define debug operator<< in header
Frederik Gladhorn [Thu, 2 Jan 2014 15:09:20 +0000 (16:09 +0100)]
Do not define debug operator<< in header

Task-number: QTBUG-35534
[ChangeLog][Enginio] Fixed static linking

Change-Id: I0024b9d6ca816c59885d048af5d5525149de75ed
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
4 years agoAdd picture to Social Todo example
Jędrzej Nowacki [Tue, 17 Dec 2013 11:15:07 +0000 (12:15 +0100)]
Add picture to Social Todo example

Change-Id: Icefb3bffa0952344c2a6968ca1b6236544269b92
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoBump Enginio client library version to 1.0.1
Jędrzej Nowacki [Tue, 17 Dec 2013 08:59:27 +0000 (09:59 +0100)]
Bump Enginio client library version to 1.0.1

Change-Id: I5bcbc0bad5aed43143c023b2e02dec9245d849ba
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFixed SocialTodos example sending unnecessary requests to network
Harri Eronen [Tue, 10 Dec 2013 12:15:20 +0000 (14:15 +0200)]
Fixed SocialTodos example sending unnecessary requests to network

Now OAuth2 request and TodoLists refresh query are reset with null
values instead of obsolete data.Thus those places wont send anynore
unnecessary requests to server.

Change-Id: I4eb52638549ea1e41dda79d6497080a7add16f7b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFixes to sharing functionaity in SocialTodos example
Harri Eronen [Tue, 10 Dec 2013 11:54:42 +0000 (13:54 +0200)]
Fixes to sharing functionaity in SocialTodos example

Changes:

TodoList sharing is changed to use only "admin" rights -> Users can
sharethe list further

TodoList sharing supports now both grant & withdraw operations -> list
can be shared and un-shared to/from user

TodoList sharing indicates the current user in UI and prevents grant
changes for it -> App usage a bit more pleasant for random testers

Change-Id: I1605a866728bd768544dc3d44744386e8b4a9fa2
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFixed "allUsers" user add logic for SocialTodos example
Harri Eronen [Tue, 10 Dec 2013 10:43:25 +0000 (12:43 +0200)]
Fixed  "allUsers" user add logic for SocialTodos example

Now user is tried to add to "allUsers" group always after login -> App
is more robust against different error scenarios, like incomplete
backend configurations

Change-Id: Id7edd4db9ee95f451c351a2a0da561c6444bf419
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoAdd key navigation to SocialTodos login view
Harri Eronen [Tue, 10 Dec 2013 08:51:17 +0000 (10:51 +0200)]
Add key navigation to SocialTodos login view

Change-Id: Ic2e65cbb8287d6293b2729ac16e5c6cb50cd5485
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRemove old buildsystem hacks
Frederik Gladhorn [Wed, 11 Dec 2013 18:45:27 +0000 (19:45 +0100)]
Remove old buildsystem hacks

I am not sure what the logic is, but qml_plugin.prf
adds _declarative to the library name unless we declare
the no_cxx_module. Copied from controls.

By doing that and loading the qml_plugin late we get the right
TARGET name and we get it modified the way the platform specifies.
This should fix iOS overriding the armv7 build with the lib for
the simulator which should have a different postfix (which
we cut off with our own magic).

Change-Id: I4b0bb39c2c068b78a9aeee0f0f2994941307d84b
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoFix paths in example-manifest.xml
Jędrzej Nowacki [Tue, 10 Dec 2013 15:48:44 +0000 (15:48 +0000)]
Fix paths in example-manifest.xml

The file had wrong imageUrl paths and QtCreator was
refusing to load it.

Change-Id: I07aa3af389512f59604ffc460eec4a6b55987576
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFixed SocialTodos doc and code inconsistencies
Harri Eronen [Sun, 8 Dec 2013 17:42:28 +0000 (19:42 +0200)]
Fixed SocialTodos doc and code inconsistencies

Following changes to SocialTodos docs and code:
- Removed obsolete data validator segments from docs to make instructions simpler.
- Updated backend config instructions to match server behavior.
- Changed the code to use "allUsers" usergroup as docs were already having.

Change-Id: I82ed7fa1bbdbdb8eb8cb7c2bf3ca80670f47bf33
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoChange doc build on windows 1.0.0
Frederik Gladhorn [Mon, 9 Dec 2013 16:04:14 +0000 (17:04 +0100)]
Change doc build on windows

Do not load qt_docs.prf in the qt module.
Rename qtenginiocpp to qtenginio because the module forces that on us.
Instead of qtenginio for the overview docs we now have qtenginiooverview.
None of this is user visible, so it will be fine.

Change-Id: I77bdcb7f4784323e52b79cbe543e16ad4593e533
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoSave backend id in settings earlier
Jędrzej Nowacki [Mon, 9 Dec 2013 09:48:09 +0000 (09:48 +0000)]
Save backend id in settings earlier

Many apps, especially mobiles, are not closed but killed. In such case
BackendHelperContext dtor was not called and backend id was not saved.

Change-Id: If9e30faf9cc521ad74001d9fdf5e659f7605e7ed
Reviewed-by: Caroline Chao <caroline.chao@digia.com>
4 years agoFix qdoc issues
Frederik Gladhorn [Fri, 6 Dec 2013 18:40:31 +0000 (19:40 +0100)]
Fix qdoc issues

Change-Id: I2f44c4ae7ba5f3d55df9eff36a1645908f29fe37
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoSplit Documentation
Frederik Gladhorn [Fri, 6 Dec 2013 17:37:55 +0000 (18:37 +0100)]
Split Documentation

This is a major cleanup. Instead of having broken links between C++ and
QML we now have 3 projects so that name-clashes do not occur any more.
It has the downside that Enginio shows up as three projects in Assistant
now, but at least all the docs are there and links work.

Change-Id: I30a79b9dc586117e19489c6ff5962fc1ef87f89f
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove Enginio1 namespacing attempts
Frederik Gladhorn [Fri, 6 Dec 2013 14:21:54 +0000 (15:21 +0100)]
Remove Enginio1 namespacing attempts

Change-Id: I2ff014aa8c06f669e68ef25b2c71781825166aa1
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoDoc fixes
Frederik Gladhorn [Fri, 6 Dec 2013 14:17:54 +0000 (15:17 +0100)]
Doc fixes

Change-Id: I57856a9240edcd5de437633bba66b1de475e7b36
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoSplit documentation into C++ and QML
Frederik Gladhorn [Fri, 6 Dec 2013 14:06:03 +0000 (15:06 +0100)]
Split documentation into C++ and QML

Change-Id: I8737e6cbfd2fccf78d77de52353e98478fd5eecc
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoMove examples into enginio directory
Frederik Gladhorn [Fri, 6 Dec 2013 13:20:59 +0000 (14:20 +0100)]
Move examples into enginio directory

Change-Id: Ifd57d60f449c4654133a1f68c74f1f01b91fa2f0
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoImprove EnginioClient::sessionAuthenticated docs
Jędrzej Nowacki [Wed, 4 Dec 2013 12:34:08 +0000 (12:34 +0000)]
Improve EnginioClient::sessionAuthenticated docs

Change-Id: I50e4e659e10d7d2dfced46e6508bbdf5e7f96a3e
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoFix QML examples on android
Jędrzej Nowacki [Thu, 5 Dec 2013 13:58:08 +0000 (13:58 +0000)]
Fix QML examples on android

Current android support does not allow to use QtWidgets and QtQuick in
one process, therefore our backend helper had to be rewritten in QML.

Change-Id: I62a1e49be3f92b1aab748221edf434862eec4e09
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate changelog
Jędrzej Nowacki [Thu, 5 Dec 2013 14:44:08 +0000 (14:44 +0000)]
Update changelog

Change-Id: Idfd9db257ab8962c44d3adaa5394c9739b73be58
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix and imporove EnginioReply documentation
Jędrzej Nowacki [Wed, 4 Dec 2013 13:55:40 +0000 (13:55 +0000)]
Fix and imporove EnginioReply documentation

Change-Id: I1a111b17b41d5605d2642d022c4d1af9674ba406
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFake EnginioClientConnection properties in QML EnginioClient
Jędrzej Nowacki [Wed, 4 Dec 2013 13:01:43 +0000 (13:01 +0000)]
Fake EnginioClientConnection properties in QML EnginioClient

Change-Id: If94479f85dfbadb177610d35b35854e89d4842e5
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoChange snippets in qml EnginioClient documentation
Jędrzej Nowacki [Wed, 4 Dec 2013 12:51:56 +0000 (12:51 +0000)]
Change snippets in qml EnginioClient documentation

Now it is more visible that the snippets can not stand on its own

Change-Id: I3799379e833aa88d2f4c1a8bdaa6489f6fdee52a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate EnginioClient brief description
Jędrzej Nowacki [Wed, 4 Dec 2013 12:46:44 +0000 (12:46 +0000)]
Update EnginioClient brief description

Change-Id: I293dd44c46e01299ae0e158e553fc47b21aaeb46
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoAdd missing documentation for QML EnginioClient signals
Jędrzej Nowacki [Wed, 4 Dec 2013 12:41:07 +0000 (12:41 +0000)]
Add missing documentation for QML EnginioClient signals

Session management signals where missing in documentation

Change-Id: If4400f2d5d009927a4c1395a7ca4dc640d6d288e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoLink query parameters with online REST api docs
Jędrzej Nowacki [Wed, 4 Dec 2013 10:46:09 +0000 (10:46 +0000)]
Link query parameters with online REST api docs

Change-Id: Iba01f3bcacacd2b082036a1e18265a0781865e51
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUse "userId" placeholder instead of a meaningless "abcd"
Jędrzej Nowacki [Wed, 4 Dec 2013 11:23:20 +0000 (11:23 +0000)]
Use "userId" placeholder instead of a meaningless "abcd"

Change-Id: I2e5bc6f58b811e8c54db93cb146bca20f312219a
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoLink fulltext search docs to rest api docs
Jędrzej Nowacki [Tue, 3 Dec 2013 13:42:29 +0000 (13:42 +0000)]
Link fulltext search docs to rest api docs

Change-Id: I3844c1825b30383fe58138f1d439ec21734d092a
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoUpdate docs of installation steps
Jędrzej Nowacki [Tue, 3 Dec 2013 12:14:03 +0000 (12:14 +0000)]
Update docs of installation steps

Change-Id: I0a2d688bc9e2028c61fc08223711cb15e493a7fb
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoDe-inline EnginioClientConnectionPrivate::uploadChunk
Jędrzej Nowacki [Tue, 3 Dec 2013 11:36:19 +0000 (11:36 +0000)]
De-inline EnginioClientConnectionPrivate::uploadChunk

That way we make sure that ChunkDevice is not exported even as
a private symbol.

Change-Id: Ic884690d0e30812214593ec96182874ac1ae31dc
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoAdd missing Qt namespace in chunkdevice_p.h
Jędrzej Nowacki [Tue, 3 Dec 2013 11:32:42 +0000 (11:32 +0000)]
Add missing Qt namespace in chunkdevice_p.h

Change-Id: I207a517f76d93ca797a9b3041203a200a8e0945f
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoLink EnginioClient::fullTextSearch to addressbook example
Jędrzej Nowacki [Tue, 3 Dec 2013 11:27:41 +0000 (11:27 +0000)]
Link EnginioClient::fullTextSearch to addressbook example

Change-Id: I8cb9cdb38a97bae3dd0817bf9cd3d3089f66e76d
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
4 years agoFix typo in cloudaddressbook example comment
Jędrzej Nowacki [Tue, 3 Dec 2013 11:20:53 +0000 (11:20 +0000)]
Fix typo in cloudaddressbook example comment

Change-Id: I4fd4feb8b3575c4e14584ecb4deb305143acf8ab
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRemove wrong link from documentation
Jędrzej Nowacki [Mon, 2 Dec 2013 16:30:04 +0000 (16:30 +0000)]
Remove wrong link from documentation

Change-Id: I30e88471ee8497620dcdaeac375cd978b03f398c
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate docs, backendId is of QByteArray type
Jędrzej Nowacki [Tue, 3 Dec 2013 12:30:11 +0000 (12:30 +0000)]
Update docs, backendId is of QByteArray type

Change-Id: I2fe802bf8d850ed99c95bbc2123d27156397179e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoImprove EnginioQmlClient docs
Jędrzej Nowacki [Mon, 2 Dec 2013 16:28:11 +0000 (16:28 +0000)]
Improve EnginioQmlClient docs

Change-Id: Iffdf8f3adc0da52dd7442a743de628157e2cacba
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix model refreshing in QML examples.
Jędrzej Nowacki [Mon, 2 Dec 2013 14:26:46 +0000 (14:26 +0000)]
Fix model refreshing in QML examples.

Change-Id: I01d27c85a3d8a1c9e567372a32da66daef017a46
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix indentation in image gallery example
Jędrzej Nowacki [Mon, 2 Dec 2013 12:28:56 +0000 (13:28 +0100)]
Fix indentation in image gallery example

Change-Id: I049e697851a8928eb093121fe7136db6c6dba997
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate types registration in Enginio plugin
Jędrzej Nowacki [Mon, 2 Dec 2013 12:02:19 +0000 (13:02 +0100)]
Update types registration in Enginio plugin

Change-Id: I1ab5bdd443aa18bc120c97d416022d1e337848a5
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoAdd missing metatype registrations
Jędrzej Nowacki [Mon, 2 Dec 2013 11:55:30 +0000 (12:55 +0100)]
Add missing metatype registrations

Change-Id: I0f2ade47382ba75a956cb8659e7f027346625707
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix minor esthetic issue in users qml example
Jędrzej Nowacki [Mon, 2 Dec 2013 11:37:54 +0000 (12:37 +0100)]
Fix minor esthetic issue in users qml example

Change-Id: I405f546d106c333aa110028838adf7eebb42ef7d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoAdd reload button to social todo example
Frederik Gladhorn [Tue, 26 Nov 2013 19:14:07 +0000 (20:14 +0100)]
Add reload button to social todo example

Change-Id: I99f7d7a77f4ca0ee4e8e7a6483f4df8f8e561e73
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove unsued variable
Jędrzej Nowacki [Fri, 29 Nov 2013 22:50:37 +0000 (23:50 +0100)]
Remove unsued variable

Change-Id: I16f38c1e9d104209870dfa54ee392aedb792ffe3
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUse lower case for "backend id" in documentation.
Jędrzej Nowacki [Fri, 29 Nov 2013 22:43:46 +0000 (23:43 +0100)]
Use lower case for "backend id" in documentation.

Change-Id: I2f5384c8f9b466339b2de5cc896c5af90b209c13
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix some random qdoc problems
Jędrzej Nowacki [Fri, 29 Nov 2013 22:42:33 +0000 (23:42 +0100)]
Fix some random qdoc problems

Change-Id: I65967c42cbb2523e37399eda33169b1922bd1bfc
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate EnginioClient docs
Jędrzej Nowacki [Fri, 29 Nov 2013 09:03:35 +0000 (09:03 +0000)]
Update EnginioClient docs

Change-Id: Id75b5652110f3d74bd72149085bf847eef018ad8
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoMake QML headers private
Frederik Gladhorn [Mon, 25 Nov 2013 17:24:59 +0000 (18:24 +0100)]
Make QML headers private

Change-Id: I7469abf471bc1ff2fe9eb8144a8a90ee3bc72f0d
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRename Enginio::LastRole to Enginio::CustomPropertyRole
Jędrzej Nowacki [Fri, 29 Nov 2013 15:35:28 +0000 (15:35 +0000)]
Rename Enginio::LastRole to Enginio::CustomPropertyRole

Fix small mistakes related to Enginio::Role documentation

Change-Id: Ia4241e750f684b80cdf0984d44939c53f08e19df
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRename Enginio::ErrorTypes to ErrorType.
Jędrzej Nowacki [Fri, 29 Nov 2013 15:38:15 +0000 (15:38 +0000)]
Rename Enginio::ErrorTypes to ErrorType.

[ChangeLog][API] Enginio::ErrorTypes was renamed to Enginio::ErrorType

Change-Id: I03e3c724c2fc4b28aba2cd58b1776a005e5c077e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoCleanup old changelogs
Jędrzej Nowacki [Fri, 29 Nov 2013 14:34:41 +0000 (14:34 +0000)]
Cleanup old changelogs

Change-Id: I5576fb46fad539c2cf4c09514fb1b90d7560040f
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoLink docs to network
Frederik Gladhorn [Fri, 29 Nov 2013 14:00:33 +0000 (15:00 +0100)]
Link docs to network

Change-Id: I9a4a1b98340d5c58f7ce8d1125063961750a1d80
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove duplicate documentation
Frederik Gladhorn [Fri, 29 Nov 2013 13:57:06 +0000 (14:57 +0100)]
Remove duplicate documentation

Change-Id: I9dc357fb6d3b23f62f588e390b82d957e6b0ed53
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoDocument EnginioClientConnection
Frederik Gladhorn [Fri, 29 Nov 2013 13:56:21 +0000 (14:56 +0100)]
Document EnginioClientConnection

Change-Id: Iaaa7a3e9e57f2b9b903b1f27f8ad88342c3d9d4b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRename EnginoModelBase to EnginioBaseModel
Frederik Gladhorn [Fri, 29 Nov 2013 13:50:59 +0000 (14:50 +0100)]
Rename EnginoModelBase to EnginioBaseModel

Change-Id: Iddbb673c7871e2b5ac4b05cde73eda47d5343b54
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRename EnginioReplyBase to EnginioReplyState
Frederik Gladhorn [Fri, 29 Nov 2013 13:40:15 +0000 (14:40 +0100)]
Rename EnginioReplyBase to EnginioReplyState

Change-Id: I4ad664523bf7caac7ee1025598cecc0d4169c1a2
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoHide EnginioReplyBase::emitFinished()
Jędrzej Nowacki [Tue, 26 Nov 2013 14:56:28 +0000 (14:56 +0000)]
Hide EnginioReplyBase::emitFinished()

The function is private and could be easily hidden

Change-Id: Ic99ca42357748b71c4794bfe6bb15aa54ab7ddc2
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRemove redundant code from image gallery example
Jędrzej Nowacki [Thu, 28 Nov 2013 14:11:02 +0000 (15:11 +0100)]
Remove redundant code from image gallery example

Change-Id: If6f2c1b9473e94654d95879b5445d987176a7668
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoMake items in in the image gallery not selectable
Jędrzej Nowacki [Thu, 28 Nov 2013 09:28:44 +0000 (10:28 +0100)]
Make items in in the image gallery not selectable

Change-Id: I9a6442c92b48ea28440cd0a65d189cf5ccf20e02
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoStart moving code away from ReplyBase
Frederik Gladhorn [Wed, 27 Nov 2013 12:33:05 +0000 (13:33 +0100)]
Start moving code away from ReplyBase

Change-Id: Ib164de80c2741261e587c095635f7bc9e61c18f5
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove empty init function
Frederik Gladhorn [Wed, 27 Nov 2013 07:11:16 +0000 (08:11 +0100)]
Remove empty init function

Change-Id: I288a6f034c21dd3622639fa078991114e9db46af
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove properties from EnginioModelBase
Frederik Gladhorn [Wed, 27 Nov 2013 07:08:05 +0000 (08:08 +0100)]
Remove properties from EnginioModelBase

Change-Id: Ifdb7f8dba0eb7fe5f9e8ab73044af0009baa46fe
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoFix QNetworkAccessManager being destroyd too late
Frederik Gladhorn [Thu, 28 Nov 2013 13:45:43 +0000 (14:45 +0100)]
Fix QNetworkAccessManager being destroyd too late

Change-Id: I7d4bc7c1529a58e725bad1f957391436627c2fd5
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoFix memory leak in tests.
Jędrzej Nowacki [Tue, 26 Nov 2013 12:41:36 +0000 (12:41 +0000)]
Fix memory leak in tests.

QNetworkReply should be removed when finished.

Change-Id: Ifb027d634885f4df26a5807c56b8e9f976b82d0b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix up documentation, do not mention *Base classes
Frederik Gladhorn [Tue, 26 Nov 2013 22:04:03 +0000 (23:04 +0100)]
Fix up documentation, do not mention *Base classes

Change-Id: I955e7a18631b158825a750c44ec310ff13b834f2
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoFix documentation depends
Frederik Gladhorn [Tue, 26 Nov 2013 22:12:09 +0000 (23:12 +0100)]
Fix documentation depends

Change-Id: I8395c7e886a53a50346eb0bf0e0ae09e5a506609
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoUpdate TODO example
Jędrzej Nowacki [Tue, 26 Nov 2013 09:42:18 +0000 (09:42 +0000)]
Update TODO example

The example gathered a bit of dust. Especially in terms of role names
handling

Task-number: QTBUG-35024
Change-Id: Ie2309c654fc8f2cc5d14705ab03616af713f02f6
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRemove undefined EnginioReply ctor
Jędrzej Nowacki [Tue, 26 Nov 2013 11:46:28 +0000 (11:46 +0000)]
Remove undefined EnginioReply ctor

The constructor is probably some leftover from an invalid conflict
resolution

Change-Id: I65431d7f90ce147703cbf6e48ad269b1ac12f388
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix some qdoc errors.
Jędrzej Nowacki [Tue, 26 Nov 2013 11:39:15 +0000 (11:39 +0000)]
Fix some qdoc errors.

EnginioModel::enginio was renamed to EnginioModel::client.
EnginioIdentity::prepareSessionToken and removeSessionToken were moved
to protected section and qdoc thinks that they are apis.
Enginio was renamed to EnginioClient in QML.

Change-Id: I2549c9eac8d2ccbf8b82660eb92c4dcbd25dbb60
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix qdoc link error to Enginio::Role
Jędrzej Nowacki [Mon, 25 Nov 2013 15:31:23 +0000 (15:31 +0000)]
Fix qdoc link error to Enginio::Role

Change-Id: If0e812375f5d72fee5eba5f227b253eb39aa9099
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoMove EnginioModelBase::Roles to Enginio::Roles
Jędrzej Nowacki [Mon, 25 Nov 2013 15:14:53 +0000 (15:14 +0000)]
Move EnginioModelBase::Roles to Enginio::Roles

Change-Id: I9729c25bdbe83c8f3339c161c94e502c35141966
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoImprove qml test: use compare over verify
Jędrzej Nowacki [Mon, 25 Nov 2013 14:56:50 +0000 (14:56 +0000)]
Improve qml test: use compare over verify

Change-Id: I4bd00f99f456dbbd65fd2bd47b90f0b6ba20e718
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoMove all enums defined by EnginioClientConnection to a gadet
Jędrzej Nowacki [Mon, 25 Nov 2013 14:55:46 +0000 (14:55 +0000)]
Move all enums defined by EnginioClientConnection to a gadet

Change-Id: I5987fd34d95d0f8d5e417f74981d3f92fdef72c5
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoRename Enginio to EnginioClient in QML
Jędrzej Nowacki [Mon, 25 Nov 2013 14:45:59 +0000 (14:45 +0000)]
Rename Enginio to EnginioClient in QML

Change-Id: I83b932fc5c9febae1743ed20ad50069826b2d7c7
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoMark EnginioModelBase ctor as protected
Jędrzej Nowacki [Mon, 25 Nov 2013 13:24:53 +0000 (13:24 +0000)]
Mark EnginioModelBase ctor as protected

Change-Id: Ibe80aeb2c33c98baf62a4531b5a85ea398d0a475
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoHard code cipher when ENGINIO_VALGRIND_DEBUG is set
Frederik Gladhorn [Fri, 22 Nov 2013 14:21:31 +0000 (15:21 +0100)]
Hard code cipher when ENGINIO_VALGRIND_DEBUG is set

Valgrind do not like openssl implementation of AES. The stderr is
spammed massively by warnings caused by usage of red zone, which makes
the analysis completely unusable.

Change-Id: I987434afbfc810c8b4347afbf2204dd4c3ba44ef
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoDelete all EnginioReplyBase children in EnginioClientBase dtor.
Jędrzej Nowacki [Wed, 20 Nov 2013 11:25:04 +0000 (11:25 +0000)]
Delete all EnginioReplyBase children in EnginioClientBase dtor.

Normally children are deleted in QObject destructor, but
EnginioReplyBase destructor checks for EnginioClientBasePrivate
properties which are destroyed at this point. Therefore we need to
destroy replies a bit earlier.

Change-Id: Ic98ae75c590c26271efcabfce662f6ea236f9c65
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoDo not delete unfinished QNetworkReply.
Jędrzej Nowacki [Fri, 15 Nov 2013 15:34:24 +0000 (15:34 +0000)]
Do not delete unfinished QNetworkReply.

Change-Id: I06751f807c70bd38b6a60a91082b72fd8dce1747
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoCall QNetworkReply::abort when we the request's result is not needed.
Jędrzej Nowacki [Fri, 15 Nov 2013 13:34:18 +0000 (13:34 +0000)]
Call QNetworkReply::abort when we the request's result is not needed.

Dummy reply is not leaking anymore if an owning EnginioReply is deleted

Change-Id: I9cee6527a5c132ce922295e6b4a34310f0cc3874
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoFix memory corruption.
Jędrzej Nowacki [Fri, 22 Nov 2013 15:41:58 +0000 (15:41 +0000)]
Fix memory corruption.

EnginioClient destroyed signal was trying to disconnect a reply created
by the identity even if the identity was already deleted.

Change-Id: I335e3ee94b8d8fbe854382b91051245a990b7a1f
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoConvert EnginioIdentity to use QObjectPrivate pattern.
Jędrzej Nowacki [Thu, 21 Nov 2013 10:26:40 +0000 (10:26 +0000)]
Convert EnginioIdentity to use QObjectPrivate pattern.

Change-Id: I6b402f0e2fc5e07062c8ffd8c0e38b014b08983d
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUse shared QNetworkRequest instead constructing one from scratch
Jędrzej Nowacki [Fri, 22 Nov 2013 15:46:18 +0000 (15:46 +0000)]
Use shared QNetworkRequest instead constructing one from scratch

That way we have one point in which we can inject features for all
network requests.

Change-Id: I1b90221ec368ef44c81e1308864c0b1b10030dac
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoAdd basic error handling to example
Frederik Gladhorn [Tue, 29 Oct 2013 09:40:32 +0000 (10:40 +0100)]
Add basic error handling to example

Change-Id: I23fd6ecba4c5718241d8d2a508ee24910d4d8fa9
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRename EnginioClientBase to EnginioClientConnection.
Jędrzej Nowacki [Fri, 22 Nov 2013 11:26:35 +0000 (11:26 +0000)]
Rename EnginioClientBase to EnginioClientConnection.

The "Base" name was meaningless. EnginioClientConnection is keeping
information about backend connection.

[ChangeLog][API] Renamed EnginioClientBase to EnginioClientConnection

Change-Id: Ide98c67702c2edd3ba2485d10f619917671834b4
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoUpdate docs after search function has been renamed.
Jędrzej Nowacki [Fri, 22 Nov 2013 09:34:39 +0000 (09:34 +0000)]
Update docs after search function has been renamed.

Change-Id: I83a9b6a8b029723d6ec718fa47451cdda3b16bdd
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoImprove socialtodos docs
Frederik Gladhorn [Wed, 23 Oct 2013 15:11:20 +0000 (17:11 +0200)]
Improve socialtodos docs

While the last two sections are still missing, I think this is great as
a first version. We can improve it incrementally and it is already much
better than what we have.

Done-with: Harri Eronen

Change-Id: Ife54cbf75814742d88a43db298c4ccac2f29f55a
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoSimplify replies connections ownership.
Jędrzej Nowacki [Tue, 19 Nov 2013 13:55:56 +0000 (13:55 +0000)]
Simplify replies connections ownership.

By using new QObject::connect signal we do not have to manually trace
QObject connections anymore.

The patch fixes random crash in EnginioModel autotests in which a not
needed anymore reply was delivered.

Change-Id: I71e21f486d8ed6b55889a1f71d6c801e20bdab09
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
4 years agoEnginioModel::setData change order of arguments
Frederik Gladhorn [Thu, 21 Nov 2013 15:01:43 +0000 (16:01 +0100)]
EnginioModel::setData change order of arguments

This makes it consistent with QAbstractItemModel

[ChangeLog][API] The order of the role and value arguments in
EnginioModel::setData changed.

Change-Id: I60b0e1c8a9417aa1c9345789ff86e08c029804b4
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoClean up symbol visibility
Frederik Gladhorn [Thu, 21 Nov 2013 14:32:02 +0000 (15:32 +0100)]
Clean up symbol visibility

Change-Id: Id9138a0906388cf318b9bcf029c1d3c61febe90c
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAPI: Rename EnginioModelBase::Roles to Role
Frederik Gladhorn [Thu, 21 Nov 2013 14:25:16 +0000 (15:25 +0100)]
API: Rename EnginioModelBase::Roles to Role

[ChangeLog][API] Renamed Roles to Role in EnginioModelBase. Enums should
be singular.

Change-Id: Ib0228c0b982cc67f10c76c9187626f0f76d6883d
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAPI: Rename EnginioModel::setProperty to setData
Frederik Gladhorn [Thu, 21 Nov 2013 14:21:42 +0000 (15:21 +0100)]
API: Rename EnginioModel::setProperty to setData

[ChangeLog][API] Renamed setProperty to setData in EnginioModel for
better consistency with other C++ models.

Change-Id: I112571b31de713a9d7886bfe925fe445eb37c6ed
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAPI: Rename EnginioModel::engino property to client
Frederik Gladhorn [Thu, 21 Nov 2013 13:28:44 +0000 (14:28 +0100)]
API: Rename EnginioModel::engino property to client

[ChangeLog][API] Renamed EnginioModel::engino property to client

Change-Id: I56ee3dfeab0f051b92dddf88bc94fb15552572a5
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoMake setUser and setPassword slots
Frederik Gladhorn [Thu, 21 Nov 2013 14:31:45 +0000 (15:31 +0100)]
Make setUser and setPassword slots

Change-Id: I23b4c592e2f26ada3ea74d33ee4731b86d5a5d40
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAdd explicit to single argument constructor
Frederik Gladhorn [Thu, 21 Nov 2013 14:27:31 +0000 (15:27 +0100)]
Add explicit to single argument constructor

Change-Id: I8adfbd24023417ac4d450f67413f47e959e666f0
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAPI: Rename downloadFile to downloadUrl
Frederik Gladhorn [Thu, 21 Nov 2013 12:59:40 +0000 (13:59 +0100)]
API: Rename downloadFile to downloadUrl

[ChangeLog][API] Renamed the downloadFile function to downloadUrl to
make it clear that this function does only provide a URL and does not
download the file.

Change-Id: I6b3c20de9319c7545ff266d2778b985729fe5077
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoAPI: Rename search to fullTextSearch
Frederik Gladhorn [Thu, 21 Nov 2013 12:30:11 +0000 (13:30 +0100)]
API: Rename search to fullTextSearch

[ChangeLog][API] Renamed the search function to fullTextSearch

Change-Id: I4c667ccbf89048e9ef49d26d4fb80ed52153dfde
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoMove Q_PROPERTY to the Q_OBJECT macro for consistency
Frederik Gladhorn [Thu, 21 Nov 2013 13:17:56 +0000 (14:17 +0100)]
Move Q_PROPERTY to the Q_OBJECT macro for consistency

Change-Id: I9e0fd718711bbc802880a9a50004c51e19e29d48
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
4 years agoRemove const from signals
Frederik Gladhorn [Thu, 21 Nov 2013 13:08:04 +0000 (14:08 +0100)]
Remove const from signals

Change-Id: Id52306da8a7034f807f83322a9c5150d4d97df3a
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>