Merge lp:~renatofilho/address-book-app/buteo-qml into lp:address-book-app
- buteo-qml
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michael Sheldon |
Approved revision: | 460 |
Merged at revision: | 477 |
Proposed branch: | lp:~renatofilho/address-book-app/buteo-qml |
Merge into: | lp:address-book-app |
Diff against target: |
211 lines (+45/-13) 8 files modified
debian/control (+2/-2) src/app/addressbookapp.cpp (+10/-0) src/app/addressbookapp.h (+6/-2) src/imports/ABContactListPage.qml (+1/-1) src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailSyncTargetEditor.qml (+14/-0) src/imports/Ubuntu/Contacts/ContactListView.qml (+11/-6) src/imports/Ubuntu/Contacts/OnlineAccountsHelper.qml (+1/-1) src/imports/Ubuntu/Contacts/simcardcontacts.cpp (+0/-1) |
To merge this branch: | bzr merge lp:~renatofilho/address-book-app/buteo-qml |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | packaging | Approve | |
Michael Sheldon (community) | Approve | ||
PS Jenkins bot | continuous-integration | Needs Fixing | |
Review via email: mp+264294@code.launchpad.net |
Commit message
Replace sync-monitor with buteo qml component.
Description of the change
PS Jenkins bot (ps-jenkins) wrote : | # |
- 457. By Renato Araujo Oliveira Filho
-
Show Address book icon if available.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:457
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 458. By Renato Araujo Oliveira Filho
-
Use iconSource property on OptionSelectorD
elegate instead of icon.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:458
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 459. By Renato Araujo Oliveira Filho
-
Hide sync button if the device goes offline.
- 460. By Renato Araujo Oliveira Filho
-
Removed ununsed include.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:459
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:460
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
Renato Araujo Oliveira Filho (renatofilho) wrote : | # |
Are there any related MPs required for this MP to build/function as expected?
- https:/
Is your branch in sync with latest trunk?
YES
Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?
YES
Did you successfully run all tests found in your component's Test Plan on device or emulator?
YES
If you changed the UI, was the change specified/approved by design?
NO UI CHANGED
If you changed UI labels, did you update the pot file?
NO LABEL CHANGED
If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?
YES
Michael Sheldon (michael-sheldon) wrote : | # |
Code looks good to me
Ken VanDine (ken-vandine) wrote : | # |
Packaging changes look fine
Preview Diff
1 | === modified file 'debian/control' | |||
2 | --- debian/control 2015-05-14 21:23:43 +0000 | |||
3 | +++ debian/control 2015-07-21 18:04:28 +0000 | |||
4 | @@ -18,7 +18,7 @@ | |||
5 | 18 | qtdeclarative5-ubuntu-content1 [i386 amd64 armhf], | 18 | qtdeclarative5-ubuntu-content1 [i386 amd64 armhf], |
6 | 19 | qtdeclarative5-ubuntu-history0.1 [i386 amd64 armhf], | 19 | qtdeclarative5-ubuntu-history0.1 [i386 amd64 armhf], |
7 | 20 | qtdeclarative5-ubuntu-keyboard-extensions0.1 [i386 amd64 armhf], | 20 | qtdeclarative5-ubuntu-keyboard-extensions0.1 [i386 amd64 armhf], |
9 | 21 | qtdeclarative5-ubuntu-syncmonitor0.1 [i386 amd64 armhf], | 21 | qtdeclarative5-buteo-syncfw0.1 [i386 amd64 armhf], |
10 | 22 | qtdeclarative5-ubuntu-telephony-phonenumber0.1 [i386 amd64 armhf], | 22 | qtdeclarative5-ubuntu-telephony-phonenumber0.1 [i386 amd64 armhf], |
11 | 23 | qtdeclarative5-ubuntu-ui-toolkit-plugin [i386 amd64 armhf], | 23 | qtdeclarative5-ubuntu-ui-toolkit-plugin [i386 amd64 armhf], |
12 | 24 | qt5-default, | 24 | qt5-default, |
13 | @@ -62,7 +62,7 @@ | |||
14 | 62 | Depends: qtdeclarative5-accounts-plugin, | 62 | Depends: qtdeclarative5-accounts-plugin, |
15 | 63 | qtdeclarative5-online-accounts-client0.1, | 63 | qtdeclarative5-online-accounts-client0.1, |
16 | 64 | qtdeclarative5-qtquick2-plugin, | 64 | qtdeclarative5-qtquick2-plugin, |
18 | 65 | qtdeclarative5-ubuntu-syncmonitor0.1, | 65 | qtdeclarative5-buteo-syncfw0.1, |
19 | 66 | qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 0.1.46+14.10.20140527) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles, | 66 | qtdeclarative5-ubuntu-ui-toolkit-plugin (>= 0.1.46+14.10.20140527) | qtdeclarative5-ubuntu-ui-toolkit-plugin-gles, |
20 | 67 | qtdeclarative5-qtcontacts-plugin, | 67 | qtdeclarative5-qtcontacts-plugin, |
21 | 68 | suru-icon-theme, | 68 | suru-icon-theme, |
22 | 69 | 69 | ||
23 | === modified file 'src/app/addressbookapp.cpp' | |||
24 | --- src/app/addressbookapp.cpp 2015-06-08 15:59:22 +0000 | |||
25 | +++ src/app/addressbookapp.cpp 2015-07-21 18:04:28 +0000 | |||
26 | @@ -100,6 +100,7 @@ | |||
27 | 100 | AddressBookApp::AddressBookApp(int &argc, char **argv) | 100 | AddressBookApp::AddressBookApp(int &argc, char **argv) |
28 | 101 | : QGuiApplication(argc, argv), | 101 | : QGuiApplication(argc, argv), |
29 | 102 | m_view(0), | 102 | m_view(0), |
30 | 103 | m_netManager(new QNetworkConfigurationManager), | ||
31 | 103 | m_pickingMode(false), | 104 | m_pickingMode(false), |
32 | 104 | m_testMode(false), | 105 | m_testMode(false), |
33 | 105 | m_withArgs(false) | 106 | m_withArgs(false) |
34 | @@ -107,6 +108,10 @@ | |||
35 | 107 | s_elapsed.start(); | 108 | s_elapsed.start(); |
36 | 108 | setOrganizationName("com.ubuntu.address-book"); | 109 | setOrganizationName("com.ubuntu.address-book"); |
37 | 109 | setApplicationName("AddressBookApp"); | 110 | setApplicationName("AddressBookApp"); |
38 | 111 | connect(m_netManager.data(), | ||
39 | 112 | SIGNAL(onlineStateChanged(bool)), | ||
40 | 113 | SIGNAL(isOnlineChanged()), | ||
41 | 114 | Qt::QueuedConnection); | ||
42 | 110 | } | 115 | } |
43 | 111 | 116 | ||
44 | 112 | bool AddressBookApp::setup() | 117 | bool AddressBookApp::setup() |
45 | @@ -414,3 +419,8 @@ | |||
46 | 414 | Q_EMIT callbackApplicationChanged(); | 419 | Q_EMIT callbackApplicationChanged(); |
47 | 415 | } | 420 | } |
48 | 416 | } | 421 | } |
49 | 422 | |||
50 | 423 | bool AddressBookApp::isOnline() const | ||
51 | 424 | { | ||
52 | 425 | return m_netManager->isOnline(); | ||
53 | 426 | } | ||
54 | 417 | 427 | ||
55 | === modified file 'src/app/addressbookapp.h' | |||
56 | --- src/app/addressbookapp.h 2015-06-08 15:59:22 +0000 | |||
57 | +++ src/app/addressbookapp.h 2015-07-21 18:04:28 +0000 | |||
58 | @@ -21,12 +21,14 @@ | |||
59 | 21 | #include <QtDBus/QDBusInterface> | 21 | #include <QtDBus/QDBusInterface> |
60 | 22 | #include <QtGui/QGuiApplication> | 22 | #include <QtGui/QGuiApplication> |
61 | 23 | #include <QtQuick/QQuickView> | 23 | #include <QtQuick/QQuickView> |
62 | 24 | #include <QtNetwork/QNetworkConfigurationManager> | ||
63 | 24 | 25 | ||
64 | 25 | class AddressBookApp : public QGuiApplication | 26 | class AddressBookApp : public QGuiApplication |
65 | 26 | { | 27 | { |
66 | 27 | Q_OBJECT | 28 | Q_OBJECT |
67 | 28 | Q_PROPERTY(bool firstRun READ isFirstRun CONSTANT) | 29 | Q_PROPERTY(bool firstRun READ isFirstRun CONSTANT) |
68 | 29 | Q_PROPERTY(QString callbackApplication READ callbackApplication WRITE setCallbackApplication NOTIFY callbackApplicationChanged) | 30 | Q_PROPERTY(QString callbackApplication READ callbackApplication WRITE setCallbackApplication NOTIFY callbackApplicationChanged) |
69 | 31 | Q_PROPERTY(bool isOnline READ isOnline NOTIFY isOnlineChanged) | ||
70 | 30 | 32 | ||
71 | 31 | public: | 33 | public: |
72 | 32 | AddressBookApp(int &argc, char **argv); | 34 | AddressBookApp(int &argc, char **argv); |
73 | @@ -37,10 +39,11 @@ | |||
74 | 37 | QString callbackApplication() const; | 39 | QString callbackApplication() const; |
75 | 38 | void setCallbackApplication(const QString &application); | 40 | void setCallbackApplication(const QString &application); |
76 | 39 | 41 | ||
77 | 42 | bool isOnline() const; | ||
78 | 43 | |||
79 | 40 | Q_SIGNALS: | 44 | Q_SIGNALS: |
80 | 41 | void syncingChanged(); | ||
81 | 42 | void syncEnabledChanged(); | ||
82 | 43 | void callbackApplicationChanged(); | 45 | void callbackApplicationChanged(); |
83 | 46 | void isOnlineChanged(); | ||
84 | 44 | 47 | ||
85 | 45 | public Q_SLOTS: | 48 | public Q_SLOTS: |
86 | 46 | void activateWindow(); | 49 | void activateWindow(); |
87 | @@ -59,6 +62,7 @@ | |||
88 | 59 | 62 | ||
89 | 60 | private: | 63 | private: |
90 | 61 | QQuickView *m_view; | 64 | QQuickView *m_view; |
91 | 65 | QScopedPointer<QNetworkConfigurationManager> m_netManager; | ||
92 | 62 | QString m_initialArg; | 66 | QString m_initialArg; |
93 | 63 | QString m_callbackApplication; | 67 | QString m_callbackApplication; |
94 | 64 | bool m_viewReady; | 68 | bool m_viewReady; |
95 | 65 | 69 | ||
96 | === modified file 'src/imports/ABContactListPage.qml' | |||
97 | --- src/imports/ABContactListPage.qml 2015-06-10 17:24:55 +0000 | |||
98 | +++ src/imports/ABContactListPage.qml 2015-07-21 18:04:28 +0000 | |||
99 | @@ -226,7 +226,7 @@ | |||
100 | 226 | } | 226 | } |
101 | 227 | }, | 227 | }, |
102 | 228 | Action { | 228 | Action { |
104 | 229 | visible: contactList.syncEnabled | 229 | visible: (application.isOnline && contactList.syncEnabled) |
105 | 230 | text: contactList.syncing ? i18n.tr("Syncing") : i18n.tr("Sync") | 230 | text: contactList.syncing ? i18n.tr("Syncing") : i18n.tr("Sync") |
106 | 231 | iconName: "reload" | 231 | iconName: "reload" |
107 | 232 | enabled: !contactList.syncing | 232 | enabled: !contactList.syncing |
108 | 233 | 233 | ||
109 | === modified file 'src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailSyncTargetEditor.qml' | |||
110 | --- src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailSyncTargetEditor.qml 2015-05-07 17:27:16 +0000 | |||
111 | +++ src/imports/Ubuntu/AddressBook/ContactEditor/ContactDetailSyncTargetEditor.qml 2015-07-21 18:04:28 +0000 | |||
112 | @@ -108,6 +108,20 @@ | |||
113 | 108 | 108 | ||
114 | 109 | delegate: OptionSelectorDelegate { | 109 | delegate: OptionSelectorDelegate { |
115 | 110 | text: contact.displayLabel.label | 110 | text: contact.displayLabel.label |
116 | 111 | constrainImage: true | ||
117 | 112 | iconSource: { | ||
118 | 113 | var details = contact.details(ContactDetail.ExtendedDetail) | ||
119 | 114 | for(var i in details) { | ||
120 | 115 | if (details[i].name === "PROVIDER") { | ||
121 | 116 | if (details[i].data === "") { | ||
122 | 117 | return "image://theme/address-book-app-symbolic" | ||
123 | 118 | } else { | ||
124 | 119 | return "image://theme/online-accounts-%1".arg(details[i].data) | ||
125 | 120 | } | ||
126 | 121 | } | ||
127 | 122 | } | ||
128 | 123 | return "image://theme/address-book-app-symbolic" | ||
129 | 124 | } | ||
130 | 111 | height: units.gu(4) | 125 | height: units.gu(4) |
131 | 112 | } | 126 | } |
132 | 113 | 127 | ||
133 | 114 | 128 | ||
134 | === modified file 'src/imports/Ubuntu/Contacts/ContactListView.qml' | |||
135 | --- src/imports/Ubuntu/Contacts/ContactListView.qml 2015-06-01 22:13:47 +0000 | |||
136 | +++ src/imports/Ubuntu/Contacts/ContactListView.qml 2015-07-21 18:04:28 +0000 | |||
137 | @@ -19,7 +19,7 @@ | |||
138 | 19 | 19 | ||
139 | 20 | import Ubuntu.Components 1.1 | 20 | import Ubuntu.Components 1.1 |
140 | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem | 21 | import Ubuntu.Components.ListItems 1.0 as ListItem |
142 | 22 | import Ubuntu.SyncMonitor 0.1 | 22 | import Buteo 0.1 |
143 | 23 | 23 | ||
144 | 24 | /*! | 24 | /*! |
145 | 25 | \qmltype ContactListView | 25 | \qmltype ContactListView |
146 | @@ -204,13 +204,18 @@ | |||
147 | 204 | 204 | ||
148 | 205 | This property holds if the list is running a sync with online accounts or not | 205 | This property holds if the list is running a sync with online accounts or not |
149 | 206 | */ | 206 | */ |
151 | 207 | readonly property bool syncing: (syncMonitor.state === "syncing") | 207 | readonly property alias syncing: buteoSync.syncing |
152 | 208 | /*! | 208 | /*! |
153 | 209 | \qmlproperty bool syncEnabled | 209 | \qmlproperty bool syncEnabled |
154 | 210 | 210 | ||
155 | 211 | This property holds if there is online account to sync or not | 211 | This property holds if there is online account to sync or not |
156 | 212 | */ | 212 | */ |
158 | 213 | readonly property bool syncEnabled: syncMonitor.enabledServices ? syncMonitor.serviceIsEnabled("contacts") : false | 213 | // we are using 'buteoSync.visibleSyncProfiles because' it is a property |
159 | 214 | // and will re-check if the property changes. | ||
160 | 215 | // Using only '(buteoSync.syncProfilesByCategory("contacts").length > 0)' | ||
161 | 216 | // the value will be checked only on app startup | ||
162 | 217 | readonly property bool syncEnabled: buteoSync.visibleSyncProfiles && | ||
163 | 218 | (buteoSync.syncProfilesByCategory("contacts").length > 0) | ||
164 | 214 | /*! | 219 | /*! |
165 | 215 | \qmlproperty bool busy | 220 | \qmlproperty bool busy |
166 | 216 | 221 | ||
167 | @@ -340,7 +345,7 @@ | |||
168 | 340 | */ | 345 | */ |
169 | 341 | function sync() | 346 | function sync() |
170 | 342 | { | 347 | { |
172 | 343 | syncMonitor.sync(["contacts"]) | 348 | buteoSync.startSyncByCategory("contacts") |
173 | 344 | } | 349 | } |
174 | 345 | 350 | ||
175 | 346 | ContactSimpleListView { | 351 | ContactSimpleListView { |
176 | @@ -538,8 +543,8 @@ | |||
177 | 538 | } | 543 | } |
178 | 539 | } | 544 | } |
179 | 540 | 545 | ||
182 | 541 | SyncMonitor { | 546 | ButeoSync { |
183 | 542 | id: syncMonitor | 547 | id: buteoSync |
184 | 543 | } | 548 | } |
185 | 544 | 549 | ||
186 | 545 | SIMList { | 550 | SIMList { |
187 | 546 | 551 | ||
188 | === modified file 'src/imports/Ubuntu/Contacts/OnlineAccountsHelper.qml' | |||
189 | --- src/imports/Ubuntu/Contacts/OnlineAccountsHelper.qml 2015-02-09 13:25:01 +0000 | |||
190 | +++ src/imports/Ubuntu/Contacts/OnlineAccountsHelper.qml 2015-07-21 18:04:28 +0000 | |||
191 | @@ -33,7 +33,7 @@ | |||
192 | 33 | } | 33 | } |
193 | 34 | Setup { | 34 | Setup { |
194 | 35 | id: setup | 35 | id: setup |
196 | 36 | applicationId: "contacts-sync" | 36 | applicationId: "address-book-app" |
197 | 37 | providerId: "google" | 37 | providerId: "google" |
198 | 38 | onFinished: { | 38 | onFinished: { |
199 | 39 | root.running = false | 39 | root.running = false |
200 | 40 | 40 | ||
201 | === modified file 'src/imports/Ubuntu/Contacts/simcardcontacts.cpp' | |||
202 | --- src/imports/Ubuntu/Contacts/simcardcontacts.cpp 2015-05-27 22:49:00 +0000 | |||
203 | +++ src/imports/Ubuntu/Contacts/simcardcontacts.cpp 2015-07-21 18:04:28 +0000 | |||
204 | @@ -19,7 +19,6 @@ | |||
205 | 19 | #include <QDebug> | 19 | #include <QDebug> |
206 | 20 | #include <QDBusConnection> | 20 | #include <QDBusConnection> |
207 | 21 | #include <qofonophonebook.h> | 21 | #include <qofonophonebook.h> |
208 | 22 | #include <qofono-qt5/dbus/ofonophonebook.h> | ||
209 | 23 | 22 | ||
210 | 24 | SimCardContacts::SimCardContacts(QObject *parent) | 23 | SimCardContacts::SimCardContacts(QObject *parent) |
211 | 25 | : QObject(parent), | 24 | : QObject(parent), |
FAILED: Continuous integration, rev:455 jenkins. qa.ubuntu. com/job/ address- book-app- ci/842/ jenkins. qa.ubuntu. com/job/ address- book-app- vivid-i386- ci/145/ console jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 3402/console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 3399/console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/address- book-app- ci/842/ rebuild
http://