Merge lp:~online-accounts/libaccounts-qt/packaging into lp:libaccounts-qt

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
Reviewer Review Type Date Requested Status
Online Accounts Pending
Review via email: mp+307139@code.launchpad.net

Description of the change

Merge from upstream

Add Manager::serviceList() by app.

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
=== added file '.gitlab-ci.yml'
--- .gitlab-ci.yml 1970-01-01 00:00:00 +0000
+++ .gitlab-ci.yml 2016-09-29 09:02:36 +0000
@@ -0,0 +1,32 @@
1image: ubuntu:xenial
2
3cache:
4 key: apt-cache
5 paths:
6 - apt-cache/
7
8before_script:
9 - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
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
11 - apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y dbus-test-runner lcov gcovr
12
13build_amd64:
14 stage: build
15 script:
16 - export QT_SELECT=qt5
17 - mkdir build
18 - cd build
19 - qmake CONFIG+=debug CONFIG+=coverage ..
20 - make -j 4
21 artifacts:
22 paths:
23 - build/
24
25test_amd64:
26 stage: test
27 script:
28 - find build | xargs touch # Avoid rebuilding
29 - cd build
30 - make coverage-html
31 dependencies:
32 - build_amd64
033
=== modified file 'Accounts/account-service.cpp'
--- Accounts/account-service.cpp 2015-10-27 12:31:06 +0000
+++ Accounts/account-service.cpp 2016-09-29 09:02:36 +0000
@@ -3,9 +3,9 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2010 Nokia Corporation.5 * Copyright (C) 2009-2010 Nokia Corporation.
6 * Copyright (C) 2013 Canonical Ltd.6 * Copyright (C) 2013-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
10 * This library is free software; you can redistribute it and/or10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License11 * modify it under the terms of the GNU Lesser General Public License
1212
=== modified file 'Accounts/account-service.h'
--- Accounts/account-service.h 2013-06-17 10:19:48 +0000
+++ Accounts/account-service.h 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3* This file is part of libaccounts-qt3* This file is part of libaccounts-qt
4*4*
5* Copyright (C) 2012 Canonical Ltd.5* Copyright (C) 2012-2016 Canonical Ltd.
6*6*
7* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8*8*
99
=== modified file 'Accounts/account.cpp'
--- Accounts/account.cpp 2015-10-27 12:31:06 +0000
+++ Accounts/account.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2013 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
1010
=== modified file 'Accounts/account.h'
--- Accounts/account.h 2015-09-30 08:17:50 +0000
+++ Accounts/account.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
1010
=== modified file 'Accounts/accountscommon.h'
--- Accounts/accountscommon.h 2015-10-27 12:31:06 +0000
+++ Accounts/accountscommon.h 2016-09-29 09:02:36 +0000
@@ -3,8 +3,9 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2016 Canonical Ltd.
6 *7 *
7 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *9 *
9 * This library is free software; you can redistribute it and/or10 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public License11 * modify it under the terms of the GNU Lesser General Public License
1112
=== modified file 'Accounts/application.cpp'
--- Accounts/application.cpp 2014-02-11 10:33:32 +0000
+++ Accounts/application.cpp 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2012 Canonical Ltd.5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *8 *
@@ -180,6 +180,17 @@
180}180}
181181
182/*!182/*!
183 * Check whether the application supports the given service.
184 * @param service Instance of a Service.
185 * @return whether the service is supported by this application.
186 */
187bool Application::supportsService(const Service &service) const
188{
189 return ag_application_supports_service(m_application,
190 service.service());
191}
192
193/*!
183 * Get the description from the application XML file, for the specified194 * Get the description from the application XML file, for the specified
184 * service; if not found, get the service-type description instead.195 * service; if not found, get the service-type description instead.
185 * @return Usage description of the service.196 * @return Usage description of the service.
@@ -189,3 +200,8 @@
189 return UTF8(ag_application_get_service_usage(m_application,200 return UTF8(ag_application_get_service_usage(m_application,
190 service.service()));201 service.service()));
191}202}
203
204AgApplication *Application::application() const
205{
206 return m_application;
207}
192208
=== modified file 'Accounts/application.h'
--- Accounts/application.h 2014-02-11 10:33:32 +0000
+++ Accounts/application.h 2016-09-29 09:02:36 +0000
@@ -1,25 +1,26 @@
1/* vi: set et sw=4 ts=4 cino=t0,(0: */1/* vi: set et sw=4 ts=4 cino=t0,(0: */
2/*2/*
3* This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4*4 *
5* Copyright (C) 2012 Nokia Corporation.5 * Copyright (C) 2012 Nokia Corporation.
6*6 * Copyright (C) 2012-2016 Canonical Ltd.
7* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 *
8*8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9* This library is free software; you can redistribute it and/or9 *
10* modify it under the terms of the GNU Lesser General Public License10 * This library is free software; you can redistribute it and/or
11* version 2.1 as published by the Free Software Foundation.11 * modify it under the terms of the GNU Lesser General Public License
12*12 * version 2.1 as published by the Free Software Foundation.
13* This library is distributed in the hope that it will be useful, but13 *
14* WITHOUT ANY WARRANTY; without even the implied warranty of14 * This library is distributed in the hope that it will be useful, but
15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16* Lesser General Public License for more details.16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17*17 * Lesser General Public License for more details.
18* You should have received a copy of the GNU Lesser General Public18 *
19* License along with this library; if not, write to the Free Software19 * You should have received a copy of the GNU Lesser General Public
20* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA20 * License along with this library; if not, write to the Free Software
21* 02110-1301 USA21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22*/22 * 02110-1301 USA
23 */
2324
24#ifndef ACCOUNTS_APPLICATION_H25#ifndef ACCOUNTS_APPLICATION_H
25#define ACCOUNTS_APPLICATION_H26#define ACCOUNTS_APPLICATION_H
@@ -54,12 +55,14 @@
54 QString desktopFilePath() const;55 QString desktopFilePath() const;
55 QString trCatalog() const;56 QString trCatalog() const;
5657
58 bool supportsService(const Service &service) const;
57 QString serviceUsage(const Service &service) const;59 QString serviceUsage(const Service &service) const;
5860
59private:61private:
60 // Don't include private data in docs: \cond62 // Don't include private data in docs: \cond
61 friend class Manager;63 friend class Manager;
62 Application(AgApplication *application);64 Application(AgApplication *application);
65 AgApplication *application() const;
6366
64 AgApplication *m_application;67 AgApplication *m_application;
65 // \endcond68 // \endcond
6669
=== modified file 'Accounts/auth-data.cpp'
--- Accounts/auth-data.cpp 2014-09-05 13:23:44 +0000
+++ Accounts/auth-data.cpp 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2012 Canonical Ltd.5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *8 *
99
=== modified file 'Accounts/auth-data.h'
--- Accounts/auth-data.h 2012-03-13 10:54:48 +0000
+++ Accounts/auth-data.h 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2012 Canonical Ltd.5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *8 *
99
=== modified file 'Accounts/error.cpp'
--- Accounts/error.cpp 2012-03-13 09:50:49 +0000
+++ Accounts/error.cpp 2016-09-29 09:02:36 +0000
@@ -2,8 +2,9 @@
2 * This file is part of libaccounts-qt2 * This file is part of libaccounts-qt
3 *3 *
4 * Copyright (C) 2011 Nokia Corporation.4 * Copyright (C) 2011 Nokia Corporation.
5 * Copyright (C) 2012-2016 Canonical Ltd.
5 *6 *
6 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *8 *
8 * This library is free software; you can redistribute it and/or9 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License10 * modify it under the terms of the GNU Lesser General Public License
1011
=== modified file 'Accounts/error.h'
--- Accounts/error.h 2013-01-21 09:43:43 +0000
+++ Accounts/error.h 2016-09-29 09:02:36 +0000
@@ -2,8 +2,9 @@
2 * This file is part of libaccounts-qt2 * This file is part of libaccounts-qt
3 *3 *
4 * Copyright (C) 2011 Nokia Corporation.4 * Copyright (C) 2011 Nokia Corporation.
5 * Copyright (C) 2012-2016 Canonical Ltd.
5 *6 *
6 * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7 *8 *
8 * This library is free software; you can redistribute it and/or9 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License10 * modify it under the terms of the GNU Lesser General Public License
1011
=== modified file 'Accounts/manager.cpp'
--- Accounts/manager.cpp 2015-08-14 07:18:58 +0000
+++ Accounts/manager.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2013 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
@@ -384,6 +384,35 @@
384}384}
385385
386/*!386/*!
387 * Get the list of services supported by the given application.
388 *
389 * @param application Application whose services are to be retrieved.
390 *
391 * @return List of Service objects.
392 */
393ServiceList Manager::serviceList(const Application &application) const
394{
395 GList *list;
396
397 list = ag_manager_list_services_by_application(d->m_manager,
398 application.application());
399
400 /* convert glist -> ServiceList */
401 ServiceList servList;
402 GList *iter;
403
404 for (iter = list; iter; iter = g_list_next(iter))
405 {
406 AgService *service = (AgService*)iter->data;
407 servList.append(Service(service, StealReference));
408 }
409
410 g_list_free(list);
411
412 return servList;
413}
414
415/*!
387 * Gets an object representing a provider.416 * Gets an object representing a provider.
388 * @param providerName Name of provider to get.417 * @param providerName Name of provider to get.
389 *418 *
390419
=== modified file 'Accounts/manager.h'
--- Accounts/manager.h 2014-08-14 14:50:11 +0000
+++ Accounts/manager.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
@@ -76,6 +76,7 @@
7676
77 Service service(const QString &serviceName) const;77 Service service(const QString &serviceName) const;
78 ServiceList serviceList(const QString &serviceType = QString::null) const;78 ServiceList serviceList(const QString &serviceType = QString::null) const;
79 ServiceList serviceList(const Application &application) const;
7980
80 Provider provider(const QString &providerName) const;81 Provider provider(const QString &providerName) const;
81 ProviderList providerList() const;82 ProviderList providerList() const;
8283
=== modified file 'Accounts/manager_p.h'
--- Accounts/manager_p.h 2013-04-26 06:31:51 +0000
+++ Accounts/manager_p.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2013 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
1010
=== modified file 'Accounts/provider.cpp'
--- Accounts/provider.cpp 2015-09-30 08:17:50 +0000
+++ Accounts/provider.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2014 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
1010
=== modified file 'Accounts/provider.h'
--- Accounts/provider.h 2014-03-05 15:56:31 +0000
+++ Accounts/provider.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012-2014 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
1010
=== modified file 'Accounts/service-type.cpp'
--- Accounts/service-type.cpp 2015-09-30 08:17:50 +0000
+++ Accounts/service-type.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 * Copyright (C) 2012 Intel Corporation.7 * Copyright (C) 2012 Intel Corporation.
8 *8 *
9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1010
=== modified file 'Accounts/service-type.h'
--- Accounts/service-type.h 2012-05-21 12:35:18 +0000
+++ Accounts/service-type.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2011 Nokia Corporation.5 * Copyright (C) 2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 * Copyright (C) 2012 Intel Corporation.7 * Copyright (C) 2012 Intel Corporation.
8 *8 *
9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1010
=== modified file 'Accounts/service.cpp'
--- Accounts/service.cpp 2015-09-30 08:17:50 +0000
+++ Accounts/service.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 * Copyright (C) 2012 Intel Corporation.7 * Copyright (C) 2012 Intel Corporation.
8 *8 *
9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1010
=== modified file 'Accounts/service.h'
--- Accounts/service.h 2012-05-21 12:35:18 +0000
+++ Accounts/service.h 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2012 Canonical Ltd.6 * Copyright (C) 2012-2016 Canonical Ltd.
7 * Copyright (C) 2012 Intel Corporation.7 * Copyright (C) 2012 Intel Corporation.
8 *8 *
9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>9 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
1010
=== modified file 'Accounts/utils.cpp'
--- Accounts/utils.cpp 2015-09-30 08:17:50 +0000
+++ Accounts/utils.cpp 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2012 Canonical Ltd.5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *8 *
99
=== modified file 'Accounts/utils.h'
--- Accounts/utils.h 2013-01-18 11:55:30 +0000
+++ Accounts/utils.h 2016-09-29 09:02:36 +0000
@@ -2,7 +2,7 @@
2/*2/*
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2012 Canonical Ltd.5 * Copyright (C) 2012-2016 Canonical Ltd.
6 *6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8 *8 *
99
=== modified file 'common-vars.pri'
--- common-vars.pri 2015-09-30 08:58:04 +0000
+++ common-vars.pri 2016-09-29 09:02:36 +0000
@@ -13,12 +13,12 @@
13#-----------------------------------------------------------------------------13#-----------------------------------------------------------------------------
14# Project version14# Project version
15#-----------------------------------------------------------------------------15#-----------------------------------------------------------------------------
16PROJECT_VERSION = 1.1416PROJECT_VERSION = 1.15
1717
18#-----------------------------------------------------------------------------18#-----------------------------------------------------------------------------
19# Library version19# Library version
20#-----------------------------------------------------------------------------20#-----------------------------------------------------------------------------
21VERSION = 1.221VERSION = 1.3
2222
2323
24# End of File24# End of File
2525
=== modified file 'debian/changelog'
--- debian/changelog 2015-11-06 13:54:55 +0000
+++ debian/changelog 2016-09-29 09:02:36 +0000
@@ -1,3 +1,15 @@
1libaccounts-qt (1.15-0ubuntu1) UNRELEASED; urgency=medium
2
3 * New upstream release
4 - Lib: add Manager::listServices() by application
5 and Application::supportsService()
6 - Enable CI in gitlab
7 - Build: fix out of tree builds
8 * debian/control:
9 - Remove dependency on Qt4 packages
10
11 -- Alberto Mardegan <alberto.mardegan@canonical.com> Thu, 29 Sep 2016 11:53:39 +0300
12
1libaccounts-qt (1.14+16.04.20151106.1-0ubuntu1) xenial; urgency=medium13libaccounts-qt (1.14+16.04.20151106.1-0ubuntu1) xenial; urgency=medium
214
3 [ Alberto Mardegan ]15 [ Alberto Mardegan ]
416
=== modified file 'debian/control'
--- debian/control 2015-11-02 09:11:27 +0000
+++ debian/control 2016-09-29 09:02:36 +0000
@@ -5,13 +5,10 @@
5 doxygen,5 doxygen,
6 pkg-config,6 pkg-config,
7 libglib2.0-dev,7 libglib2.0-dev,
8 libqt4-dev,
9 qt4-dev-tools,
10 qtchooser,8 qtchooser,
11 qt4-qmake,
12 qt5-qmake,9 qt5-qmake,
13 qtbase5-dev,10 qtbase5-dev,
14 libaccounts-glib-dev (>= 1.17),11 libaccounts-glib-dev (>= 1.23),
15 dbus-test-runner,12 dbus-test-runner,
16Standards-Version: 3.9.313Standards-Version: 3.9.3
17Section: libs14Section: libs
1815
=== modified file 'tests/tst_libaccounts.cpp'
--- tests/tst_libaccounts.cpp 2015-10-01 14:53:36 +0000
+++ tests/tst_libaccounts.cpp 2016-09-29 09:02:36 +0000
@@ -3,7 +3,7 @@
3 * This file is part of libaccounts-qt3 * This file is part of libaccounts-qt
4 *4 *
5 * Copyright (C) 2009-2011 Nokia Corporation.5 * Copyright (C) 2009-2011 Nokia Corporation.
6 * Copyright (C) 2015 Canonical Ltd.6 * Copyright (C) 2015-2016 Canonical Ltd.
7 *7 *
8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>8 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
9 *9 *
@@ -99,6 +99,7 @@
99 void testServiceType();99 void testServiceType();
100 void testUpdateAccount();100 void testUpdateAccount();
101 void testApplication();101 void testApplication();
102 void testApplicationListServices();
102103
103public Q_SLOTS:104public Q_SLOTS:
104 void onAccountServiceChanged();105 void onAccountServiceChanged();
@@ -1418,6 +1419,7 @@
1418 QCOMPARE(application.iconName(), UTF8("mailer-icon"));1419 QCOMPARE(application.iconName(), UTF8("mailer-icon"));
1419 QCOMPARE(application.desktopFilePath(),1420 QCOMPARE(application.desktopFilePath(),
1420 UTF8(qgetenv("AG_APPLICATIONS") + "/applications/mailer.desktop"));1421 UTF8(qgetenv("AG_APPLICATIONS") + "/applications/mailer.desktop"));
1422 QVERIFY(application.supportsService(email));
1421 QCOMPARE(application.serviceUsage(email),1423 QCOMPARE(application.serviceUsage(email),
1422 UTF8("Mailer can retrieve your e-mails"));1424 UTF8("Mailer can retrieve your e-mails"));
14231425
@@ -1430,6 +1432,7 @@
1430 application = apps[0];1432 application = apps[0];
1431 QCOMPARE(application.name(), UTF8("Gallery"));1433 QCOMPARE(application.name(), UTF8("Gallery"));
1432 QCOMPARE(application.description(), UTF8("Image gallery"));1434 QCOMPARE(application.description(), UTF8("Image gallery"));
1435 QVERIFY(application.supportsService(sharing));
1433 QCOMPARE(application.serviceUsage(sharing),1436 QCOMPARE(application.serviceUsage(sharing),
1434 UTF8("Publish images on OtherService"));1437 UTF8("Publish images on OtherService"));
14351438
@@ -1442,5 +1445,23 @@
1442 delete manager;1445 delete manager;
1443}1446}
14441447
1448void AccountsTest::testApplicationListServices()
1449{
1450 Manager *manager = new Manager();
1451 QVERIFY(manager != 0);
1452
1453 Application application = manager->application("Mailer");
1454 QVERIFY(application.isValid());
1455
1456 ServiceList services = manager->serviceList(application);
1457
1458 QCOMPARE(services.count(), 1);
1459 Service service = services.first();
1460
1461 QCOMPARE(service.name(), QString("MyService"));
1462
1463 delete manager;
1464}
1465
1445QTEST_GUILESS_MAIN(AccountsTest)1466QTEST_GUILESS_MAIN(AccountsTest)
1446#include "tst_libaccounts.moc"1467#include "tst_libaccounts.moc"

Subscribers

No one subscribed via source and target branches