2
* Copyright: 2013 - 2014 Canonical, Ltd
4
* This file is part of reminders
6
* reminders is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* reminders is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 0.1
21
import Ubuntu.Components.ListItems 0.1
22
import Ubuntu.OnlineAccounts 0.1
23
import Ubuntu.OnlineAccounts.Client 0.1
28
objectName: "Accountselectorpage"
29
title: "Select Evernote account"
31
property alias accounts: listView.model
32
property bool isChangingAccount
34
signal accountSelected(var handle)
38
applicationId: "com.ubuntu.reminders_reminders"
39
providerId: useSandbox ? "evernote-sandbox" : "evernote"
43
anchors { fill: parent; margins: units.gu(2) }
54
objectName: "EvernoteAccount"
58
onClicked: root.accountSelected(accountServiceHandle)
63
text: i18n.tr("Add account")
64
onClicked: setup.exec()
70
locked: !isChangingAccount
71
opened: isChangingAccount