Merge lp:~ken-vandine/accounts-qml-module/packaging into lp:~mardy/accounts-qml-module/implementation

Proposed by Ken VanDine
Status: Merged
Approved by: Alberto Mardegan
Approved revision: no longer in the source branch.
Merged at revision: 12
Proposed branch: lp:~ken-vandine/accounts-qml-module/packaging
Merge into: lp:~mardy/accounts-qml-module/implementation
Diff against target: 149 lines (+98/-2)
5 files modified
.bzr-builddeb/default.conf (+2/-0)
debian/changelog (+1/-1)
debian/control (+3/-1)
debian/rules (+8/-0)
examples.moved/listaccounts.qml (+84/-0)
To merge this branch: bzr merge lp:~ken-vandine/accounts-qml-module/packaging
Reviewer Review Type Date Requested Status
Alberto Mardegan Approve
Review via email: mp+149523@code.launchpad.net

Description of the change

binary package name set to qtdeclarative5-accounts-plugin

To post a comment you must log in.
Revision history for this message
Alberto Mardegan (mardy) wrote :

Looks good, thanks!

review: Approve
11. By Alberto Mardegan

Model: add filter by accountId

12. By Alberto Mardegan

Packaging fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory '.bzr-builddeb'
2=== added file '.bzr-builddeb/default.conf'
3--- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000
4+++ .bzr-builddeb/default.conf 2013-02-20 10:46:28 +0000
5@@ -0,0 +1,2 @@
6+[BUILDDEB]
7+split = True
8
9=== modified file 'debian/changelog'
10--- debian/changelog 2013-02-19 06:44:04 +0000
11+++ debian/changelog 2013-02-20 10:46:28 +0000
12@@ -1,4 +1,4 @@
13-accounts-qml-module (0.1-~0ubuntu1) UNRELEASED; urgency=low
14+accounts-qml-module (0.0) UNRELEASED; urgency=low
15
16 * Initial release.
17
18
19=== modified file 'debian/control'
20--- debian/control 2013-02-19 06:44:04 +0000
21+++ debian/control 2013-02-20 10:46:28 +0000
22@@ -8,6 +8,8 @@
23 libsignon-qt5-dev,
24 pkg-config,
25 qtdeclarative5-dev,
26+ qtchooser,
27+ qt5-qmake,
28 xvfb,
29 Standards-Version: 3.9.3
30 Homepage: https://launchpad.net/accounts-qml-module
31@@ -15,7 +17,7 @@
32 # just go ahead. ~online-accounts will notice and sync up the code again.
33 Vcs-Bzr: https://code.launchpad.net/~online-accounts/accounts-qml-module/trunk
34
35-Package: accounts-qml-module
36+Package: qtdeclarative5-accounts-plugin
37 Architecture: any
38 Depends: ${misc:Depends},
39 ${shlibs:Depends},
40
41=== modified file 'debian/rules'
42--- debian/rules 2013-02-19 06:44:04 +0000
43+++ debian/rules 2013-02-20 10:46:28 +0000
44@@ -4,7 +4,15 @@
45 # Uncomment this to turn on verbose mode.
46 #export DH_VERBOSE=1
47
48+override_dh_auto_configure:
49+ QT_SELECT=qt5 \
50+ dh_auto_configure \
51+ -- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
52+ "QMAKE_CXXFLAGS=$(CFLAGS)" \
53+ accounts-qml-module.pro
54+
55 override_dh_install:
56+ rm -rf debian/*/usr/bin
57 dh_install --fail-missing
58
59 %:
60
61=== added directory 'examples.moved'
62=== added file 'examples.moved/listaccounts.qml'
63--- examples.moved/listaccounts.qml 1970-01-01 00:00:00 +0000
64+++ examples.moved/listaccounts.qml 2013-02-20 10:46:28 +0000
65@@ -0,0 +1,84 @@
66+/*
67+ * Copyright 2013 Canonical Ltd.
68+ *
69+ *
70+ * This program is free software; you can redistribute it and/or modify
71+ * it under the terms of the GNU General Public License as published by
72+ * the Free Software Foundation; version 3.
73+ *
74+ * telephony-app is distributed in the hope that it will be useful,
75+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
76+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77+ * GNU General Public License for more details.
78+ *
79+ * You should have received a copy of the GNU General Public License
80+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
81+ */
82+
83+import QtQuick 2.0
84+import Ubuntu.Components 0.1
85+import Ubuntu.Components.ListItems 0.1 as ListItem
86+import Ubuntu.OnlineAccounts 0.1
87+
88+MainView {
89+ width: units.gu(60)
90+ height: units.gu(80)
91+ Behavior on x {
92+ SequentialAnimation{
93+ PropertyAction { property: "x"; value: main.width }
94+ PropertyAnimation { duration: 200 }
95+ }
96+ }
97+
98+ AccountServiceModel {
99+ id: accounts
100+ serviceType: "microblogging"
101+ //serviceType: "IM"
102+ includeDisabled: true
103+ Component.onCompleted: { set_model()}
104+ }
105+
106+ function set_model () {
107+ listView.model = accounts;
108+ console.log ("MODEL READY: " + listView.count);
109+ }
110+ ListView {
111+ id: listView
112+ width: parent.width
113+ height: parent.height
114+ anchors.fill: parent
115+ focus: true
116+ delegate: Item {
117+ width: parent.width
118+ height: childrenRect.height
119+ AccountService {
120+ id: accts
121+ objectHandle: accountService
122+ onAuthenticated: { console.log("Access token is " + reply.AccessToken) }
123+ onAuthenticationError: { console.log("Authentication failed, code " + error.code) }
124+ Component.onCompleted: {
125+ sw.checked = accts.enabled;
126+ }
127+ onEnabledChanged: {
128+ console.log ("ENABLED CHANGED");
129+ sw.checked = accts.enabled;
130+ }
131+ }
132+ ListItem.Standard {
133+ text: displayName
134+ icon: "image://gicon/"+accts.provider.iconName
135+ control {
136+ Switch {
137+ id: sw
138+ checked: false
139+ }
140+ }
141+ onClicked: accts.authenticate(null)
142+ }
143+ }
144+
145+ populate: Transition {
146+ NumberAnimation { properties: "x,y"; duration: 1000 }
147+ }
148+ }
149+}

Subscribers

People subscribed via source and target branches

to all changes: