Debian Codegraph @

src/imports/Lomiri/Contacts/OnlineAccountsHelper.qml

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 /*
2 * Copyright (C) 2014 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17 import QtQuick 2.4
18 import Lomiri.Components 1.3
19 import SSO.OnlineAccounts 0.1
20 import Lomiri.OnlineAccounts.Client 0.1
21
22 Item {
23 id: root
24
25 property bool running: false
26 property alias applicationId: setup.applicationId
27 property var providerModel: providers
28 signal finished()
29
30 function setupExec(provider)
31 {
32 if (!root.running) {
33 root.running = true
34 setup.providerId = provider
35 setup.exec()
36 }
37 }
38 Setup {
39 id: setup
40 applicationId: "lomiri-addressbook-app"
41 onFinished: {
42 root.running = false
43 root.finished()
44 }
45 }
46
47 ProviderModel {
48 id: providers
49 applicationId: "lomiri-addressbook-app"
50 }
51 }