Merge lp:~uonedb-qt/u1db-qt/apiFile into lp:u1db-qt

Proposed by Cris Dywan
Status: Work in progress
Proposed branch: lp:~uonedb-qt/u1db-qt/apiFile
Merge into: lp:u1db-qt
Diff against target: 97 lines (+69/-0)
4 files modified
debian/control (+1/-0)
debian/libu1db-qt5-api.install (+1/-0)
modules/U1db/CMakeLists.txt (+11/-0)
modules/U1db/U1db.api (+56/-0)
To merge this branch: bzr merge lp:~uonedb-qt/u1db-qt/apiFile
Reviewer Review Type Date Requested Status
Zoltan Balogh (community) Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
U1DB Qt developers Pending
Review via email: mp+287626@code.launchpad.net

Commit message

Verify and ship QML API description

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

I wonder if we want to change the ubuntu-ui-toolkit-tools to a more generic name

review: Needs Information
Revision history for this message
Zoltan Balogh (bzoltan) wrote :

Inline comments.

review: Needs Fixing
Revision history for this message
Cris Dywan (kalikiana) wrote :

> I wonder if we want to change the ubuntu-ui-toolkit-tools
> to a more generic name

Note that *this* branch is merely using apicheck with U1db. Your feedback would make more sense on https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/firstClassApiCheck/+merge/287004 where -tools package providing apicheck lives.

Unmerged revisions

132. By Cris Dywan

Verify and ship QML API description

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2014-01-22 13:14:22 +0000
+++ debian/control 2016-03-01 13:02:26 +0000
@@ -14,6 +14,7 @@
14 qtdeclarative5-qtquick2-plugin,14 qtdeclarative5-qtquick2-plugin,
15 qtdeclarative5-test-plugin,15 qtdeclarative5-test-plugin,
16 qttools5-dev-tools,16 qttools5-dev-tools,
17 ubuntu-ui-toolkit-tools,
17 ubuntu-ui-toolkit-doc,18 ubuntu-ui-toolkit-doc,
18 xvfb,19 xvfb,
19 libgl1-mesa-dri,20 libgl1-mesa-dri,
2021
=== added file 'debian/libu1db-qt5-api.install'
--- debian/libu1db-qt5-api.install 1970-01-01 00:00:00 +0000
+++ debian/libu1db-qt5-api.install 2016-03-01 13:02:26 +0000
@@ -0,0 +1,1 @@
1usr/share/click/api/qml/*
02
=== modified file 'modules/U1db/CMakeLists.txt'
--- modules/U1db/CMakeLists.txt 2013-08-08 10:11:39 +0000
+++ modules/U1db/CMakeLists.txt 2016-03-01 13:02:26 +0000
@@ -57,3 +57,14 @@
57install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes57install(FILES ${CMAKE_CURRENT_BINARY_DIR}/plugins.qmltypes
58 DESTINATION ${QT_IMPORTS_DIR}/U1db58 DESTINATION ${QT_IMPORTS_DIR}/U1db
59 )59 )
60
61add_custom_command(OUTPUT U1db.api
62 COMMAND "ubuntu-ui-toolkit-apicheck" "U1db" "${CMAKE_CURRENT_SOURCE_DIR}/U1db.api" ">" "${CMAKE_CURRENT_BINARY_DIR}/U1db.api.new"
63 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
64 DEPENDS U1DBPlugin
65 )
66add_custom_target(api "ALL" DEPENDS U1db.api)
67install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/U1db.api
68 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/click/api/qml
69 )
70
6071
=== added file 'modules/U1db/U1db.api'
--- modules/U1db/U1db.api 1970-01-01 00:00:00 +0000
+++ modules/U1db/U1db.api 2016-03-01 13:02:26 +0000
@@ -0,0 +1,56 @@
1U1db.Database 1.0 U1db::Database: QAbstractListModel
2 readonly property string error
3 signal pathChanged(string path)
4 signal errorChanged(string error)
5 signal docChanged(string docId, var content)
6 signal docLoaded(string docId, var content)
7 function var getDoc(string docId)
8 function string putDoc(var newDoc, string docID)
9 function string putDoc(var newDoc)
10 function deleteDoc(string docID)
11 function list<string> listDocs()
12 function string lastError()
13 function string putIndex(string index_name, QStringList expressions)
14 function QStringList getIndexExpressions(string indexName)
15 function QStringList getIndexKeys(string indexName)
16 property string path
17U1db.Document 1.0 U1db::Document: QtObject
18 property var contents
19 property bool create
20 property U1db.Database database
21 property var defaults
22 property string docId
23 signal databaseChanged(Database database)
24 signal docIdChanged(string docId)
25 signal createChanged(bool create)
26 signal defaultsChanged(var defaults)
27 signal contentsChanged(var contents)
28U1db.Index 1.0 U1db::Index: QtObject
29 property U1db.Database database
30 property QStringList expression
31 signal databaseChanged(Database database)
32 signal nameChanged(string name)
33 signal expressionChanged(var expression)
34 signal dataInvalidated()
35 property string name
36U1db.Query 1.0 U1db::Query: QAbstractListModel
37 readonly property QStringList documents
38 property U1db.Index index
39 signal indexChanged(Index index)
40 signal queryChanged(var query)
41 signal documentsChanged(QStringList documents)
42 signal resultsChanged(QVariantList results)
43 property var query
44 readonly property QVariantList results
45U1db.Synchronizer 1.0 U1db::Synchronizer: QAbstractListModel
46 signal sourceChanged(Database source)
47 signal targetsChanged(var targets)
48 signal syncChanged(bool synchronize)
49 signal resolveToSourceChanged(bool resolve_to_source)
50 signal syncOutputChanged(QVariantList sync_output)
51 signal syncCompleted()
52 property bool resolve_to_source
53 property U1db.Database source
54 readonly property QVariantList sync_output
55 property bool synchronize
56 property var targets

Subscribers

People subscribed via source and target branches

to all changes: