Use a better way of initializing QJSEngine pointer.

Instead of scanning each QJSValue we can ask Qml library for the pointer

Change-Id: I97735f8590ef6cc5268481944c213aabaafe74d5
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Use forwarded Enginio headers when building qml plugin

Change-Id: Ib20dd600c7029bdeed1a4cbc0d9b5ff56131fe88
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Remove a qml temporary file.

Qml tests were leaving a temporary file with backend credentials.

Change-Id: I884d66721dee33692f8f9ffd41afda1f18fdb916
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Fix UsergroupMembersOperation api defect.

It was not possible to add a user to a group with Qt api.
EnginioClient::create was sending wrong id to the server, causing 404
error.

Change-Id: I818d0a6d37c3be85581949fe8b97bafdc62818b7
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Fix ObjectAclOperation api defect.

By using UsergroupMembersOperation pattern we can avoid modifying
request object. That fixes a fixme and unify api.

Change-Id: I118740a1455e7be51576a9a9a3edcce50e7eba26
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Build fix on msvc2012

The compiler was complaining about missing symbols.

Change-Id: I6c9d843c68b1639a60377bcb3359ab6e5c424e57
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Add new qml tests for EnginioModel

Change-Id: Ia38f1363a3c98577da8438f746d8c1f3a8291c3f
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
fix typo

Change-Id: I5a3d7f9e247364281e2a2dd47317565102f4c487
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Add missing copyright notice in qml tests

Change-Id: Ib75abc89e1e8fd735bca549cf72fb28059fca3b9
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Fix usage of non-local enums in qml

Change-Id: Ica489d494e11f2e006a7da4236a8fc080f12d70a
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Test Creator property

Change-Id: Ib82edd7c62e701fd92226c1ee8a2d6e1b0462d76
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Add more QML tests

Change-Id: Iee854ffce13af96d5bf4dc08c35cbba9ce8ba98b
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Workaround broken QML behavior when a non-local enum is used

Non-local enums can not be used in Q_PROPERTY unless redeclared.

Change-Id: I92362fbafe35891bdb0a6d78a291e6ee4b91a159
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Fix a race condition between initial query and append in EnginioModel

It was possible that initial query could remove a dummy place holder
created by append function call.

Change-Id: Ia7a98375257dcd3da087d058415031510aedf726
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Fix backend name in tst_EnginioModel

Change-Id: Ife66020c821f337560d56c8c97972aaaa99bc5f0
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Fix qmladaptor for undefined properties

The QJson classes return an empty string when calling .toString,
    QJsValue would return "undefined" breaking an assumption in getPath.

Change-Id: I39ef661dfee0c69f0349daf27806d3a4b3a1c8a7
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Fix errorString from qml

After calling .data() the errorString() function would always return an
empty string since the reply's data was read into the jsvalue of the
EnginioQmlReply.

Change-Id: I3c252d4d1d480efadb5cc429a492f0b0d0e61c2b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Fix errorString returning network string instead of JSON

Add qml reply test

Change-Id: I3574c827df2a3f4939390ec33a7db1b8b7a0e276
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Remove unused variable

Change-Id: Ib58513ed5d1931183a06358f7e326bb1e6b7719e
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Rename EnginioModelPrivate::_connections to _clientConnections

The name was to generic

Change-Id: I47793087a3f80726f0b41ecf493e80b3b73d40e0
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>