Merge lp:~online-accounts/libaccounts-qt/packaging into lp:libaccounts-qt
- packaging
- Merge into trunk
Proposed by
Alberto Mardegan
Status: | Merged |
---|---|
Approved by: | Alberto Mardegan |
Approved revision: | 151 |
Merged at revision: | 149 |
Proposed branch: | lp:~online-accounts/libaccounts-qt/packaging |
Merge into: | lp:libaccounts-qt |
Diff against target: |
574 lines (+163/-49) 27 files modified
.gitlab-ci.yml (+32/-0) Accounts/account-service.cpp (+2/-2) Accounts/account-service.h (+1/-1) Accounts/account.cpp (+1/-1) Accounts/account.h (+1/-1) Accounts/accountscommon.h (+2/-1) Accounts/application.cpp (+17/-1) Accounts/application.h (+23/-20) Accounts/auth-data.cpp (+1/-1) Accounts/auth-data.h (+1/-1) Accounts/error.cpp (+2/-1) Accounts/error.h (+2/-1) Accounts/manager.cpp (+30/-1) Accounts/manager.h (+2/-1) Accounts/manager_p.h (+1/-1) Accounts/provider.cpp (+1/-1) Accounts/provider.h (+1/-1) Accounts/service-type.cpp (+1/-1) Accounts/service-type.h (+1/-1) Accounts/service.cpp (+1/-1) Accounts/service.h (+1/-1) Accounts/utils.cpp (+1/-1) Accounts/utils.h (+1/-1) common-vars.pri (+2/-2) debian/changelog (+12/-0) debian/control (+1/-4) tests/tst_libaccounts.cpp (+22/-1) |
To merge this branch: | bzr merge lp:~online-accounts/libaccounts-qt/packaging |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Online Accounts | Pending | ||
Review via email: mp+307139@code.launchpad.net |
Commit message
Description of the change
Merge from upstream
Add Manager:
To post a comment you must log in.
- 151. By Alberto Mardegan
-
Remove dependency on Qt4 packages
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file '.gitlab-ci.yml' | |||
2 | --- .gitlab-ci.yml 1970-01-01 00:00:00 +0000 | |||
3 | +++ .gitlab-ci.yml 2016-09-29 09:02:36 +0000 | |||
4 | @@ -0,0 +1,32 @@ | |||
5 | 1 | image: ubuntu:xenial | ||
6 | 2 | |||
7 | 3 | cache: | ||
8 | 4 | key: apt-cache | ||
9 | 5 | paths: | ||
10 | 6 | - apt-cache/ | ||
11 | 7 | |||
12 | 8 | before_script: | ||
13 | 9 | - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR | ||
14 | 10 | - apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y qt5-qmake qtbase5-dev qtchooser pkg-config doxygen libaccounts-glib-dev | ||
15 | 11 | - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y dbus-test-runner lcov gcovr | ||
16 | 12 | |||
17 | 13 | build_amd64: | ||
18 | 14 | stage: build | ||
19 | 15 | script: | ||
20 | 16 | - export QT_SELECT=qt5 | ||
21 | 17 | - mkdir build | ||
22 | 18 | - cd build | ||
23 | 19 | - qmake CONFIG+=debug CONFIG+=coverage .. | ||
24 | 20 | - make -j 4 | ||
25 | 21 | artifacts: | ||
26 | 22 | paths: | ||
27 | 23 | - build/ | ||
28 | 24 | |||
29 | 25 | test_amd64: | ||
30 | 26 | stage: test | ||
31 | 27 | script: | ||
32 | 28 | - find build | xargs touch # Avoid rebuilding | ||
33 | 29 | - cd build | ||
34 | 30 | - make coverage-html | ||
35 | 31 | dependencies: | ||
36 | 32 | - build_amd64 | ||
37 | 0 | 33 | ||
38 | === modified file 'Accounts/account-service.cpp' | |||
39 | --- Accounts/account-service.cpp 2015-10-27 12:31:06 +0000 | |||
40 | +++ Accounts/account-service.cpp 2016-09-29 09:02:36 +0000 | |||
41 | @@ -3,9 +3,9 @@ | |||
42 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
43 | 4 | * | 4 | * |
44 | 5 | * Copyright (C) 2009-2010 Nokia Corporation. | 5 | * Copyright (C) 2009-2010 Nokia Corporation. |
46 | 6 | * Copyright (C) 2013 Canonical Ltd. | 6 | * Copyright (C) 2013-2016 Canonical Ltd. |
47 | 7 | * | 7 | * |
49 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@nokia.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
50 | 9 | * | 9 | * |
51 | 10 | * This library is free software; you can redistribute it and/or | 10 | * This library is free software; you can redistribute it and/or |
52 | 11 | * modify it under the terms of the GNU Lesser General Public License | 11 | * modify it under the terms of the GNU Lesser General Public License |
53 | 12 | 12 | ||
54 | === modified file 'Accounts/account-service.h' | |||
55 | --- Accounts/account-service.h 2013-06-17 10:19:48 +0000 | |||
56 | +++ Accounts/account-service.h 2016-09-29 09:02:36 +0000 | |||
57 | @@ -2,7 +2,7 @@ | |||
58 | 2 | /* | 2 | /* |
59 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
60 | 4 | * | 4 | * |
62 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
63 | 6 | * | 6 | * |
64 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
65 | 8 | * | 8 | * |
66 | 9 | 9 | ||
67 | === modified file 'Accounts/account.cpp' | |||
68 | --- Accounts/account.cpp 2015-10-27 12:31:06 +0000 | |||
69 | +++ Accounts/account.cpp 2016-09-29 09:02:36 +0000 | |||
70 | @@ -3,7 +3,7 @@ | |||
71 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
72 | 4 | * | 4 | * |
73 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
75 | 6 | * Copyright (C) 2012-2013 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
76 | 7 | * | 7 | * |
77 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
78 | 9 | * | 9 | * |
79 | 10 | 10 | ||
80 | === modified file 'Accounts/account.h' | |||
81 | --- Accounts/account.h 2015-09-30 08:17:50 +0000 | |||
82 | +++ Accounts/account.h 2016-09-29 09:02:36 +0000 | |||
83 | @@ -3,7 +3,7 @@ | |||
84 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
85 | 4 | * | 4 | * |
86 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
88 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
89 | 7 | * | 7 | * |
90 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
91 | 9 | * | 9 | * |
92 | 10 | 10 | ||
93 | === modified file 'Accounts/accountscommon.h' | |||
94 | --- Accounts/accountscommon.h 2015-10-27 12:31:06 +0000 | |||
95 | +++ Accounts/accountscommon.h 2016-09-29 09:02:36 +0000 | |||
96 | @@ -3,8 +3,9 @@ | |||
97 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
98 | 4 | * | 4 | * |
99 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
100 | 6 | * Copyright (C) 2012-2016 Canonical Ltd. | ||
101 | 6 | * | 7 | * |
103 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@nokia.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
104 | 8 | * | 9 | * |
105 | 9 | * This library is free software; you can redistribute it and/or | 10 | * This library is free software; you can redistribute it and/or |
106 | 10 | * modify it under the terms of the GNU Lesser General Public License | 11 | * modify it under the terms of the GNU Lesser General Public License |
107 | 11 | 12 | ||
108 | === modified file 'Accounts/application.cpp' | |||
109 | --- Accounts/application.cpp 2014-02-11 10:33:32 +0000 | |||
110 | +++ Accounts/application.cpp 2016-09-29 09:02:36 +0000 | |||
111 | @@ -2,7 +2,7 @@ | |||
112 | 2 | /* | 2 | /* |
113 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
114 | 4 | * | 4 | * |
116 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
117 | 6 | * | 6 | * |
118 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
119 | 8 | * | 8 | * |
120 | @@ -180,6 +180,17 @@ | |||
121 | 180 | } | 180 | } |
122 | 181 | 181 | ||
123 | 182 | /*! | 182 | /*! |
124 | 183 | * Check whether the application supports the given service. | ||
125 | 184 | * @param service Instance of a Service. | ||
126 | 185 | * @return whether the service is supported by this application. | ||
127 | 186 | */ | ||
128 | 187 | bool Application::supportsService(const Service &service) const | ||
129 | 188 | { | ||
130 | 189 | return ag_application_supports_service(m_application, | ||
131 | 190 | service.service()); | ||
132 | 191 | } | ||
133 | 192 | |||
134 | 193 | /*! | ||
135 | 183 | * Get the description from the application XML file, for the specified | 194 | * Get the description from the application XML file, for the specified |
136 | 184 | * service; if not found, get the service-type description instead. | 195 | * service; if not found, get the service-type description instead. |
137 | 185 | * @return Usage description of the service. | 196 | * @return Usage description of the service. |
138 | @@ -189,3 +200,8 @@ | |||
139 | 189 | return UTF8(ag_application_get_service_usage(m_application, | 200 | return UTF8(ag_application_get_service_usage(m_application, |
140 | 190 | service.service())); | 201 | service.service())); |
141 | 191 | } | 202 | } |
142 | 203 | |||
143 | 204 | AgApplication *Application::application() const | ||
144 | 205 | { | ||
145 | 206 | return m_application; | ||
146 | 207 | } | ||
147 | 192 | 208 | ||
148 | === modified file 'Accounts/application.h' | |||
149 | --- Accounts/application.h 2014-02-11 10:33:32 +0000 | |||
150 | +++ Accounts/application.h 2016-09-29 09:02:36 +0000 | |||
151 | @@ -1,25 +1,26 @@ | |||
152 | 1 | /* vi: set et sw=4 ts=4 cino=t0,(0: */ | 1 | /* vi: set et sw=4 ts=4 cino=t0,(0: */ |
153 | 2 | /* | 2 | /* |
174 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
175 | 4 | * | 4 | * |
176 | 5 | * Copyright (C) 2012 Nokia Corporation. | 5 | * Copyright (C) 2012 Nokia Corporation. |
177 | 6 | * | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
178 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * |
179 | 8 | * | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
180 | 9 | * This library is free software; you can redistribute it and/or | 9 | * |
181 | 10 | * modify it under the terms of the GNU Lesser General Public License | 10 | * This library is free software; you can redistribute it and/or |
182 | 11 | * version 2.1 as published by the Free Software Foundation. | 11 | * modify it under the terms of the GNU Lesser General Public License |
183 | 12 | * | 12 | * version 2.1 as published by the Free Software Foundation. |
184 | 13 | * This library is distributed in the hope that it will be useful, but | 13 | * |
185 | 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * This library is distributed in the hope that it will be useful, but |
186 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
187 | 16 | * Lesser General Public License for more details. | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
188 | 17 | * | 17 | * Lesser General Public License for more details. |
189 | 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * |
190 | 19 | * License along with this library; if not, write to the Free Software | 19 | * You should have received a copy of the GNU Lesser General Public |
191 | 20 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | 20 | * License along with this library; if not, write to the Free Software |
192 | 21 | * 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
193 | 22 | */ | 22 | * 02110-1301 USA |
194 | 23 | */ | ||
195 | 23 | 24 | ||
196 | 24 | #ifndef ACCOUNTS_APPLICATION_H | 25 | #ifndef ACCOUNTS_APPLICATION_H |
197 | 25 | #define ACCOUNTS_APPLICATION_H | 26 | #define ACCOUNTS_APPLICATION_H |
198 | @@ -54,12 +55,14 @@ | |||
199 | 54 | QString desktopFilePath() const; | 55 | QString desktopFilePath() const; |
200 | 55 | QString trCatalog() const; | 56 | QString trCatalog() const; |
201 | 56 | 57 | ||
202 | 58 | bool supportsService(const Service &service) const; | ||
203 | 57 | QString serviceUsage(const Service &service) const; | 59 | QString serviceUsage(const Service &service) const; |
204 | 58 | 60 | ||
205 | 59 | private: | 61 | private: |
206 | 60 | // Don't include private data in docs: \cond | 62 | // Don't include private data in docs: \cond |
207 | 61 | friend class Manager; | 63 | friend class Manager; |
208 | 62 | Application(AgApplication *application); | 64 | Application(AgApplication *application); |
209 | 65 | AgApplication *application() const; | ||
210 | 63 | 66 | ||
211 | 64 | AgApplication *m_application; | 67 | AgApplication *m_application; |
212 | 65 | // \endcond | 68 | // \endcond |
213 | 66 | 69 | ||
214 | === modified file 'Accounts/auth-data.cpp' | |||
215 | --- Accounts/auth-data.cpp 2014-09-05 13:23:44 +0000 | |||
216 | +++ Accounts/auth-data.cpp 2016-09-29 09:02:36 +0000 | |||
217 | @@ -2,7 +2,7 @@ | |||
218 | 2 | /* | 2 | /* |
219 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
220 | 4 | * | 4 | * |
222 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
223 | 6 | * | 6 | * |
224 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
225 | 8 | * | 8 | * |
226 | 9 | 9 | ||
227 | === modified file 'Accounts/auth-data.h' | |||
228 | --- Accounts/auth-data.h 2012-03-13 10:54:48 +0000 | |||
229 | +++ Accounts/auth-data.h 2016-09-29 09:02:36 +0000 | |||
230 | @@ -2,7 +2,7 @@ | |||
231 | 2 | /* | 2 | /* |
232 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
233 | 4 | * | 4 | * |
235 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
236 | 6 | * | 6 | * |
237 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
238 | 8 | * | 8 | * |
239 | 9 | 9 | ||
240 | === modified file 'Accounts/error.cpp' | |||
241 | --- Accounts/error.cpp 2012-03-13 09:50:49 +0000 | |||
242 | +++ Accounts/error.cpp 2016-09-29 09:02:36 +0000 | |||
243 | @@ -2,8 +2,9 @@ | |||
244 | 2 | * This file is part of libaccounts-qt | 2 | * This file is part of libaccounts-qt |
245 | 3 | * | 3 | * |
246 | 4 | * Copyright (C) 2011 Nokia Corporation. | 4 | * Copyright (C) 2011 Nokia Corporation. |
247 | 5 | * Copyright (C) 2012-2016 Canonical Ltd. | ||
248 | 5 | * | 6 | * |
250 | 6 | * Contact: Alberto Mardegan <alberto.mardegan@nokia.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
251 | 7 | * | 8 | * |
252 | 8 | * This library is free software; you can redistribute it and/or | 9 | * This library is free software; you can redistribute it and/or |
253 | 9 | * modify it under the terms of the GNU Lesser General Public License | 10 | * modify it under the terms of the GNU Lesser General Public License |
254 | 10 | 11 | ||
255 | === modified file 'Accounts/error.h' | |||
256 | --- Accounts/error.h 2013-01-21 09:43:43 +0000 | |||
257 | +++ Accounts/error.h 2016-09-29 09:02:36 +0000 | |||
258 | @@ -2,8 +2,9 @@ | |||
259 | 2 | * This file is part of libaccounts-qt | 2 | * This file is part of libaccounts-qt |
260 | 3 | * | 3 | * |
261 | 4 | * Copyright (C) 2011 Nokia Corporation. | 4 | * Copyright (C) 2011 Nokia Corporation. |
262 | 5 | * Copyright (C) 2012-2016 Canonical Ltd. | ||
263 | 5 | * | 6 | * |
265 | 6 | * Contact: Alberto Mardegan <alberto.mardegan@nokia.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
266 | 7 | * | 8 | * |
267 | 8 | * This library is free software; you can redistribute it and/or | 9 | * This library is free software; you can redistribute it and/or |
268 | 9 | * modify it under the terms of the GNU Lesser General Public License | 10 | * modify it under the terms of the GNU Lesser General Public License |
269 | 10 | 11 | ||
270 | === modified file 'Accounts/manager.cpp' | |||
271 | --- Accounts/manager.cpp 2015-08-14 07:18:58 +0000 | |||
272 | +++ Accounts/manager.cpp 2016-09-29 09:02:36 +0000 | |||
273 | @@ -3,7 +3,7 @@ | |||
274 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
275 | 4 | * | 4 | * |
276 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
278 | 6 | * Copyright (C) 2012-2013 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
279 | 7 | * | 7 | * |
280 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
281 | 9 | * | 9 | * |
282 | @@ -384,6 +384,35 @@ | |||
283 | 384 | } | 384 | } |
284 | 385 | 385 | ||
285 | 386 | /*! | 386 | /*! |
286 | 387 | * Get the list of services supported by the given application. | ||
287 | 388 | * | ||
288 | 389 | * @param application Application whose services are to be retrieved. | ||
289 | 390 | * | ||
290 | 391 | * @return List of Service objects. | ||
291 | 392 | */ | ||
292 | 393 | ServiceList Manager::serviceList(const Application &application) const | ||
293 | 394 | { | ||
294 | 395 | GList *list; | ||
295 | 396 | |||
296 | 397 | list = ag_manager_list_services_by_application(d->m_manager, | ||
297 | 398 | application.application()); | ||
298 | 399 | |||
299 | 400 | /* convert glist -> ServiceList */ | ||
300 | 401 | ServiceList servList; | ||
301 | 402 | GList *iter; | ||
302 | 403 | |||
303 | 404 | for (iter = list; iter; iter = g_list_next(iter)) | ||
304 | 405 | { | ||
305 | 406 | AgService *service = (AgService*)iter->data; | ||
306 | 407 | servList.append(Service(service, StealReference)); | ||
307 | 408 | } | ||
308 | 409 | |||
309 | 410 | g_list_free(list); | ||
310 | 411 | |||
311 | 412 | return servList; | ||
312 | 413 | } | ||
313 | 414 | |||
314 | 415 | /*! | ||
315 | 387 | * Gets an object representing a provider. | 416 | * Gets an object representing a provider. |
316 | 388 | * @param providerName Name of provider to get. | 417 | * @param providerName Name of provider to get. |
317 | 389 | * | 418 | * |
318 | 390 | 419 | ||
319 | === modified file 'Accounts/manager.h' | |||
320 | --- Accounts/manager.h 2014-08-14 14:50:11 +0000 | |||
321 | +++ Accounts/manager.h 2016-09-29 09:02:36 +0000 | |||
322 | @@ -3,7 +3,7 @@ | |||
323 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
324 | 4 | * | 4 | * |
325 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
327 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
328 | 7 | * | 7 | * |
329 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
330 | 9 | * | 9 | * |
331 | @@ -76,6 +76,7 @@ | |||
332 | 76 | 76 | ||
333 | 77 | Service service(const QString &serviceName) const; | 77 | Service service(const QString &serviceName) const; |
334 | 78 | ServiceList serviceList(const QString &serviceType = QString::null) const; | 78 | ServiceList serviceList(const QString &serviceType = QString::null) const; |
335 | 79 | ServiceList serviceList(const Application &application) const; | ||
336 | 79 | 80 | ||
337 | 80 | Provider provider(const QString &providerName) const; | 81 | Provider provider(const QString &providerName) const; |
338 | 81 | ProviderList providerList() const; | 82 | ProviderList providerList() const; |
339 | 82 | 83 | ||
340 | === modified file 'Accounts/manager_p.h' | |||
341 | --- Accounts/manager_p.h 2013-04-26 06:31:51 +0000 | |||
342 | +++ Accounts/manager_p.h 2016-09-29 09:02:36 +0000 | |||
343 | @@ -3,7 +3,7 @@ | |||
344 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
345 | 4 | * | 4 | * |
346 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
348 | 6 | * Copyright (C) 2012-2013 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
349 | 7 | * | 7 | * |
350 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
351 | 9 | * | 9 | * |
352 | 10 | 10 | ||
353 | === modified file 'Accounts/provider.cpp' | |||
354 | --- Accounts/provider.cpp 2015-09-30 08:17:50 +0000 | |||
355 | +++ Accounts/provider.cpp 2016-09-29 09:02:36 +0000 | |||
356 | @@ -3,7 +3,7 @@ | |||
357 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
358 | 4 | * | 4 | * |
359 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
361 | 6 | * Copyright (C) 2012-2014 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
362 | 7 | * | 7 | * |
363 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
364 | 9 | * | 9 | * |
365 | 10 | 10 | ||
366 | === modified file 'Accounts/provider.h' | |||
367 | --- Accounts/provider.h 2014-03-05 15:56:31 +0000 | |||
368 | +++ Accounts/provider.h 2016-09-29 09:02:36 +0000 | |||
369 | @@ -3,7 +3,7 @@ | |||
370 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
371 | 4 | * | 4 | * |
372 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
374 | 6 | * Copyright (C) 2012-2014 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
375 | 7 | * | 7 | * |
376 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
377 | 9 | * | 9 | * |
378 | 10 | 10 | ||
379 | === modified file 'Accounts/service-type.cpp' | |||
380 | --- Accounts/service-type.cpp 2015-09-30 08:17:50 +0000 | |||
381 | +++ Accounts/service-type.cpp 2016-09-29 09:02:36 +0000 | |||
382 | @@ -3,7 +3,7 @@ | |||
383 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
384 | 4 | * | 4 | * |
385 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
387 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
388 | 7 | * Copyright (C) 2012 Intel Corporation. | 7 | * Copyright (C) 2012 Intel Corporation. |
389 | 8 | * | 8 | * |
390 | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
391 | 10 | 10 | ||
392 | === modified file 'Accounts/service-type.h' | |||
393 | --- Accounts/service-type.h 2012-05-21 12:35:18 +0000 | |||
394 | +++ Accounts/service-type.h 2016-09-29 09:02:36 +0000 | |||
395 | @@ -3,7 +3,7 @@ | |||
396 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
397 | 4 | * | 4 | * |
398 | 5 | * Copyright (C) 2011 Nokia Corporation. | 5 | * Copyright (C) 2011 Nokia Corporation. |
400 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
401 | 7 | * Copyright (C) 2012 Intel Corporation. | 7 | * Copyright (C) 2012 Intel Corporation. |
402 | 8 | * | 8 | * |
403 | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
404 | 10 | 10 | ||
405 | === modified file 'Accounts/service.cpp' | |||
406 | --- Accounts/service.cpp 2015-09-30 08:17:50 +0000 | |||
407 | +++ Accounts/service.cpp 2016-09-29 09:02:36 +0000 | |||
408 | @@ -3,7 +3,7 @@ | |||
409 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
410 | 4 | * | 4 | * |
411 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
413 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
414 | 7 | * Copyright (C) 2012 Intel Corporation. | 7 | * Copyright (C) 2012 Intel Corporation. |
415 | 8 | * | 8 | * |
416 | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
417 | 10 | 10 | ||
418 | === modified file 'Accounts/service.h' | |||
419 | --- Accounts/service.h 2012-05-21 12:35:18 +0000 | |||
420 | +++ Accounts/service.h 2016-09-29 09:02:36 +0000 | |||
421 | @@ -3,7 +3,7 @@ | |||
422 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
423 | 4 | * | 4 | * |
424 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
426 | 6 | * Copyright (C) 2012 Canonical Ltd. | 6 | * Copyright (C) 2012-2016 Canonical Ltd. |
427 | 7 | * Copyright (C) 2012 Intel Corporation. | 7 | * Copyright (C) 2012 Intel Corporation. |
428 | 8 | * | 8 | * |
429 | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 9 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
430 | 10 | 10 | ||
431 | === modified file 'Accounts/utils.cpp' | |||
432 | --- Accounts/utils.cpp 2015-09-30 08:17:50 +0000 | |||
433 | +++ Accounts/utils.cpp 2016-09-29 09:02:36 +0000 | |||
434 | @@ -2,7 +2,7 @@ | |||
435 | 2 | /* | 2 | /* |
436 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
437 | 4 | * | 4 | * |
439 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
440 | 6 | * | 6 | * |
441 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
442 | 8 | * | 8 | * |
443 | 9 | 9 | ||
444 | === modified file 'Accounts/utils.h' | |||
445 | --- Accounts/utils.h 2013-01-18 11:55:30 +0000 | |||
446 | +++ Accounts/utils.h 2016-09-29 09:02:36 +0000 | |||
447 | @@ -2,7 +2,7 @@ | |||
448 | 2 | /* | 2 | /* |
449 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
450 | 4 | * | 4 | * |
452 | 5 | * Copyright (C) 2012 Canonical Ltd. | 5 | * Copyright (C) 2012-2016 Canonical Ltd. |
453 | 6 | * | 6 | * |
454 | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 7 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
455 | 8 | * | 8 | * |
456 | 9 | 9 | ||
457 | === modified file 'common-vars.pri' | |||
458 | --- common-vars.pri 2015-09-30 08:58:04 +0000 | |||
459 | +++ common-vars.pri 2016-09-29 09:02:36 +0000 | |||
460 | @@ -13,12 +13,12 @@ | |||
461 | 13 | #----------------------------------------------------------------------------- | 13 | #----------------------------------------------------------------------------- |
462 | 14 | # Project version | 14 | # Project version |
463 | 15 | #----------------------------------------------------------------------------- | 15 | #----------------------------------------------------------------------------- |
465 | 16 | PROJECT_VERSION = 1.14 | 16 | PROJECT_VERSION = 1.15 |
466 | 17 | 17 | ||
467 | 18 | #----------------------------------------------------------------------------- | 18 | #----------------------------------------------------------------------------- |
468 | 19 | # Library version | 19 | # Library version |
469 | 20 | #----------------------------------------------------------------------------- | 20 | #----------------------------------------------------------------------------- |
471 | 21 | VERSION = 1.2 | 21 | VERSION = 1.3 |
472 | 22 | 22 | ||
473 | 23 | 23 | ||
474 | 24 | # End of File | 24 | # End of File |
475 | 25 | 25 | ||
476 | === modified file 'debian/changelog' | |||
477 | --- debian/changelog 2015-11-06 13:54:55 +0000 | |||
478 | +++ debian/changelog 2016-09-29 09:02:36 +0000 | |||
479 | @@ -1,3 +1,15 @@ | |||
480 | 1 | libaccounts-qt (1.15-0ubuntu1) UNRELEASED; urgency=medium | ||
481 | 2 | |||
482 | 3 | * New upstream release | ||
483 | 4 | - Lib: add Manager::listServices() by application | ||
484 | 5 | and Application::supportsService() | ||
485 | 6 | - Enable CI in gitlab | ||
486 | 7 | - Build: fix out of tree builds | ||
487 | 8 | * debian/control: | ||
488 | 9 | - Remove dependency on Qt4 packages | ||
489 | 10 | |||
490 | 11 | -- Alberto Mardegan <alberto.mardegan@canonical.com> Thu, 29 Sep 2016 11:53:39 +0300 | ||
491 | 12 | |||
492 | 1 | libaccounts-qt (1.14+16.04.20151106.1-0ubuntu1) xenial; urgency=medium | 13 | libaccounts-qt (1.14+16.04.20151106.1-0ubuntu1) xenial; urgency=medium |
493 | 2 | 14 | ||
494 | 3 | [ Alberto Mardegan ] | 15 | [ Alberto Mardegan ] |
495 | 4 | 16 | ||
496 | === modified file 'debian/control' | |||
497 | --- debian/control 2015-11-02 09:11:27 +0000 | |||
498 | +++ debian/control 2016-09-29 09:02:36 +0000 | |||
499 | @@ -5,13 +5,10 @@ | |||
500 | 5 | doxygen, | 5 | doxygen, |
501 | 6 | pkg-config, | 6 | pkg-config, |
502 | 7 | libglib2.0-dev, | 7 | libglib2.0-dev, |
503 | 8 | libqt4-dev, | ||
504 | 9 | qt4-dev-tools, | ||
505 | 10 | qtchooser, | 8 | qtchooser, |
506 | 11 | qt4-qmake, | ||
507 | 12 | qt5-qmake, | 9 | qt5-qmake, |
508 | 13 | qtbase5-dev, | 10 | qtbase5-dev, |
510 | 14 | libaccounts-glib-dev (>= 1.17), | 11 | libaccounts-glib-dev (>= 1.23), |
511 | 15 | dbus-test-runner, | 12 | dbus-test-runner, |
512 | 16 | Standards-Version: 3.9.3 | 13 | Standards-Version: 3.9.3 |
513 | 17 | Section: libs | 14 | Section: libs |
514 | 18 | 15 | ||
515 | === modified file 'tests/tst_libaccounts.cpp' | |||
516 | --- tests/tst_libaccounts.cpp 2015-10-01 14:53:36 +0000 | |||
517 | +++ tests/tst_libaccounts.cpp 2016-09-29 09:02:36 +0000 | |||
518 | @@ -3,7 +3,7 @@ | |||
519 | 3 | * This file is part of libaccounts-qt | 3 | * This file is part of libaccounts-qt |
520 | 4 | * | 4 | * |
521 | 5 | * Copyright (C) 2009-2011 Nokia Corporation. | 5 | * Copyright (C) 2009-2011 Nokia Corporation. |
523 | 6 | * Copyright (C) 2015 Canonical Ltd. | 6 | * Copyright (C) 2015-2016 Canonical Ltd. |
524 | 7 | * | 7 | * |
525 | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> | 8 | * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> |
526 | 9 | * | 9 | * |
527 | @@ -99,6 +99,7 @@ | |||
528 | 99 | void testServiceType(); | 99 | void testServiceType(); |
529 | 100 | void testUpdateAccount(); | 100 | void testUpdateAccount(); |
530 | 101 | void testApplication(); | 101 | void testApplication(); |
531 | 102 | void testApplicationListServices(); | ||
532 | 102 | 103 | ||
533 | 103 | public Q_SLOTS: | 104 | public Q_SLOTS: |
534 | 104 | void onAccountServiceChanged(); | 105 | void onAccountServiceChanged(); |
535 | @@ -1418,6 +1419,7 @@ | |||
536 | 1418 | QCOMPARE(application.iconName(), UTF8("mailer-icon")); | 1419 | QCOMPARE(application.iconName(), UTF8("mailer-icon")); |
537 | 1419 | QCOMPARE(application.desktopFilePath(), | 1420 | QCOMPARE(application.desktopFilePath(), |
538 | 1420 | UTF8(qgetenv("AG_APPLICATIONS") + "/applications/mailer.desktop")); | 1421 | UTF8(qgetenv("AG_APPLICATIONS") + "/applications/mailer.desktop")); |
539 | 1422 | QVERIFY(application.supportsService(email)); | ||
540 | 1421 | QCOMPARE(application.serviceUsage(email), | 1423 | QCOMPARE(application.serviceUsage(email), |
541 | 1422 | UTF8("Mailer can retrieve your e-mails")); | 1424 | UTF8("Mailer can retrieve your e-mails")); |
542 | 1423 | 1425 | ||
543 | @@ -1430,6 +1432,7 @@ | |||
544 | 1430 | application = apps[0]; | 1432 | application = apps[0]; |
545 | 1431 | QCOMPARE(application.name(), UTF8("Gallery")); | 1433 | QCOMPARE(application.name(), UTF8("Gallery")); |
546 | 1432 | QCOMPARE(application.description(), UTF8("Image gallery")); | 1434 | QCOMPARE(application.description(), UTF8("Image gallery")); |
547 | 1435 | QVERIFY(application.supportsService(sharing)); | ||
548 | 1433 | QCOMPARE(application.serviceUsage(sharing), | 1436 | QCOMPARE(application.serviceUsage(sharing), |
549 | 1434 | UTF8("Publish images on OtherService")); | 1437 | UTF8("Publish images on OtherService")); |
550 | 1435 | 1438 | ||
551 | @@ -1442,5 +1445,23 @@ | |||
552 | 1442 | delete manager; | 1445 | delete manager; |
553 | 1443 | } | 1446 | } |
554 | 1444 | 1447 | ||
555 | 1448 | void AccountsTest::testApplicationListServices() | ||
556 | 1449 | { | ||
557 | 1450 | Manager *manager = new Manager(); | ||
558 | 1451 | QVERIFY(manager != 0); | ||
559 | 1452 | |||
560 | 1453 | Application application = manager->application("Mailer"); | ||
561 | 1454 | QVERIFY(application.isValid()); | ||
562 | 1455 | |||
563 | 1456 | ServiceList services = manager->serviceList(application); | ||
564 | 1457 | |||
565 | 1458 | QCOMPARE(services.count(), 1); | ||
566 | 1459 | Service service = services.first(); | ||
567 | 1460 | |||
568 | 1461 | QCOMPARE(service.name(), QString("MyService")); | ||
569 | 1462 | |||
570 | 1463 | delete manager; | ||
571 | 1464 | } | ||
572 | 1465 | |||
573 | 1445 | QTEST_GUILESS_MAIN(AccountsTest) | 1466 | QTEST_GUILESS_MAIN(AccountsTest) |
574 | 1446 | #include "tst_libaccounts.moc" | 1467 | #include "tst_libaccounts.moc" |