2
* Copyright (C) 2013 Canonical Ltd.
4
* Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
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.
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.
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/>.
20
import Ubuntu.Components 0.1
21
import Ubuntu.Components.ListItems 0.1 as ListItem
22
import Ubuntu.OnlineAccounts 0.1
25
property variant accountHandle
26
property variant globalServiceHandle
27
property variant __editPage: null
28
property bool running: false
32
icon: "image://theme/" + globalService.provider.iconName
34
opacity: globalService.enabled ? 1 : 0.5
39
objectHandle: globalServiceHandle
48
__editPage = accountEditPage.createObject(null, {
49
"accountHandle": accountHandle })
50
__editPage.finished.connect(__onEditFinished)
51
pageStack.push(__editPage)
55
function __onEditFinished() {
56
__editPage.destroy(1000)