4.1.1
by Alberto Mardegan
WIP |
1 |
/*
|
2 |
* Copyright (C) 2013 Canonical Ltd.
|
|
3 |
*
|
|
4 |
* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
|
|
5 |
*
|
|
6 |
* This program is free software: you can redistribute it and/or modify it
|
|
7 |
* under the terms of the GNU General Public License version 3, as published
|
|
8 |
* by the Free Software Foundation.
|
|
9 |
*
|
|
10 |
* This program is distributed in the hope that it will be useful, but
|
|
11 |
* WITHOUT ANY WARRANTY; without even the implied warranties of
|
|
12 |
* MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
|
|
13 |
* PURPOSE. See the GNU General Public License for more details.
|
|
14 |
*
|
|
15 |
* You should have received a copy of the GNU General Public License along
|
|
16 |
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17 |
*/
|
|
18 |
||
19 |
import QtQuick 2.0 |
|
20 |
import Ubuntu.Components 0.1 |
|
21 |
import Ubuntu.OnlineAccounts 0.1 |
|
22 |
import "constants.js" as Constants |
|
23 |
||
24 |
Page { |
|
50.2.1
by Alberto Mardegan
Delay destruction of the delegate until the edit page is popped |
25 |
id: root
|
26 |
||
4.1.1
by Alberto Mardegan
WIP |
27 |
property variant accountHandle |
28 |
||
50.2.1
by Alberto Mardegan
Delay destruction of the delegate until the edit page is popped |
29 |
signal finished |
30 |
||
4.1.1
by Alberto Mardegan
WIP |
31 |
title: account.provider.displayName |
32 |
||
33 |
Account { |
|
34 |
id: account
|
|
35 |
objectHandle: accountHandle |
|
36 |
}
|
|
37 |
||
38 |
Loader { |
|
39 |
id: loader
|
|
40 |
property var account: account |
|
41 |
||
42 |
anchors.fill: parent |
|
43 |
source: Constants.qmlPluginPath + account.provider.id + "/Main.qml" |
|
44 |
||
45 |
Connections { |
|
46 |
target: loader.item |
|
47 |
onFinished: { |
|
48 |
console.log("====== PLUGIN FINISHED ======") |
|
50.2.1
by Alberto Mardegan
Delay destruction of the delegate until the edit page is popped |
49 |
root.finished() |
4.1.1
by Alberto Mardegan
WIP |
50 |
}
|
51 |
}
|
|
52 |
}
|
|
53 |
}
|