Purpose
8import QtQuick.Controls 2.10
9import QtQuick.Layouts 1.1
10import org.kde.kirigami 2.12 as Kirigami
11import org.kde.kcmutils as KCMUtils
12import SSO.OnlineAccounts 0.1 as OA
18 property var folder: folderField.text
19 property var accountId
24 text: i18nd("purpose6_nextcloud",
"Select an account:")
25 visible:
list.count !== 0
31 Layout.fillWidth: true
32 Layout.fillHeight: true
34 Component.onCompleted: scroll.background.visible = true
41 model: OA.AccountServiceModel {
43 serviceType:
"dav-storage"
47 width: ListView.view.width
51 onCurrentIndexChanged: {
52 if (currentIndex === -1) {
53 root.accountId = undefined
57 root.accountId = serviceModel.get(
list.currentIndex,
"accountId")
61 anchors.centerIn: parent
62 width: parent.width - (
Kirigami.Units.largeSpacing * 4)
63 visible:
list.count === 0
64 text:
i18nd(
"purpose6_nextcloud",
"No account configured")
72 text:
i18nd(
"purpose6_nextcloud",
"Configure Accounts")
73 icon.
name:
"applications-internet"
74 onClicked: KCMUtils.KCMLauncher.openSystemSettings(
"kcm_kaccounts")
78 Layout.fillWidth: true
79 text:
i18nd(
"purpose6_nextcloud",
"Upload to folder:")
84 Layout.fillWidth: true
88 root.folder = text !==
"" ? text : undefined
QString i18nd(const char *domain, const char *text, const TYPE &arg...)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
QString name(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:05 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.